<?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, 25 Jan 2012 13:25:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: kris</title>
		<link>http://www.spamcollect.com/archives/19/comment-page-2#comment-8570</link>
		<dc:creator>kris</dc:creator>
		<pubDate>Tue, 20 Sep 2011 12:20:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.spamcollect.com/archives/19#comment-8570</guid>
		<description>hello, i patcht this succesful, i also want to make a customiset admin page where the user ho createds the newsletter, can make a news letter and send it too al the registerd e-mails for this user, and a little of statistics. is this possible to do so whit my layout of my website?

thanks</description>
		<content:encoded><![CDATA[<p>hello, i patcht this succesful, i also want to make a customiset admin page where the user ho createds the newsletter, can make a news letter and send it too al the registerd e-mails for this user, and a little of statistics. is this possible to do so whit my layout of my website?</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick Chuprina</title>
		<link>http://www.spamcollect.com/archives/19/comment-page-2#comment-8387</link>
		<dc:creator>Patrick Chuprina</dc:creator>
		<pubDate>Wed, 13 Apr 2011 19:38:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.spamcollect.com/archives/19#comment-8387</guid>
		<description>I hope its not too late to get my problem solved or helped with.  Or, am I too late once again?

Using:  2.20.13

I know the answer is somewhere and I have been looking for the past two days. I have successfully created a custom subscription page, confirmation page,unsubscribe page, but when the the unsubscribe button is pressed I&#039;m directed to the phpList message/page &quot;You have been unsubscribed...&quot; how can I direct the action of pushing the button to a custom designed page I have built?

I know this is probably a simple fix, but I can&#039;t seem to find it.  Any help, guidance or code to copy would be greatly appreciated.

Keeping my fingers crossed.

PChuprina</description>
		<content:encoded><![CDATA[<p>I hope its not too late to get my problem solved or helped with.  Or, am I too late once again?</p>
<p>Using:  2.20.13</p>
<p>I know the answer is somewhere and I have been looking for the past two days. I have successfully created a custom subscription page, confirmation page,unsubscribe page, but when the the unsubscribe button is pressed I&#8217;m directed to the phpList message/page &#8220;You have been unsubscribed&#8230;&#8221; how can I direct the action of pushing the button to a custom designed page I have built?</p>
<p>I know this is probably a simple fix, but I can&#8217;t seem to find it.  Any help, guidance or code to copy would be greatly appreciated.</p>
<p>Keeping my fingers crossed.</p>
<p>PChuprina</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Update on hacking PHPList to redirect subscription and unsubscription page at spamcollect</title>
		<link>http://www.spamcollect.com/archives/19/comment-page-2#comment-8384</link>
		<dc:creator>Update on hacking PHPList to redirect subscription and unsubscription page at spamcollect</dc:creator>
		<pubDate>Wed, 13 Apr 2011 10:30:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.spamcollect.com/archives/19#comment-8384</guid>
		<description>[...] 4 years ago I wrote a post about hacking PHPList to redirect the subscribe and unsubscribe pages. It is one of the most read articles on my blog. [...]</description>
		<content:encoded><![CDATA[<p>[...] 4 years ago I wrote a post about hacking PHPList to redirect the subscribe and unsubscribe pages. It is one of the most read articles on my blog. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.spamcollect.com/archives/19/comment-page-2#comment-8382</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 13 Apr 2011 10:06:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.spamcollect.com/archives/19#comment-8382</guid>
		<description>Hi all, 

I wrote a quick update on the hack http://www.spamcollect.com/archives/75 

Let me know if it works. 

Thanks</description>
		<content:encoded><![CDATA[<p>Hi all, </p>
<p>I wrote a quick update on the hack <a href="http://www.spamcollect.com/archives/75" rel="nofollow">http://www.spamcollect.com/archives/75</a> </p>
<p>Let me know if it works. </p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frederick</title>
		<link>http://www.spamcollect.com/archives/19/comment-page-2#comment-8381</link>
		<dc:creator>Frederick</dc:creator>
		<pubDate>Tue, 12 Apr 2011 19:44:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.spamcollect.com/archives/19#comment-8381</guid>
		<description>I&#039;m also trying to get a newer version: 2.10.13 to redirect to and from custom Unsubcription and Preferences forms and to have the confirmations just be pop-up windows. Any help would be great. As has been stated the new version is not compatible with the code shown here thus far.
Please, Please, Please an update would help so many I&#039;m sure.
How do I mod the following new code to work?

function unsubscribePage($id) {
  global $data, $tables;
  $res = &#039;&#039;.$GLOBALS[&quot;strUnsubscribeTitle&quot;].&#039;&#039;.&quot;\n&quot;;  
  $res .= $data[&quot;header&quot;];

  if (isset($_GET[&quot;uid&quot;])) {
    $req = Sql_Query(&quot;select * from $tables[user] where uniqid = \&quot;&quot;.$_GET[&quot;uid&quot;].&quot;\&quot;&quot;);
    $userdata = Sql_Fetch_Array($req);
    $email = $userdata[&quot;email&quot;];
    if (UNSUBSCRIBE_JUMPOFF) {
      $_POST[&quot;unsubscribe&quot;] = 1;
      $_POST[&quot;email&quot;] = $email;
      $_REQUEST[&#039;unsubscribeemail&#039;] = $email;
      $_POST[&quot;unsubscribereason&quot;] = &#039;&quot;Jump off&quot; set, reason not requested&#039;;
    }
  } else {
    if (isset($_REQUEST[&#039;unsubscribeemail&#039;])) {
       if (UNSUBSCRIBE_JUMPOFF) {
          $_POST[&quot;unsubscribe&quot;] = 1;
          $_POST[&quot;unsubscribereason&quot;] = &#039;&quot;Jump off&quot; set, reason not requested&#039;;
       }
       $email = $_REQUEST[&#039;unsubscribeemail&#039;];
    } else {
       if (isset($_REQUEST[&#039;email&#039;])) {
          if (UNSUBSCRIBE_JUMPOFF) {
             $_POST[&quot;unsubscribe&quot;] = 1;
             $_POST[&quot;unsubscribereason&quot;] = &#039;&quot;Jump off&quot; set, reason not requested&#039;;
          }
          $email = $_REQUEST[&#039;email&#039;];
       }
    }
Thanks in advance for all your help.
Frederick</description>
		<content:encoded><![CDATA[<p>I&#8217;m also trying to get a newer version: 2.10.13 to redirect to and from custom Unsubcription and Preferences forms and to have the confirmations just be pop-up windows. Any help would be great. As has been stated the new version is not compatible with the code shown here thus far.<br />
Please, Please, Please an update would help so many I&#8217;m sure.<br />
How do I mod the following new code to work?</p>
<p>function unsubscribePage($id) {<br />
  global $data, $tables;<br />
  $res = &#8221;.$GLOBALS["strUnsubscribeTitle"].&#8221;.&#8221;\n&#8221;;<br />
  $res .= $data["header"];</p>
<p>  if (isset($_GET["uid"])) {<br />
    $req = Sql_Query(&#8220;select * from $tables[user] where uniqid = \&#8221;".$_GET["uid"].&#8221;\&#8221;");<br />
    $userdata = Sql_Fetch_Array($req);<br />
    $email = $userdata["email"];<br />
    if (UNSUBSCRIBE_JUMPOFF) {<br />
      $_POST["unsubscribe"] = 1;<br />
      $_POST["email"] = $email;<br />
      $_REQUEST['unsubscribeemail'] = $email;<br />
      $_POST["unsubscribereason"] = &#8216;&#8221;Jump off&#8221; set, reason not requested&#8217;;<br />
    }<br />
  } else {<br />
    if (isset($_REQUEST['unsubscribeemail'])) {<br />
       if (UNSUBSCRIBE_JUMPOFF) {<br />
          $_POST["unsubscribe"] = 1;<br />
          $_POST["unsubscribereason"] = &#8216;&#8221;Jump off&#8221; set, reason not requested&#8217;;<br />
       }<br />
       $email = $_REQUEST['unsubscribeemail'];<br />
    } else {<br />
       if (isset($_REQUEST['email'])) {<br />
          if (UNSUBSCRIBE_JUMPOFF) {<br />
             $_POST["unsubscribe"] = 1;<br />
             $_POST["unsubscribereason"] = &#8216;&#8221;Jump off&#8221; set, reason not requested&#8217;;<br />
          }<br />
          $email = $_REQUEST['email'];<br />
       }<br />
    }<br />
Thanks in advance for all your help.<br />
Frederick</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yvette</title>
		<link>http://www.spamcollect.com/archives/19/comment-page-2#comment-8372</link>
		<dc:creator>yvette</dc:creator>
		<pubDate>Sat, 22 Jan 2011 05:49:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.spamcollect.com/archives/19#comment-8372</guid>
		<description>Still no one got a solution to a custom thankyou page and unsubscribe page in the newest version?
I am completely lost, the lines are all different, and the code is all different....</description>
		<content:encoded><![CDATA[<p>Still no one got a solution to a custom thankyou page and unsubscribe page in the newest version?<br />
I am completely lost, the lines are all different, and the code is all different&#8230;.</p>
]]></content:encoded>
	</item>
	<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>
</channel>
</rss>

