Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Today's Posts

 
 
Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:55 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc