Greenguy's Board


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

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2006-09-20, 08:22 AM   #1
mariah
Well you know boys, a nuclear reactor is a lot like women. You just have to read the manual and press the right button
 
Join Date: Mar 2004
Location: los angeles
Posts: 155
Send a message via ICQ to mariah Send a message via Yahoo to mariah
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
mariah is offline   Reply With Quote
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
Old 2006-09-20, 03:22 PM   #3
virgohippy
Madness is like gravity. All it takes is a little... push.
 
virgohippy's Avatar
 
Join Date: Feb 2006
Location: California
Posts: 1,679
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.
__________________
~Warm and Fuzzy.
virgohippy is offline   Reply With Quote
Old 2006-09-21, 08:05 AM   #4
lorsha
So much sperm ... So little time!
 
lorsha's Avatar
 
Join Date: Aug 2005
Posts: 1,433
Quote:
Originally Posted by Toby View Post
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.
__________________
Sexy-Milf-Money
lorsha is offline   Reply With Quote
Old 2006-12-27, 02:34 AM   #5
TightTeela
Trying is the first step towards failure
 
TightTeela's Avatar
 
Join Date: Dec 2006
Posts: 121
thanks toby, im trying this now as well
__________________
TightTeela
TightTeela is offline   Reply With Quote
Reply


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 02:54 PM.


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