Quote:
Originally Posted by 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. 
|
Worked out great for me, thanks to Toby.
