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)
-   -   Free Hosted Gallery Script Needed (https://gfy.com/showthread.php?t=109829)

Keev 02-20-2003 11:19 AM

Free Hosted Gallery Script Needed
 
I am in need of a script that can generate the linking codes for affiliates on the fly...

rotating gallery script for affiliates

etc.....

I know some people have them already developed if you can msg me and havea url in hand of one in use I would be interested.


10 44 63 163

FuqALot 02-20-2003 11:25 AM

I posted this before on this board but here it is.

Hi... here's a simple code im just writing now.. so if you need help hit me up.

create a file named rotate.cgi or something and put it in a directory where you also have all the possible rotated .html galleries. (so like yourdomain.com/galleries/rotate.cgi)

put the following code in it:

#!/usr/bin/perl
$usrid = $ENV{'QUERY_STRING'};
print "Content-type:text/html\n\n";
@galleries = <*.html>;
$galleryfile = $galleries[int(rand(@galleries))];
open(gallery,$galleryfile);
@galindex = <gallery>;
close(gallery);
foreach $line (@galindex) {
$line =~ s/%revid%/$usrid/g;
print $line;
}

In your galleries, replace the REVID, with %revid%, so the script knows where to insert the users id.

Then let people visit like this:
http://www.yourdomain.com/galleries/rotate.cgi?XXXXXX

Now a random gallery will be picked and
the %revid% will be replaced with XXXXXX and gallery will be printed.

Just wrote it, but it's that easy that it should work. Heh.

Keev 02-20-2003 11:30 AM

anyone with a php version?

Brujah 02-20-2003 11:33 AM

Lots of solutions you can use through this, and free.
http://www.hotscripts.com/PHP/Script...g/Random_Text/

I'd be happy to help you free to get any of those setup or customized Keev.

chodadog 02-20-2003 11:56 AM

ICQ Me: 83032884

picindex 02-20-2003 12:18 PM

Quote:

Originally posted by FuqALot
I posted this before on this board but here it is.

Hi... here's a simple code im just writing now.. so if you need help hit me up.

create a file named rotate.cgi or something and put it in a directory where you also have all the possible rotated .html galleries. (so like yourdomain.com/galleries/rotate.cgi)

put the following code in it:

#!/usr/bin/perl
$usrid = $ENV{'QUERY_STRING'};
print "Content-type:text/html\n\n";
@galleries = <*.html>;
$galleryfile = $galleries[int(rand(@galleries))];
open(gallery,$galleryfile);
@galindex = <gallery>;
close(gallery);
foreach $line (@galindex) {
$line =~ s/%revid%/$usrid/g;
print $line;
}

In your galleries, replace the REVID, with %revid%, so the script knows where to insert the users id.

Then let people visit like this:
http://www.yourdomain.com/galleries/rotate.cgi?XXXXXX

Now a random gallery will be picked and
the %revid% will be replaced with XXXXXX and gallery will be printed.

Just wrote it, but it's that easy that it should work. Heh.

Just tested it and it worked... thanks :thumbsup


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

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