View Single Post
Old 2006-09-20, 09:26 AM   #2
Toby
Lonewolf Internet Sales
 
Toby's Avatar
 
Join Date: Mar 2005
Location: Houston
Posts: 4,826
Send a message via ICQ to Toby
Mariah,

This is really pretty simple, with just a couple of snippets of PHP code.

First, your galleries need to be PHP pages rather than HTML. Simply change the file extension to .php
The links will then look something like this: http://www.mariahxxx.net/galleries/gal01.php?aff=644425

Next, wherever you need an affiliate link within the gallery you use the following:
PHP Code:
<a href="http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=923596-0002&PA=<?= $_GET['aff'?>">
That little snippet at the end with the ?'s and the $_GET grabs the affiliate ID from the gallery URL and inserts it into the referral link.

That's it, no more building custom affiliate galleries and you now have affiliate friendly hosted galleries.

Last edited by Toby; 2006-09-20 at 09:29 AM..
Toby is offline   Reply With Quote