Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   Programming & Scripting (http://www.greenguysboard.com/board/forumdisplay.php?f=15)
-   -   Making FHG using CCBill Linking codes... (http://www.greenguysboard.com/board/showthread.php?t=34617)

mariah 2006-09-20 08:22 AM

Making FHG using CCBill Linking codes...
 
I don't have NATS or MPA3 so I use ccbill for my affilliates like a lot of people. So when an affiliate asks for FHG's I have to manually go through all of my galleries and add their codes by hand, upload each one and then link it. IT SUCKS!!!!!!!!!!!!!

Is there a script that can add ccbill affiliate links to pages automatically? If so what is it and where do I get it? I am getting more and more requests for fhg's from sponsors and have over 300 to edit! so I am losing my mind, not to mention spending way too much time on that shit! lol I could be doing cam shows or photos or whatever else!

Anyway, thank you and I hope I win this damn contest! I got up at 5 while I'm on vacation in LA for this thing!

I look forward to the replies to this one!

Thank you!

xoxoxo
Mariah

Toby 2006-09-20 09:26 AM

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. :D

virgohippy 2006-09-20 03:22 PM

Htaccess support, when properly used, can also clean up those urls so they look nice and pretty. I think something like this put inside your galleries folder should work:

Quote:

# Enable rewrite
RewriteEngine on
# Perform rewrite
RewriteRule ^([0-9]+)/([a-z,0-9]+)/$ $2.php?aff=$1
This should make your urls read like this:

http://www.mariahxxx.net/galleries/644425/gal01/

Might want to get an expert to help you out if you're not familiar with htaccess though. :)

lorsha 2006-09-21 08:05 AM

Quote:

Originally Posted by Toby (Post 301011)
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. :D

Worked out great for me, thanks to Toby. |thumb

TightTeela 2006-12-27 02:34 AM

thanks toby, im trying this now as well


All times are GMT -4. The time now is 02:28 PM.

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