View Full Version : Pic of the day?
Dammy
07-04-2001, 08:14 AM
Where can i get a Picture of the day script?
Nothing fancy, just one that picks a random picture out of the specified diectory and displays it - with the ability to have banners or text links at the top and bottom of course http://bbs.adultwebmasterinfo.com/ubb/smile.gif
thanks for any replies
MikeJeffs
07-04-2001, 11:19 AM
If it doesn't have to be completly random, you can easily do it yourself with the php date function. Just name 31 pics 01.jpg to 31.jpg and put them in a dir, then place:
<img src="<?php print (date("d"));?>.jpg">
on your page, and it will convert the php tag to the corresponding date set on the server. If you wanted more than 31 pics you could use the months as well as the days.
Phill
07-08-2001, 02:38 PM
If you have PERL enabled at your site, there is tons of free scripts that'll do this for you: http://cgi.resourceindex.com/Programs_and_Scripts/Perl/Random_Items/
If you prefer PHP, look here: http://php.resourceindex.com/Complete_Scripts/Random_Items/
I'm currently using Randex (http://www.cgihk.com/downloads/) on this (http://www.prettygoodporn.org/index2.shtml) - try and reload the page. This script even logs the surfers IP so he won't see the same data twice. The script is available for Perl (http://www.cgihk.com/cgi-bin/download.pl?randex), PHP (http://www.cgihk.com/cgi-bin/download.pl?randex-php) and Python (http://www.cgihk.com/cgi-bin/download.pl?randex-python).
vBulletin® v3.7.3, Copyright ©2000-2012, Jelsoft Enterprises Ltd.