![]() |
Pic of the day script?
Does anybody know of a good 'picture of the day' script? I'm looking for it to pull either random pics or pics in order out of 365 (not just 31 pics max). I am having problems locating one. Thanks.
|
Bump for you. Ive been looking for a similar script also.
|
Woj is selling one... do a search on his name! (or just look at every thread's 50th post)
|
Thanks I'll do a search. I would think there's a good free one out there especially with openads available.
|
good luck on finding a free one....:)
|
Anybody else?
|
i wrote this simple tutorial for gfy , very simple cut and paste code , if you have any questions let me know
http://www.gofuckyourself.com/showthread.php?t=765730 |
ps the tutorial shows how to do several diff methods all in one but you dont need to set it up like that you can use it just for pictures if you want
|
Here. I'm bored, so I wrote a very trivial one for you. This isn't pretty
simple, but it'll work with any version of PHP4 and PHP5 with no problems. If called normally, it will use the day of the year as the picture of the day, prefixing zeros as required for 3 numbers (001.jpg, 010.jpg, 111.jpg). If you set "$rand=TRUE;" it will pick randomly between pictures 001.jpg to 365.jpg. If this file is missing, it will attempt to output "missing.jpg". Code:
<?php |
good luck....
|
Quote:
Edit: If you use my simple script, call it as: <img src="script.php"> - I originally had it test for ?rand in the URL passing, but decided you'd probably want either/or. |
tRyin to find a
fRee one "( |
Upon second thought, I put it back. If you want random, call as "script.php?rand", otherwise it will use the current day of the year.
Code:
<?php |
The best solution would be to setup a cron job that runs every night, that copies the fullsize image + thumbnails from a private directory to a public directory. So, you name your images 1-31.jpg (or 1-365.jpg), thumbnails like tn[1-31]_widthxheight.jpg. The last thing you want to do is have a bunch of php code running over and over again for an image load (especially if you are determining which thumbnail to load via php)
so, PHP Code:
|
All times are GMT -7. The time now is 03:56 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123