<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to redirect phpList to custom subscribe and unsubscribe pages. A phpList hack!</title>
	<atom:link href="http://www.spamcollect.com/archives/19/feed" rel="self" type="application/rss+xml" />
	<link>http://www.spamcollect.com/archives/19</link>
	<description>about, all the spam in my life</description>
	<lastBuildDate>Wed, 30 Dec 2009 08:34:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jeff B</title>
		<link>http://www.spamcollect.com/archives/19/comment-page-1#comment-7412</link>
		<dc:creator>Jeff B</dc:creator>
		<pubDate>Mon, 28 Sep 2009 00:45:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.spamcollect.com/archives/19#comment-7412</guid>
		<description>Problem Child: Here&#039;s what I did to solve this problem:

Find these lines in subscribelib2.php:

} elseif ((isset($_POST[&quot;subscribe&quot;]) &#124;&#124; isset($_POST[&quot;update&quot;])) &amp;&amp; !is_email($_POST[&quot;email&quot;])) {
  $msg = &#039;&#039;.$strEnterEmail.&#039;&#039;;

Replace with:

} elseif ((isset($_POST[&quot;subscribe&quot;]) &#124;&#124; isset($_POST[&quot;update&quot;])) &amp;&amp; !is_email($_POST[&quot;email&quot;])) {
  // $msg = &#039;&#039;.$strEnterEmail.&#039;&#039;;
  header(&quot;Location: http://yoursite.com/invalidemail.html&quot;);

Use whatever URL you want to redirect it to. I just inserted a variable in the URL (index.php?valid=false) then added this line of code to the custom subscribe page:

&lt;?php
$p = $_GET[&quot;valid&quot;];
if ($p == &quot;false&quot;) {
print &quot;Please enter a valid e-mail address.&quot;;
?&gt;

Hope this helps!

Jeff</description>
		<content:encoded><![CDATA[<p>Problem Child: Here&#8217;s what I did to solve this problem:</p>
<p>Find these lines in subscribelib2.php:</p>
<p>} elseif ((isset($_POST["subscribe"]) || isset($_POST["update"])) &amp;&amp; !is_email($_POST["email"])) {<br />
  $msg = &#8221;.$strEnterEmail.&#8221;;</p>
<p>Replace with:</p>
<p>} elseif ((isset($_POST["subscribe"]) || isset($_POST["update"])) &amp;&amp; !is_email($_POST["email"])) {<br />
  // $msg = &#8221;.$strEnterEmail.&#8221;;<br />
  header(&#8220;Location: <a href="http://yoursite.com/invalidemail.html" rel="nofollow">http://yoursite.com/invalidemail.html</a>&#8220;);</p>
<p>Use whatever URL you want to redirect it to. I just inserted a variable in the URL (index.php?valid=false) then added this line of code to the custom subscribe page:</p>
<p>&lt;?php<br />
$p = $_GET[&quot;valid&quot;];<br />
if ($p == &quot;false&quot;) {<br />
print &quot;Please enter a valid e-mail address.&#8221;;<br />
?&gt;</p>
<p>Hope this helps!</p>
<p>Jeff</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sol</title>
		<link>http://www.spamcollect.com/archives/19/comment-page-1#comment-7020</link>
		<dc:creator>Sol</dc:creator>
		<pubDate>Wed, 02 Sep 2009 23:11:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.spamcollect.com/archives/19#comment-7020</guid>
		<description>Hi All

Great thread with some great comments.

I have successfully managed to customise all pages except the preferences page.

Every time the user clicks on the &quot;update preferences&quot; link in the email - they get take to the default &quot;request your personal location&quot; page, even though the email link correctly adds the UID to the end of the URL.  It just doesn&#039;t seem to want to recognise it!

I have tried adjusting the Admin&gt;Config&gt;&quot;Edit URL for preferences&quot; but no good.  I have also tried various PHP hacks found when searching the (very messy) forum.

If anyone has managed to customise the preferences page so that the user can change their details on a page within your own site design - I would dearly love to know how!

As Jason says, I don&#039;t know why it is so difficult to customise PHPList so it can be integrated easily!

Looking forward to any helpful replies!
Cheers
Sol</description>
		<content:encoded><![CDATA[<p>Hi All</p>
<p>Great thread with some great comments.</p>
<p>I have successfully managed to customise all pages except the preferences page.</p>
<p>Every time the user clicks on the &#8220;update preferences&#8221; link in the email &#8211; they get take to the default &#8220;request your personal location&#8221; page, even though the email link correctly adds the UID to the end of the URL.  It just doesn&#8217;t seem to want to recognise it!</p>
<p>I have tried adjusting the Admin&gt;Config&gt;&#8221;Edit URL for preferences&#8221; but no good.  I have also tried various PHP hacks found when searching the (very messy) forum.</p>
<p>If anyone has managed to customise the preferences page so that the user can change their details on a page within your own site design &#8211; I would dearly love to know how!</p>
<p>As Jason says, I don&#8217;t know why it is so difficult to customise PHPList so it can be integrated easily!</p>
<p>Looking forward to any helpful replies!<br />
Cheers<br />
Sol</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ProblemChild</title>
		<link>http://www.spamcollect.com/archives/19/comment-page-1#comment-6422</link>
		<dc:creator>ProblemChild</dc:creator>
		<pubDate>Thu, 06 Aug 2009 11:04:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.spamcollect.com/archives/19#comment-6422</guid>
		<description>Thank you for the excellent tutorial.

I&#039;m left with one problem, when a person enters an invalid email address, phplist keeps redirecting me to the default &quot;Please enter a valid email address&quot; page, how can i modify that?

The link i&#039;m getting is:
http://mydomain/newsletter/?p=subscribe&amp;id=3</description>
		<content:encoded><![CDATA[<p>Thank you for the excellent tutorial.</p>
<p>I&#8217;m left with one problem, when a person enters an invalid email address, phplist keeps redirecting me to the default &#8220;Please enter a valid email address&#8221; page, how can i modify that?</p>
<p>The link i&#8217;m getting is:<br />
<a href="http://mydomain/newsletter/?p=subscribe&amp;id=3" rel="nofollow">http://mydomain/newsletter/?p=subscribe&amp;id=3</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: computerzworld</title>
		<link>http://www.spamcollect.com/archives/19/comment-page-1#comment-4089</link>
		<dc:creator>computerzworld</dc:creator>
		<pubDate>Thu, 04 Jun 2009 17:51:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.spamcollect.com/archives/19#comment-4089</guid>
		<description>Hello,
    Thanks for the information that you have shared here. I have tried to customize the pages as you have said. But for the thank you page , I have redirected page to my website. And confirmation emails are not going now. So, what should be the problem according to you? Please help me. Thanks.</description>
		<content:encoded><![CDATA[<p>Hello,<br />
    Thanks for the information that you have shared here. I have tried to customize the pages as you have said. But for the thank you page , I have redirected page to my website. And confirmation emails are not going now. So, what should be the problem according to you? Please help me. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://www.spamcollect.com/archives/19/comment-page-1#comment-3513</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Sat, 16 May 2009 04:18:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.spamcollect.com/archives/19#comment-3513</guid>
		<description>Great hack- much appreciated! Just what I was looking for :) I can not figure out why phplist makes the customizing of these pages so difficult!? Thanks again for your work, and for maintaining  this thread.</description>
		<content:encoded><![CDATA[<p>Great hack- much appreciated! Just what I was looking for <img src='http://www.spamcollect.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  I can not figure out why phplist makes the customizing of these pages so difficult!? Thanks again for your work, and for maintaining  this thread.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://www.spamcollect.com/archives/19/comment-page-1#comment-1937</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Sat, 04 Apr 2009 11:29:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.spamcollect.com/archives/19#comment-1937</guid>
		<description>Customize Unsubscribe page in php version 2.10.9

index.php line 654

if ($userid)
    $res .= &#039;&#039;.$GLOBALS[&quot;strUnsubscribeDone&quot;] .&quot;&quot;;
	
When you make it like showed here..

if ($userid)
    //$res .= &#039;&#039;.$GLOBALS[&quot;strUnsubscribeDone&quot;] .&quot;&quot;;
	$res = header(&quot;Location: http://youtdomain/youragoner&quot;);

then on submit it redirects to your page.
Only i could not get it to work with an own page form.


I made an own form page(get) and made it direct to a page with this code:




Statet here http://packetcloud.net/tag/phplist/

works good for me with a redirection to my thanx page in it.

hope this can help someone and thx for the scripts here.</description>
		<content:encoded><![CDATA[<p>Customize Unsubscribe page in php version 2.10.9</p>
<p>index.php line 654</p>
<p>if ($userid)<br />
    $res .= &#8221;.$GLOBALS["strUnsubscribeDone"] .&#8221;";</p>
<p>When you make it like showed here..</p>
<p>if ($userid)<br />
    //$res .= &#8221;.$GLOBALS["strUnsubscribeDone"] .&#8221;";<br />
	$res = header(&#8220;Location: <a href="http://youtdomain/youragoner" rel="nofollow">http://youtdomain/youragoner</a>&#8220;);</p>
<p>then on submit it redirects to your page.<br />
Only i could not get it to work with an own page form.</p>
<p>I made an own form page(get) and made it direct to a page with this code:</p>
<p>Statet here <a href="http://packetcloud.net/tag/phplist/" rel="nofollow">http://packetcloud.net/tag/phplist/</a></p>
<p>works good for me with a redirection to my thanx page in it.</p>
<p>hope this can help someone and thx for the scripts here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jesse Kremer</title>
		<link>http://www.spamcollect.com/archives/19/comment-page-1#comment-1664</link>
		<dc:creator>Jesse Kremer</dc:creator>
		<pubDate>Tue, 24 Mar 2009 04:11:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.spamcollect.com/archives/19#comment-1664</guid>
		<description>I checked this out eight months back and am attempting it again.  I have adjusted the php codes being referred to above with no problems.  I am having a difficult time figuring out where to get the code to put into my custom .html unsubscribe page.</description>
		<content:encoded><![CDATA[<p>I checked this out eight months back and am attempting it again.  I have adjusted the php codes being referred to above with no problems.  I am having a difficult time figuring out where to get the code to put into my custom .html unsubscribe page.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: andré</title>
		<link>http://www.spamcollect.com/archives/19/comment-page-1#comment-824</link>
		<dc:creator>andré</dc:creator>
		<pubDate>Wed, 25 Feb 2009 21:33:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.spamcollect.com/archives/19#comment-824</guid>
		<description>hi jason!

I´m really looking forward to customize my unsubscribe page! did you have the chance to find out how this is going to work? unfortunately I can´t figure it out on my own...

thanks!</description>
		<content:encoded><![CDATA[<p>hi jason!</p>
<p>I´m really looking forward to customize my unsubscribe page! did you have the chance to find out how this is going to work? unfortunately I can´t figure it out on my own&#8230;</p>
<p>thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://www.spamcollect.com/archives/19/comment-page-1#comment-482</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Sun, 01 Feb 2009 05:16:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.spamcollect.com/archives/19#comment-482</guid>
		<description>I just went through this exercise for the new version 2.10.9.  Here&#039;s the update with proper line numbers for this version:


For the custom landing page after the user clicks the confirmation link in the confirmation email:

In /lists/index.php, comment out the following lines (576-581):

  $res = &#039;&#039;.$GLOBALS[&quot;strConfirmTitle&quot;].&#039;&#039;;
  $res .= $data[&quot;header&quot;];
  $res .= &#039;&#039;.$info.&#039;&#039;;
  $res .= $html;
  $res .= &quot;&quot;.$GLOBALS[&quot;PoweredBy&quot;].&#039;&#039;;
  $res .= $data[&quot;footer&quot;];

In order to comment out the lines, add a /* at the beginning of line 576, and a */ after line 581, to make it look like this:

/*  $res = &#039;&#039;.$GLOBALS[&quot;strConfirmTitle&quot;].&#039;&#039;;
  $res .= $data[&quot;header&quot;];
  $res .= &#039;&#039;.$info.&#039;&#039;;
  $res .= $html;
  $res .= &quot;&quot;.$GLOBALS[&quot;PoweredBy&quot;].&#039;&#039;;
  $res .= $data[&quot;footer&quot;];
*/

Add in the following line immediately after these lines:

 $res = header(&#039;Location: http://www.domain.com/thanks-for-confirming-your-subscription.html&#039;);

(Assuming your custom landing page is http://www.domain.com/thanks-for-confirming-your-subscription.html).
(Also note the single quotation marks.  If you use double quotation marks, it will not work, because everything after the // in the URL will be treated as a comment.)


For the custom landing page after the subscribe form is filled out:

In /lists/admin/subscribelib2.php, comment out lines 299 and 301, and add lines immediately after these lines, so the section now looks like this:

  # personalise the thank you page
  if ($subscribepagedata[&quot;thankyoupage&quot;]) {
//    $thankyoupage = $subscribepagedata[&quot;thankyoupage&quot;];
header(&#039;Location: http://www.domain.com/thanks-for-subscribing&#039;);
  } else {
//    $thankyoupage = &#039;&#039;.$strThanks.&#039;&#039;. $strEmailConfirmation;
header(&#039;Location: http://www.domain.com/thanks-for-subscribing&#039;);
  }

(Note that you are adding the same line twice, once after line 299 and once after line 301.  Also note again the single quotes.)


I&#039;ll post again once I get the code for the unsubscribe and preference pages figured out.</description>
		<content:encoded><![CDATA[<p>I just went through this exercise for the new version 2.10.9.  Here&#8217;s the update with proper line numbers for this version:</p>
<p>For the custom landing page after the user clicks the confirmation link in the confirmation email:</p>
<p>In /lists/index.php, comment out the following lines (576-581):</p>
<p>  $res = &#8221;.$GLOBALS["strConfirmTitle"].&#8221;;<br />
  $res .= $data["header"];<br />
  $res .= &#8221;.$info.&#8221;;<br />
  $res .= $html;<br />
  $res .= &#8220;&#8221;.$GLOBALS["PoweredBy"].&#8221;;<br />
  $res .= $data["footer"];</p>
<p>In order to comment out the lines, add a /* at the beginning of line 576, and a */ after line 581, to make it look like this:</p>
<p>/*  $res = &#8221;.$GLOBALS["strConfirmTitle"].&#8221;;<br />
  $res .= $data["header"];<br />
  $res .= &#8221;.$info.&#8221;;<br />
  $res .= $html;<br />
  $res .= &#8220;&#8221;.$GLOBALS["PoweredBy"].&#8221;;<br />
  $res .= $data["footer"];<br />
*/</p>
<p>Add in the following line immediately after these lines:</p>
<p> $res = header(&#8216;Location: <a href="http://www.domain.com/thanks-for-confirming-your-subscription.html" rel="nofollow">http://www.domain.com/thanks-for-confirming-your-subscription.html</a>&#8216;);</p>
<p>(Assuming your custom landing page is <a href="http://www.domain.com/thanks-for-confirming-your-subscription.html)" rel="nofollow">http://www.domain.com/thanks-for-confirming-your-subscription.html)</a>.<br />
(Also note the single quotation marks.  If you use double quotation marks, it will not work, because everything after the // in the URL will be treated as a comment.)</p>
<p>For the custom landing page after the subscribe form is filled out:</p>
<p>In /lists/admin/subscribelib2.php, comment out lines 299 and 301, and add lines immediately after these lines, so the section now looks like this:</p>
<p>  # personalise the thank you page<br />
  if ($subscribepagedata["thankyoupage"]) {<br />
//    $thankyoupage = $subscribepagedata["thankyoupage"];<br />
header(&#8216;Location: <a href="http://www.domain.com/thanks-for-subscribing" rel="nofollow">http://www.domain.com/thanks-for-subscribing</a>&#8216;);<br />
  } else {<br />
//    $thankyoupage = &#8221;.$strThanks.&#8221;. $strEmailConfirmation;<br />
header(&#8216;Location: <a href="http://www.domain.com/thanks-for-subscribing" rel="nofollow">http://www.domain.com/thanks-for-subscribing</a>&#8216;);<br />
  }</p>
<p>(Note that you are adding the same line twice, once after line 299 and once after line 301.  Also note again the single quotes.)</p>
<p>I&#8217;ll post again once I get the code for the unsubscribe and preference pages figured out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: apisgogo</title>
		<link>http://www.spamcollect.com/archives/19/comment-page-1#comment-467</link>
		<dc:creator>apisgogo</dc:creator>
		<pubDate>Thu, 22 Jan 2009 15:34:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.spamcollect.com/archives/19#comment-467</guid>
		<description>Im using 2.10.5 version and I managed to hacked (redirect to my own preferred page) thank you page and confirmation page. (I left unsubscribe page by default).

I suggest you guys try these. 


For customized thank you page:
go to admin then open subscribelib2.php line 298. the original code is:

if ($subscribepagedata[&quot;thankyoupage&quot;]) {
    $thankyoupage = $subscribepagedata[&quot;thankyoupage&quot;];
	} else {
        $thankyoupage = &#039;&#039;.$strThanks.&#039;&#039;. $strEmailConfirmation;

change it to:

if ($subscribepagedata[&quot;thankyoupage&quot;]) {
    $thankyoupage = $subscribepagedata[&quot;thankyoupage&quot;];
	header(&quot;Location: http://www.yourdomain/your_thankyou_page.php&quot;);
  } else {
        $thankyoupage = &#039;&#039;.$strThanks.&#039;&#039;. $strEmailConfirmation;



For customized confirmation page (page after user click confirmation in their email):
go to lists then open index.php line 576. the original code is:

  $res = &#039;&#039;.$GLOBALS[&quot;strConfirmTitle&quot;].&#039;&#039;;
  $res .= $data[&quot;header&quot;];
  $res .= &#039;&#039;.$info.&#039;&#039;;
  $res .= $html;
  $res .= &quot;&quot;.$GLOBALS[&quot;PoweredBy&quot;].&#039;&#039;;
  $res .= $data[&quot;footer&quot;];
  return $res;

change it to:

$res = &#039;&#039;.$GLOBALS[&quot;strConfirmTitle&quot;].&#039;&#039;;
  header(&quot;Location: http://www.yourdomain/your_confirm_page.php&quot;);
  $res .= $data[&quot;header&quot;];
  $res .= &#039;&#039;.$info.&#039;&#039;;
  $res .= $html;
  $res .= &quot;&quot;.$GLOBALS[&quot;PoweredBy&quot;].&#039;&#039;;
  $res .= $data[&quot;footer&quot;];
  return $res;


and you&#039;re done! I do all these steps, and it work great with no hiccup; all emails sent properly.

hope this helps.</description>
		<content:encoded><![CDATA[<p>Im using 2.10.5 version and I managed to hacked (redirect to my own preferred page) thank you page and confirmation page. (I left unsubscribe page by default).</p>
<p>I suggest you guys try these. </p>
<p>For customized thank you page:<br />
go to admin then open subscribelib2.php line 298. the original code is:</p>
<p>if ($subscribepagedata["thankyoupage"]) {<br />
    $thankyoupage = $subscribepagedata["thankyoupage"];<br />
	} else {<br />
        $thankyoupage = &#8221;.$strThanks.&#8221;. $strEmailConfirmation;</p>
<p>change it to:</p>
<p>if ($subscribepagedata["thankyoupage"]) {<br />
    $thankyoupage = $subscribepagedata["thankyoupage"];<br />
	header(&#8220;Location: <a href="http://www.yourdomain/your_thankyou_page.php" rel="nofollow">http://www.yourdomain/your_thankyou_page.php</a>&#8220;);<br />
  } else {<br />
        $thankyoupage = &#8221;.$strThanks.&#8221;. $strEmailConfirmation;</p>
<p>For customized confirmation page (page after user click confirmation in their email):<br />
go to lists then open index.php line 576. the original code is:</p>
<p>  $res = &#8221;.$GLOBALS["strConfirmTitle"].&#8221;;<br />
  $res .= $data["header"];<br />
  $res .= &#8221;.$info.&#8221;;<br />
  $res .= $html;<br />
  $res .= &#8220;&#8221;.$GLOBALS["PoweredBy"].&#8221;;<br />
  $res .= $data["footer"];<br />
  return $res;</p>
<p>change it to:</p>
<p>$res = &#8221;.$GLOBALS["strConfirmTitle"].&#8221;;<br />
  header(&#8220;Location: <a href="http://www.yourdomain/your_confirm_page.php" rel="nofollow">http://www.yourdomain/your_confirm_page.php</a>&#8220;);<br />
  $res .= $data["header"];<br />
  $res .= &#8221;.$info.&#8221;;<br />
  $res .= $html;<br />
  $res .= &#8220;&#8221;.$GLOBALS["PoweredBy"].&#8221;;<br />
  $res .= $data["footer"];<br />
  return $res;</p>
<p>and you&#8217;re done! I do all these steps, and it work great with no hiccup; all emails sent properly.</p>
<p>hope this helps.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
