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)
-   -   PROGRAMMERS.. I have a relatively small project for you.. (https://gfy.com/showthread.php?t=771297)

xxxdesign-net 09-24-2007 07:29 AM

PROGRAMMERS.. I have a relatively small project for you..
 
So basically, I am using Verotel and want to offer hosted galleries...

So what I need is hosted galleries with a url similar to this one
http://mydomain.com/gal1/index.php?vercode=XXXXXX
Then when you replace the X's by your Verotel code and the surfer goes on the gallery, your ref code gets inserted at the end of the aff. URL which is in the gallery.. like this http://links.verotel.com/cgi-bin/sho...vercode=XXXXXX

Give me a quote, time frame or if you have any questions, hit me up on ICQ 111-246-133 :thumbsup

p.s. Competent programmers only please..

StuartD 09-24-2007 07:39 AM

http://links.verotel.com/cgi-bin/showsite.verotel?vercode=<?=$_GET['vercode']?>

That'll be $50.

xxxdesign-net 09-24-2007 07:57 AM

Quote:

Originally Posted by StuartD (Post 13133443)
http://links.verotel.com/cgi-bin/showsite.verotel?vercode=<?=$_GET['vercode']?>

That'll be $50.

lol thanks.. but isnt there a script to install on the server or something..? I know nothing about .php.. but that cannot be that simple..?

StuartD 09-24-2007 08:27 AM

Give it a try.

Make a file called "index.php" and put it on your server.

Be sure to put a link in there like this:
http://links.verotel.com/cgi-bin/showsite.verotel?vercode=<?=$_GET['vercode']?>

Then load that index page in your browser like this:
index.php?vercode=mytestcode

And see what your link looks like.

EddiePulp 09-24-2007 08:29 AM

there isnt much to it.. you could make things neater by using modrewrite to make the url something like http://www.galeries.com/sexyhotteens/<refcode>/

you could also put in a shaving feature :)
Code:

<?php
srand(time());
$random = (rand()&#37;2);
if ($random != 1 || $random !=0)
{
$vercode ='00000';
}
?>


beta-tester 09-24-2007 08:34 AM

what StuartD said :thumbsup....

EddiePulp 09-24-2007 08:38 AM

you may need a ; in the code?
Code:

http://links.verotel.com/cgi-bin/showsite.verotel?vercode=<?=$_GET['vercode'];?>
after the _GET['vericode'] and before the ?>

Oracle Porn 09-24-2007 08:39 AM

Quote:

Originally Posted by EddiePulp (Post 13133618)
there isnt much to it.. you could make things neater by using modrewrite to make the url something like http://www.galeries.com/sexyhotteens/<refcode>/

you could also put in a shaving feature :)
Code:

<?php
srand(time());
$random = (rand()%2);
if ($random != 1 || $random !=0)
{
$vercode ='00000';
}
?>


:1orglaugh:1orglaugh

k0nr4d 09-24-2007 08:41 AM

Quote:

Originally Posted by EddiePulp (Post 13133643)
you may need a ; in the code?
Code:

http://links.verotel.com/cgi-bin/showsite.verotel?vercode=<?=$_GET['vercode'];?>
after the _GET['vericode'] and before the ?>

i think if you just do one line of code inline with the <? ?> you dont need to put the ; at the end.

EddiePulp 09-24-2007 08:43 AM

Quote:

Originally Posted by k0nr4d (Post 13133654)
i think if you just do one line of code inline with the <? ?> you dont need to put the ; at the end.

makes sense i spose.. give that ; pretty much means go to the next line.

EddiePulp 09-24-2007 08:49 AM

that'll be 25&#37; of all savings for the shaving code.
:)

Bro Media - BANNED FOR LIFE 09-24-2007 08:55 AM

PHP Code:

<?php
if($_GET['vercode'] == true)
{
  
$vercode $_GET['vercode'];
}else{
  
$vercode "code to use if no vercode defined";
}
?>

http://links.verotel.com/cgi-bin/showsite.verotel?vercode=<?=$vercode; ?>

even better ;)

xxxdesign-net 09-24-2007 10:29 AM

Quote:

Originally Posted by StuartD (Post 13133610)
Give it a try.

Make a file called "index.php" and put it on your server.

Be sure to put a link in there like this:
http://links.verotel.com/cgi-bin/showsite.verotel?vercode=<?=$_GET['vercode']?>

Then load that index page in your browser like this:
index.php?vercode=mytestcode

And see what your link looks like.


Works great thanks man :thumbsup

StuartD 09-24-2007 10:31 AM

Quote:

Originally Posted by xxxdesign-net (Post 13134281)
Works great thanks man :thumbsup

My pleasure :glugglug

xxxdesign-net 09-24-2007 10:45 AM

Quote:

Originally Posted by StuartD (Post 13134300)
My pleasure :glugglug

btw.. is it a pretty solid solution.. that will pretty much work with all browsers? Sounds nearly too easy.. lol

StuartD 09-24-2007 10:48 AM

Quote:

Originally Posted by xxxdesign-net (Post 13134397)
btw.. is it a pretty solid solution.. that will pretty much work with all browsers? Sounds nearly too easy.. lol

It's server side so no need to worry about browser compatibility.

It's just that easy. :winkwink:

xxxdesign-net 09-24-2007 10:49 AM

Quote:

Originally Posted by StuartD (Post 13134419)
It's server side so no need to worry about browser compatibility.

It's just that easy. :winkwink:

cool thanks :winkwink:


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

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