<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>spamcollect &#187; phplist</title>
	<atom:link href="http://www.spamcollect.com/archives/category/phplist/feed" rel="self" type="application/rss+xml" />
	<link>http://www.spamcollect.com</link>
	<description>about, all the spam in my life</description>
	<lastBuildDate>Thu, 24 Jun 2010 13:09:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>How to redirect phpList to custom subscribe and unsubscribe pages. A phpList hack!</title>
		<link>http://www.spamcollect.com/archives/19</link>
		<comments>http://www.spamcollect.com/archives/19#comments</comments>
		<pubDate>Wed, 29 Aug 2007 19:24:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[phplist]]></category>

		<guid isPermaLink="false">http://www.spamcollect.com/archives/19</guid>
		<description><![CDATA[In some cases it is necessary to redirect request from your phpList installation to a website in your cms. PHPList does provide custom pages, but sometimes it is easier to redirect request to your cms, because in a cms for example, you already have your template and all your informations. You don&#8217;t have to write [...]]]></description>
			<content:encoded><![CDATA[<p>In some cases it is necessary to redirect request from your phpList installation to a website in your cms. <br />
PHPList does provide custom pages, but sometimes it is easier to redirect request to your cms, because in a cms for example, you already have your template and all your informations. You don&#8217;t have to write the html code again, you just create a new article and your done. So for all that were looking for an easy way, there is none!</p>
<p>You have to edit php code! Let&#8217;s start.</p>
<p>First of all, the confirmation page:</p>
<p>Open the file /lists/index.php at line: 531 (remove the dots in the html tags)</p>
<p><code>$res = '';<br />
$res .= $data["header"];<br />
$res .= '<.h1>'.$info.'<./h1>';<br />
$res .= $html;<br />
$res .= "<.P>".$GLOBALS["PoweredBy"].'</.p>';<br />
$res .= $data["footer"];<br />
return $res; <br />
</code><br />
<br />
Modify it by adding the following:</p>
<p><code>$res = '';<br />
/*$res .= $data["header"];<br />
$res .= '<.h1>'.$info.'<./h1>';<br />
$res .= $html;<br />
$res .= "<.P>".$GLOBALS["PoweredBy"].'<./p>';<br />
$res .= $data["footer"];<br /> */<br />
$res = header("Location: http://www.spamcollect.com/confirmation_page");<br />
return $res; <br />
</code></p>
<p>Next step is the unsubscription page.<br />
Goto line: 589<br />
There you see the following:</p>
<p><code><br />
    if ($userid) {<br />
    $res .= '<.h1>...'.$GLOBALS["strUnsubscribeDone"] ."<./h1><.P>";<br />
    $res .= $GLOBALS["PoweredBy"].'<./p>';<br />
    $res .= $pagedata["footer"];<br />
    return $res;<br />
}<br />
</code><br />
<br />
Change it to:</p>
<p><code><br />
    if ($userid)<br />
    /*$res .= '<.h1>...'.$GLOBALS["strUnsubscribeDone"] ."<./h1><.P>";<br />
    $res .= $GLOBALS["PoweredBy"].'<./p>';<br />
    $res .= $pagedata["footer"];*/<br />
    $res = header("Location: http://www.spamcollect.com/unsubscribe_confirm");<br />
    return $res;</code></p>
<p>The last one is the subscribe page. To change that, you&#8217;ll have to open the file lists/admin/subscribelib2.php.<br />
Goto line: 288</p>
<p><code><br />
  if ($subscribepagedata["thankyoupage"]) {<br />
    $thankyoupage = $subscribepagedata["thankyoupage"];<br />
  } else {<br />
    $thankyoupage = '<.h3>'.$strThanks.'<./h3>'. $strEmailConfirmation;<br />
  }  <br />
</code><br />
<br />
Modify it so it looks like:<br />
<code><br />
  if ($subscribepagedata["thankyoupage"]) {<br />
    //$thankyoupage = $subscribepagedata["thankyoupage"];<br />
    header('Location: http://www.spamcollect.com/subscription_successful');<br />
  } else {<br />
    //$thankyoupage = '<.h3>'.$strThanks.'<./h3>'. $strEmailConfirmation;<br />
    header("Location: http://www.spamcollect.com/subscription_successful");<br />
  }  <br />
</code><br />
<br />
Now you&#8217;re done and your users won&#8217;t see any pages from phplist. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.spamcollect.com/archives/19/feed</wfw:commentRss>
		<slash:comments>51</slash:comments>
		</item>
	</channel>
</rss>
