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)
-   -   Any PHP Gurus Up Tonight? (https://gfy.com/showthread.php?t=395325)

PornAddict 11-28-2004 10:42 PM

Any PHP Gurus Up Tonight?
 
I'm trying to hook up some galleries so I can have them hosted for affiliates. I need it so that an affiliate can plug in his CCBill number at the end of a url, which will then carry over to the gallery page.

Something like this...
Example:
http://www.someurlhere.com/hosted/1/index.php?ref=12345

Can anyone help by pointing me in the right direction?

- PornAddict

Intrigue 11-28-2004 10:43 PM

hit me up, i have something you might like.

edit, whoops: 297994306

Repetitive Monkey 11-28-2004 10:44 PM

<?echo $_REQUEST["ref"];?>

Dynamix 11-28-2004 10:46 PM

Quote:

Originally posted by Repetitive Monkey
<?echo $_REQUEST["ref"];?>
Close.. Try this.

Call the gallery as such:

http://domain.com/hosted/gallery1.php?ref=810391


Then in the gallery put:

<?PHP ECHO('<A HREF="http://www.sponsor.com/join.php?myid=' .$ref . '">Click here to sign up now!</A>'); ?>

Dynamix 11-28-2004 10:47 PM

Quote:

Originally posted by Repetitive Monkey
<?echo $_REQUEST["ref"];?>
I always run into spacing problems when I don't include the full HREF code in the PHP echo function. :2 cents:

Repetitive Monkey 11-28-2004 10:49 PM

Quote:

Originally posted by Dynamix
I always run into spacing problems when I don't include the full HREF code in the PHP echo function. :2 cents:
What the hell are you on about? Mine is correct.

Use it like so:

<a href="http://www.isohorny.com/blabla/somethingelse.php?ref=<?echo $_REQUEST["ref"];?>">

Dynamix 11-28-2004 10:51 PM

Quote:

Originally posted by Repetitive Monkey
What the hell are you on about? Mine is correct.

Use it like so:

<a href="http://www.isohorny.com/blabla/somethingelse.php?ref=<?echo $_REQUEST["ref"];?>">

I never said that was incorrect, just that I always end up having spacing issues, ie.

<a href="http://www.isohorny.com/blabla/somethingelse.php?ref=
0134234234">

Repetitive Monkey 11-28-2004 10:52 PM

Quote:

Originally posted by Dynamix
I never said that was incorrect, just that I always end up having spacing issues, ie.

<a href="http://www.isohorny.com/blabla/somethingelse.php?ref=
0134234234">

Ah. Some editors do that. Use Notepad.

PornAddict 11-28-2004 11:05 PM

Repetive Monkey... your code works and I greatly appreciate it.

However, I'm having an issue and I can't figure out the problem. When I try to plug in the url (with my code) into my tgp script, I get errors saying it either timed out or that it could not resolve hostname.

But it works via http browsing.

Am I missing a step somewhere?

- PornAddict

ps - thanks again to everyone who chimed in.

Repetitive Monkey 11-28-2004 11:08 PM

Quote:

Originally posted by PornAddict
Repetive Monkey... your code works and I greatly appreciate it.

However, I'm having an issue and I can't figure out the problem. When I try to plug in the url (with my code) into my tgp script, I get errors saying it either timed out or that it could not resolve hostname.

But it works via http browsing.

Am I missing a step somewhere?

- PornAddict

ps - thanks again to everyone who chimed in.

Your TGP script does not accept gallery URLs with variables tacked on to them? Strange. Doublecheck the format of your URL though.

http://www.domain.com/path/page.php?ref=you

PornAddict 11-28-2004 11:11 PM

The script I do does allow variables... because I use them from other sponsors.

A sample gallery of mine is:
http://hosted.247pass.com/cumhogs/001gp/?ref=12345

Your code worked and "12345" is tacked onto the CCBill code.

However, when I try to add that to my tgprotate script, I get errors saying it either timed out or couldn't resolve hostname... yet it loads up fine via browser.

Weird!

- PornAddict

broke 11-28-2004 11:13 PM

You need to properly encode your URL before you try to run in through your trade script...

%26 (amongst others) will soon become your friend.

Repetitive Monkey 11-28-2004 11:16 PM

Quote:

Originally posted by broke
You need to properly encode your URL before you try to run in through your trade script...

%26 (amongst others) will soon become your friend.

In that case, it's a shitty TGP script for not automatically urlencoding admin panel URL additions.

PD: URLEncode your link here: http://www.albionresearch.com/misc/urlencode.php

PornAddict 11-28-2004 11:16 PM

Here's what confuses me more...

Take this link, from Exploited Black Teens

http://www.fvotd.com/ads/41la/index.php?rid=437200

If I run that through my tgp script, it works perfectly and I can select to make a thumb...

YET... if I take my page and try to run it through, I get an error.

Both scripts should be doing the same thing, but I'm missing something somewhere. Is it a server issue?

- PornAddict

broke 11-28-2004 11:19 PM

Does this run through your trade script?

http://hosted.247pass.com/cumhogs/001gp/%3Dref=12345

Repetitive Monkey 11-28-2004 11:23 PM

Quote:

Originally posted by broke
Does this run through your trade script?

http://hosted.247pass.com/cumhogs/001gp/%3Dref=12345

That's not correct. %3D is =.

PornAddict 11-28-2004 11:24 PM

I found the problem... even though I'm not exactly sure what it was.

I have two dedicated servers at two different spots. The one that I was testing it on wasn't working. I took the html and uploaded it to my other server (on WebAir) and it worked perfectly. So, all this time it must be a server issue. I'm not sure exactly why it works on one and not the other, but that's the case.

Anyway... thanks to everyone who lend a helping hand. If there's anything I can do (probably not tech based though), hit me up!

Thanks everyone!

- PornAddict

broke 11-28-2004 11:27 PM

Sorry monkey... I meant %3F.

Nice catch.

:thumbsup



Does this one work?

http://hosted.247pass.com/cumhogs/001gp/%3Fref=12345


All times are GMT -7. The time now is 12:11 PM.

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