Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 04-02-2010, 01:57 PM   #1
mike134
Registered User
 
Join Date: May 2007
Posts: 50
ccbill programming question

thought id just throw this question out there if anyone knows off hand as I didnt signup to ccbill as my merchant just yet.

So an example ccbill link would be

http : // refer . ccbill . com/cgi-bin/clicks.cgi?CA=SITEID&PA=AFFILID&HTML=http : // www . foo . com

so when a person visits the link a cookie is set, and on purchase a credit is issued to the webmaster.. blah blah

what i want to do is grab the AFFILID to use on services purchased not through ccbill, but are on the site as well so affiliate can be credited.

example: have a membership site, but also a public store where people can purchase.
so this is what im looking to do: send people to the ccbill link which will credit/track membership signups, but also have my custom store send me the affiliate id so I can manual credit.

anyone know of a way to do this, im decent with php.

thanks in advance.
mike134 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-02-2010, 02:03 PM   #2
BestXXXPorn
Confirmed User
 
BestXXXPorn's Avatar
 
Join Date: Jun 2009
Location: Asheville, NC
Posts: 2,277
The incoming link will have a get var of PA for your id so... if you'd like to track it in only a single session...

$_SESSION['affiliate_id'] = $_GET['PA'];

after you've done your:

session_start();

Once you have it in your session you can access it any time... If a user creates a store account, assign that to their user table. If it's a one time buy just add it to your order table. If you want it to persist beyond the first visit without them creating an account, just store the value in a cookie :P

Hope that helps!
__________________
ICQ: 258-202-811 | Email: eric{at}bestxxxporn.com
BestXXXPorn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-02-2010, 02:08 PM   #3
mike134
Registered User
 
Join Date: May 2007
Posts: 50
isn't the $_GET['PA'] accessible only on refer . ccbill . com , I thought they just set a cookie then redirect to the site, so when it hits me, all i would have access to is.. maybe a referral url, which isn't too reliable. Is this not true? I haven't tested but in my head thats how i thought it would be.
mike134 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-02-2010, 02:12 PM   #4
BestXXXPorn
Confirmed User
 
BestXXXPorn's Avatar
 
Join Date: Jun 2009
Location: Asheville, NC
Posts: 2,277
Oh sorry I see what you're saying ... Does CCBill offer any sort of pass through parameters at all?

I'm sure they at least set some kind of cookie... however to read it (and assuming it's unencrypted) you'd have to do some spoofing... surely not a very viable option but definitely a possibility...
__________________
ICQ: 258-202-811 | Email: eric{at}bestxxxporn.com

Last edited by BestXXXPorn; 04-02-2010 at 02:13 PM..
BestXXXPorn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-02-2010, 02:15 PM   #5
mike134
Registered User
 
Join Date: May 2007
Posts: 50
wait hmm DOH! lol

i should be able to just make all my links:

http : // refer . ccbill . com/cgi-bin/clicks.cgi?CA=SITEID&PA=AFFILID&HTML=http : // www . foo . com?PA=AFFILID

what a useless thread I made, lol
mike134 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-02-2010, 02:32 PM   #6
BestXXXPorn
Confirmed User
 
BestXXXPorn's Avatar
 
Join Date: Jun 2009
Location: Asheville, NC
Posts: 2,277
Quote:
Originally Posted by mike134 View Post
wait hmm DOH! lol

i should be able to just make all my links:

http : // refer . ccbill . com/cgi-bin/clicks.cgi?CA=SITEID&PA=AFFILID&HTML=http : // www . foo . com?PA=AFFILID

what a useless thread I made, lol
Perfect
__________________
ICQ: 258-202-811 | Email: eric{at}bestxxxporn.com
BestXXXPorn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-02-2010, 03:23 PM   #7
redwhiteandblue
Bollocks
 
redwhiteandblue's Avatar
 
Industry Role:
Join Date: Jun 2007
Location: Bollocks
Posts: 2,792
You might find you have to url-encode the query string part of the url to your site in that link.
redwhiteandblue is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-02-2010, 03:25 PM   #8
BV
wtf
 
BV's Avatar
 
Industry Role:
Join Date: Sep 2001
Location: Bikini State, FL USA
Posts: 10,914
I would not have your affiliate use the ccbill url in their link code.

I would have them link to your own php file, then have that file load the ccbill link plus whatever other parameters you want to carry with it.
BV is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-12-2010, 07:20 PM   #9
mike134
Registered User
 
Join Date: May 2007
Posts: 50
BV or Anyone:

Is it ok to have linkcodes that point to a redirect file on my servers, then redirect off to ccbill link codes. Obviously it will "work" but anyone know if it may screw with stats/tracking/etc?
mike134 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-12-2010, 07:25 PM   #10
BV
wtf
 
BV's Avatar
 
Industry Role:
Join Date: Sep 2001
Location: Bikini State, FL USA
Posts: 10,914
Quote:
Originally Posted by mike134 View Post
BV or Anyone:

Is it ok to have linkcodes that point to a redirect file on my servers, then redirect off to ccbill link codes. Obviously it will "work" but anyone know if it may screw with stats/tracking/etc?
not at all, works fine, in ccbill it shows referring urls hits etc etc

you can test it and see
BV is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-12-2010, 07:30 PM   #11
LoveSandra
So Fucking Banned
 
Join Date: Aug 2008
Location: Just Blow Me
Posts: 10,551
bump 4 help
LoveSandra is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.