<?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>Thesis: Hosting &#187; WHMCS</title>
	<atom:link href="http://www.thesishosting.com/topics/whmcs/feed" rel="self" type="application/rss+xml" />
	<link>http://www.thesishosting.com</link>
	<description>Down &#38; Dirty Web Hosting Resource</description>
	<lastBuildDate>Mon, 21 Nov 2011 20:02:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>WHMCS Affiliate Landing Page Customization</title>
		<link>http://www.thesishosting.com/2009/10/topics/whmcs/affiliate-landing-page-customization</link>
		<comments>http://www.thesishosting.com/2009/10/topics/whmcs/affiliate-landing-page-customization#comments</comments>
		<pubDate>Mon, 19 Oct 2009 19:46:34 +0000</pubDate>
		<dc:creator>Dixie</dc:creator>
				<category><![CDATA[WHMCS]]></category>
		<category><![CDATA[Affiliates]]></category>
		<category><![CDATA[Customization]]></category>

		<guid isPermaLink="false">http://thesishosting.com/?p=73</guid>
		<description><![CDATA[WHMCS, widely used in the hosting industry, does not have a default mechanism set up for allowing affiliate deep-linking, setting up a specific landing page. This quick how-to tutorial tells you how to set up affiliate links for pages other than the site's home page with a quick edit.]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://www.thesishosting.com/2009/10/topics/whmcs/affiliate-landing-page-customization" title="Permanent link to WHMCS Affiliate Landing Page Customization"><img class="post_image alignnone" src="http://thesishosting.dixiblog.com/files/2009/10/whmcs_logo.gif" width="426" height="83" alt="WHMCS Affiliate Landing Page Customization" /></a>
</p><p>To customize landing pages for WHMCS, you change the PHP code in the unencrypted aff.php page, located in the root of your WHMCS installation.</p>
<p>Code lifted from this thread:<br />
<a title="whmcs forum post affiliate landing pages" href="http://forum.whmcs.com/showpost.php?p=112999&amp;postcount=6">http://forum.whmcs.com/showpost.php?p=112999&amp;postcount=6</a></p>
<pre class="brush: php; title: ; notranslate">&lt;?php

define(&quot;CLIENTAREA&quot;,true);

include(&quot;dbconnect.php&quot;);
include(&quot;includes/functions.php&quot;);

if (isset($aff)) {
    update_query(&quot;tblaffiliates&quot;,array(&quot;visitors&quot;=&gt;&quot;+1&quot;),array(&quot;id&quot;=&gt;$aff));
    setcookie(&quot;WHMCSAffiliateID&quot;, $aff, time()+90*24*60*60);
}

//Custom page code
$destination = &quot;&quot;;
if(isset($_GET[&quot;p&quot;]))
    $destination = $_GET[&quot;p&quot;];

header(&quot;HTTP/1.1 301 Moved Permanently&quot;);
header(&quot;Location: &quot;.$CONFIG[&quot;Domain&quot;].&quot;/&quot;.$destination);

?&gt;</pre>
<p>Links go like this:</p>
<pre class="brush: xml; title: ; notranslate">&lt;a href=&quot;[AffiliateLinkCode]&amp;p=samplefolder/samplepage.php&quot;&gt;Sample Page Direct Affiliate Link&lt;/a&gt;</pre>
<p>This allows you to set specific banners, links, etc. for specific landing pages.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thesishosting.com/2009/10/topics/whmcs/affiliate-landing-page-customization/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Served from: www.thesishosting.com @ 2012-02-06 23:52:34 by W3 Total Cache -->
