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 06-05-2023, 10:54 PM   #1
Publisher Bucks
Confirmed User
 
Industry Role:
Join Date: Oct 2018
Location: New Orleans, Louisiana.
Posts: 770
Why isnt this code pulling the CCBill affiliate ID?

I'm using the following php code, which I was under the impression should allow me to pull the &PA=AFFILIATEID from a standard CCBill link:

Code:
http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=XXXXXX-0000&PA=AFFILIATEID
Code:
<?php
$affiliateCode = isset($_GET['PA']) ? $_GET['PA'] : '';
?>
Then using the following to try and display the code in index.php (just a normal html page with .php extension:

Code:
<?php echo $affiliateCode; ?>
But it isn't working, what am I missing please?

I notice when you use CCBill links there is a redirect to the main https://www.domain.com of the site, is there a way to capture the affiliate code prior to the redirect happening (or an easier way I'm missing)?

Thanks for any advice, feedback, solutions
__________________
DMCASUITE
BETA Testers Needed.
Publisher Bucks is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-06-2023, 12:47 AM   #2
Klen
 
Klen's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,234
Are you pulling ccbill link from browser bar or from variable ?
Klen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-06-2023, 12:57 AM   #3
redwhiteandblue
Bollocks
 
redwhiteandblue's Avatar
 
Industry Role:
Join Date: Jun 2007
Location: Bollocks
Posts: 2,792
Those $_GET params are only available to the script that they are applied to, i.e. refer.ccbill.com/cgi-bin/clicks.cgi - they are not available to the script it redirects to. That would be a massive massive security and privacy flaw, if one script could read another script's parameters!
redwhiteandblue is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-06-2023, 10:30 AM   #4
Publisher Bucks
Confirmed User
 
Industry Role:
Join Date: Oct 2018
Location: New Orleans, Louisiana.
Posts: 770
Quote:
Originally Posted by Klen View Post
Are you pulling ccbill link from browser bar or from variable ?
From the browser but I guess it could also be pulled from code within the tour itself?
__________________
DMCASUITE
BETA Testers Needed.
Publisher Bucks is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-06-2023, 10:31 AM   #5
Publisher Bucks
Confirmed User
 
Industry Role:
Join Date: Oct 2018
Location: New Orleans, Louisiana.
Posts: 770
Quote:
Originally Posted by redwhiteandblue View Post
Those $_GET params are only available to the script that they are applied to, i.e. refer.ccbill.com/cgi-bin/clicks.cgi - they are not available to the script it redirects to. That would be a massive massive security and privacy flaw, if one script could read another script's parameters!
Ah okay, any suggestions on how I can get that parameter or set it on another area of the site tour?
__________________
DMCASUITE
BETA Testers Needed.
Publisher Bucks is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-06-2023, 10:59 AM   #6
Klen
 
Klen's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,234
Quote:
Originally Posted by Publisher Bucks View Post
From the browser but I guess it could also be pulled from code within the tour itself?
Just to confirm, when you click on h*tp://refer.ccbill.com/cgi-bin/clicks.cgi?CA=XXXXXX-0000&PA=AFFILIATEID, it loads your site with your code, correct ?
Klen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-06-2023, 01:07 PM   #7
redwhiteandblue
Bollocks
 
redwhiteandblue's Avatar
 
Industry Role:
Join Date: Jun 2007
Location: Bollocks
Posts: 2,792
Quote:
Originally Posted by Publisher Bucks View Post
Ah okay, any suggestions on how I can get that parameter or set it on another area of the site tour?
CCBill doesn't pass the parameters through so the only way you can possibly get them is by looking at the referrer string ($_SERVER["http_referer"]) but that would be terribly unreliable since whether the referrer string is present depends on many things including the level of privacy set in the user's browser.

You would have to take a different approach and get affiliates to send traffic to a landing page on your site which captures the params, constructs the CCBill URL with them and then redirects to it, which will then redirect the user back to your home page.
redwhiteandblue is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-06-2023, 02:05 PM   #8
fuzebox
making it rain
 
fuzebox's Avatar
 
Industry Role:
Join Date: Oct 2003
Location: seattle
Posts: 21,848
Sometimes I think you're just lazy and don't want to use the correct resources, and then you post something like this and I realize you don't even have a grasp of the basic fundamentals of how the web works.
fuzebox is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-06-2023, 06:34 PM   #9
Publisher Bucks
Confirmed User
 
Industry Role:
Join Date: Oct 2018
Location: New Orleans, Louisiana.
Posts: 770
Quote:
Originally Posted by Klen View Post
Just to confirm, when you click on h*tp://refer.ccbill.com/cgi-bin/clicks.cgi?CA=XXXXXX-0000&PA=AFFILIATEID, it loads your site with your code, correct ?
it does yes.

Correction, it credits the sale to the AFFILIATEID, it doesn't show the actual affiliate ID anywhere in the page code.
__________________
DMCASUITE
BETA Testers Needed.
Publisher Bucks is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-06-2023, 06:36 PM   #10
Publisher Bucks
Confirmed User
 
Industry Role:
Join Date: Oct 2018
Location: New Orleans, Louisiana.
Posts: 770
Quote:
Originally Posted by redwhiteandblue View Post
CCBill doesn't pass the parameters through so the only way you can possibly get them is by looking at the referrer string ($_SERVER["http_referer"]) but that would be terribly unreliable since whether the referrer string is present depends on many things including the level of privacy set in the user's browser.

You would have to take a different approach and get affiliates to send traffic to a landing page on your site which captures the params, constructs the CCBill URL with them and then redirects to it, which will then redirect the user back to your home page.
Gotcha, so basically i'd have to do something along the lines of a clicks.php which then redirects to the site instantly and carry the affiliate ID across to both the URL and the additional field where I want it to appear?
__________________
DMCASUITE
BETA Testers Needed.
Publisher Bucks is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-06-2023, 07:38 PM   #11
The Porn Nerd
Living The Dream
 
The Porn Nerd's Avatar
 
Industry Role:
Join Date: Jun 2009
Location: Inside a Monitor
Posts: 19,321
I have a headache from reading all this shit.
__________________
My Affiliate Programs:
Porn Nerd Cash | Porn Showcase | Aggressive Gold (Coming Soon)

Over 90 paysites to promote!
Skype: peabodymedia
The Porn Nerd 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

Tags
code, ccbill, missing, redirect, affiliate, main, links, notice, capture, easier, feedback, advice, site, solutions, happening, prior, https://www.domain.com, normal, pull, &pa=affiliateid, impression, pulling, php, standard, link



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.