<?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>Thu, 24 Jun 2010 09:19:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Johnny</title>
		<link>http://www.spamcollect.com/archives/19/comment-page-2#comment-8360</link>
		<dc:creator>Johnny</dc:creator>
		<pubDate>Thu, 24 Jun 2010 09:19:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.spamcollect.com/archives/19#comment-8360</guid>
		<description>Hi, can you please make an update for using this example in phpList 2.10.11 or .12, I tried to follow the example and I get an error: &quot;Parse error: syntax error, unexpected &#039;:&#039; in /home/site/public_html/list/index.php on line 676&quot;
The line number for latest phpList version is not the same but you can easily find the code which I edited to read:

  if ($userid)
/*      $res .= &#039;&#039;.$GLOBALS[&quot;strUnsubscribeDone&quot;] .&quot;&quot;;

    #0013076: Blacklisting posibility for unknown users
    if ($blacklist)
      $res .= &#039;&#039;.$GLOBALS[&quot;strYouAreBlacklisted&quot;] .&quot;&quot;;
    $res .= $GLOBALS[&quot;PoweredBy&quot;].&#039;&#039;;
    $res .= $data[&quot;footer&quot;]; 
  (next line676: )  */
    $res = header(”Location: http://www.adxpay.com/confirmation”);
    return $res;</description>
		<content:encoded><![CDATA[<p>Hi, can you please make an update for using this example in phpList 2.10.11 or .12, I tried to follow the example and I get an error: &#8220;Parse error: syntax error, unexpected &#8216;:&#8217; in /home/site/public_html/list/index.php on line 676&#8243;<br />
The line number for latest phpList version is not the same but you can easily find the code which I edited to read:</p>
<p>  if ($userid)<br />
/*      $res .= &#8221;.$GLOBALS["strUnsubscribeDone"] .&#8221;";</p>
<p>    #0013076: Blacklisting posibility for unknown users<br />
    if ($blacklist)<br />
      $res .= &#8221;.$GLOBALS["strYouAreBlacklisted"] .&#8221;";<br />
    $res .= $GLOBALS["PoweredBy"].&#8221;;<br />
    $res .= $data["footer"];<br />
  (next line676: )  */<br />
    $res = header(”Location: <a href="http://www.adxpay.com/confirmation”)" rel="nofollow">http://www.adxpay.com/confirmation”)</a>;<br />
    return $res;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Claudia</title>
		<link>http://www.spamcollect.com/archives/19/comment-page-1#comment-8356</link>
		<dc:creator>Claudia</dc:creator>
		<pubDate>Thu, 04 Feb 2010 14:29:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.spamcollect.com/archives/19#comment-8356</guid>
		<description>Thanks so much! I have my own thank you page now displaying on OTO below the thank you. Very cool!
Any idea how to add an autoresponder function to php list?</description>
		<content:encoded><![CDATA[<p>Thanks so much! I have my own thank you page now displaying on OTO below the thank you. Very cool!<br />
Any idea how to add an autoresponder function to php list?</p>
]]></content:encoded>
	</item>
	<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>
</channel>
</rss>
