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 Mark Forums Read
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 02-20-2003, 11:19 AM   #1
Keev
Confirmed User
 
Join Date: May 2001
Posts: 5,335
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
Keev is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-20-2003, 11:25 AM   #2
FuqALot
Confirmed User
 
Join Date: Dec 2001
Location: Malibu
Posts: 3,817
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.

Last edited by FuqALot; 02-20-2003 at 11:27 AM..
FuqALot is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-20-2003, 11:30 AM   #3
Keev
Confirmed User
 
Join Date: May 2001
Posts: 5,335
anyone with a php version?
Keev is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-20-2003, 11:33 AM   #4
Brujah
Beer Money Baron
 
Brujah's Avatar
 
Industry Role:
Join Date: Jan 2001
Location: brujah / gmail
Posts: 22,157
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.
__________________
Brujah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-20-2003, 11:56 AM   #5
chodadog
Confirmed User
 
Join Date: Apr 2002
Posts: 9,736
ICQ Me: 83032884
__________________
26 + 6 = 1
chodadog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-20-2003, 12:18 PM   #6
picindex
Confirmed User
 
Join Date: Oct 2002
Posts: 1,038
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
__________________
Good Content:

picindex 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
Thread Tools



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.