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)
-   -   I need a gallery rotator (https://gfy.com/showthread.php?t=119170)

Snake Doctor 03-24-2003 06:36 PM

I need a gallery rotator
 
I need a little php or cgi type script that will pull random galleries from a text file for a TGP.

TM3 has a built in rotator, but it's IP based and always pulls the first gallery from the file. My guess is most people don't have static IP's so whenever they come back and click the link they get that first gallery again.

I need something that will pull url's totally at random to decrease the chances that the same surfer gets hit with the same gallery day after day.

Anybody have one, or know where I can get one out of the box, or is someone willing to write one for a reasonable $$ amount?

lagwagon 03-24-2003 06:37 PM

try dillards,

i know they have tie racks that rotate.

cluck 03-24-2003 06:44 PM

I wrote one I'll post it a bit later when I'm sober.

Paraskass 03-24-2003 06:50 PM

icq me right now
7508777

i have what you need.
it's php and txt.

we can work something out
Matt

hyper 03-24-2003 07:50 PM

copy this to a txt file and rename gallery.php

PHP Code:

<?php
$fileName 
"./gallerylist.txt";
mt_srand( (double) microtime() * 1000000 );
$a file($fileName);
$randNum mt_rand0sizeof($a)-);
header"Location: "$a[$randNum] );
?>

now make a gallerylist.txt file and put 1 gallery url per line
now point your link to http://www.url.com/gallery.php

have a nice fucking day :321GFY

Snake Doctor 03-24-2003 08:27 PM

Quote:

Originally posted by hyper
copy this to a txt file and rename gallery.php

PHP Code:

<?php
$fileName 
"./gallerylist.txt";
mt_srand( (double) microtime() * 1000000 );
$a file($fileName);
$randNum mt_rand0sizeof($a)-);
header"Location: "$a[$randNum] );
?>

now make a gallerylist.txt file and put 1 gallery url per line
now point your link to http://www.url.com/gallery.php

have a nice fucking day :321GFY

Hey thanks chief. :thumbsup

I'm guessing I can use this over and over again like somurl/teen.php, someurl/tits.php etc etc as long as I change the name of the text file?

Adult Site Traffic 03-24-2003 08:59 PM

Quote:

Originally posted by Lenny2
I need a little php or cgi type script that will pull random galleries from a text file for a TGP.

This won't pull them from a text file, but will work great for a random page.. I dunno if it'll help.
-------------------------
<?php
$url[0]='http://www.somesite.com/urla.html';
$url[1]='http://www.somesite.com/urlb.html';
srand((double)microtime()*1234567);
$turl=$url[intval(rand(0,1))];
header("location: $turl");
?>
------------------------

or

------------------------
<?php
$url[0]='http://www.somesite.com/urla.html';
$url[1]='http://www.somesite.com/urlb.html';
$url[2]='http://www.somesite.com/urlc.html';
srand((double)microtime()*1234567);
$turl=$url[intval(rand(0,2))];
header("location: $turl");
?>
-------------------------

Notice the variable difference (0,2) or (0,3).. you can use as many variables as you like. Now just name it /somepage.php and use that for your link :)

AST

Adult Site Traffic 03-24-2003 09:00 PM

Quote:

Originally posted by Adult Site Traffic


Notice the variable difference (0,2) or (0,3).. you can use as many variables as you like. Now just name it /somepage.php and use that for your link :)

AST

I MEANT... (0,1) or (0,2)..

Sorry !

AST


All times are GMT -7. The time now is 05:03 PM.

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