![]() |
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? |
try dillards,
i know they have tie racks that rotate. |
I wrote one I'll post it a bit later when I'm sober.
|
icq me right now
7508777 i have what you need. it's php and txt. we can work something out Matt |
copy this to a txt file and rename gallery.php
PHP Code:
now point your link to http://www.url.com/gallery.php have a nice fucking day :321GFY |
Quote:
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? |
Quote:
------------------------- <?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 |
Quote:
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