GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   small PHP question [pls help!] (https://gfy.com/showthread.php?t=521171)

DutchTeenCash 09-27-2005 02:50 AM

small PHP question [pls help!]
 
Id like to see if an aff code is there or not for a test, but with my C64 programmaing capabilities Im not getting there :) Pls help...


http://refer.ccbill.com/cgi-bin/clic...y.com/test.php

This is in the test.php:

<?php

if (PA = = 0) {
echo "AFF CODE NOT THERE";
} else {
echo "AFF CODE THERE";
}
?>

It needs to print AFF CODE THERE when the &PA=999999 or so and if PA isnt there (zero) it needs to print AFF CODE NOT THERE. I know the = = have a space but otherwise the haha codes comes in...

Any 2 cents?

thanks!

Bob

darksoul 09-27-2005 02:53 AM

use
Code:

$_GET['PA']
instead of just PA

Jakke PNG 09-27-2005 02:54 AM

hmm.. I'm no guru by any stretch of imagination..but if your page is on strawberrysandy.com and the variable goes to refer.ccbill.com domain, I don't think it'll carry on to strawberrysandy.

darksoul 09-27-2005 02:54 AM

also, instead of
= = you should use
Code:

if(isset($_GET['PA']))

Jakke PNG 09-27-2005 02:55 AM

however darksoul seems to have more clue than me..so maybe you ought to listen to him instead. :1orglaugh
I suck at teh interwebs

darksoul 09-27-2005 02:56 AM

Quote:

Originally Posted by TeenGodFather
hmm.. I'm no guru by any stretch of imagination..but if your page is on strawberrysandy.com and the variable goes to refer.ccbill.com domain, I don't think it'll carry on to strawberrysandy.

you're right :) missed that.

Jakke PNG 09-27-2005 02:57 AM

Quote:

Originally Posted by darksoul
you're right :) missed that.

Goddamn! Didn't see that one coming. Sweet. I rock. :thumbsup

DutchTeenCash 09-27-2005 03:01 AM

Quote:

Originally Posted by darksoul
you're right :) missed that.

yeah doesnt work... shoot it should be possible somehow...

Basically what I want is to be able to print a link on a .html site when theres NO aff code and when there IS it needs to be remove.

Some aff hate the bloglink so I want that to be removed automatically when an aff send the link. When its a typein it can be there.

Any more 2 cents?

darksoul 09-27-2005 03:10 AM

Quote:

Originally Posted by uproared
Impossible using standard CCBILL links.

not really, they have the option to pass you back any variable you set.

I don't have the api's at hand right now but I'll take a look when I get home.

Jakke PNG 09-27-2005 03:12 AM

Quote:

Originally Posted by darksoul
not really, they have the option to pass you back any variable you set.

I don't have the api's at hand right now but I'll take a look when I get home.

As far as I know they only send info about signups.. not other data. Unless you put up a datalink when you get rebills and chargebacks and such, I doubt there's a way to get non-signup related info from them.

DutchTeenCash 09-27-2005 03:14 AM

hmm shame, so the only way to enable that would like adding

www.strawberrysandy.com/test.php&blog=off

or so?

darksoul can you shoot me an icq to see if you can solve this? 16 91 547 thanks!

darksoul 09-27-2005 03:18 AM

Quote:

Originally Posted by TeenGodFather
As far as I know they only send info about signups.. not other data. Unless you put up a datalink when you get rebills and chargebacks and such, I doubt there's a way to get non-signup related info from them.

we're talking about click tracking here tho which they do provide
the HTML var can not only contain an url but variables too.
so you can put:
HTML=http://www.domain.com/?VAR=VALUE&VAR2=XXX
this variables are usually populated by you when the user click
but some can be populated by ccbill. I have to lookup their api.

DutchTeenCash 09-27-2005 03:25 AM

thanks for hitting me up!

rowan 09-27-2005 04:43 AM

Why don't you just get people to send to a different URL? You can include("...") the original content.

eg, you could name a file tournoblog.php and put something like this in it:

<?php
$noblog = 1;
include "tour.php";
?>

gornyhuy 09-27-2005 06:37 AM

Cheers to GFY for an actual useful technical discussion... Let us know if you figure it out.

DutchTeenCash 09-27-2005 07:16 AM

Quote:

Originally Posted by uproared
As I mentioned above, if you're using 'standard' ccbill links it is not possible. If you add variables to the end of target url then obviously they will be passed through. It's impossible to access the variables sent to ccbill (namely the wm and affliate IDs).

The API is only relevant for sales.

got that reply too... gotta think over the whole thing come up with another solution...


All times are GMT -7. The time now is 07:08 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123