The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
In need of a "random image script," that does a bit more..
I've searched through hotscripts.com, but can't seem to find this kind of script.
I'm in need of a PHP, or javascript, random image script that will read all the files in a directory and all directories within that directory for images, then will display a random image upon refresh of the page. I've found scripts that will read all the images within a directory, but I need this to work similar to that of the Windows XP image screensaver, where it also searches through all the folders within that directory for images. Here is a PHP random image script, is there possibly a way to modify it to do what I need here? http://www.hotscripts.com/Detailed/16876.html Or, maybe there is already a script somewhere that does this. Thanks if you can help |
#2
|
||||
|
||||
just put this in a php file, you'll know what to do next,won't work on a windows server though
PHP Code:
|
#3
|
||||
|
||||
Cool, it works well
You can see what I did with it on my homepage, for the "Anime Capture" thingy. Basically in a template where you want the image to precisely show, insert this piece of code: Code:
<script language="javascript" src="randscreen.php"></script> Though, you need to change one line in that script of yours to function with the Javascript. Change: PHP Code:
PHP Code:
Thanks for posting this also Ultimate. |
#4
|
|||
|
|||
I get this error message when I try to use that script:
I'm not a Unix guru by any means, so perhaps I'm doing something wrong...but I can't figure out what! PHP Code:
|
#5
|
||||
|
||||
Quote:
|
#6
|
|||
|
|||
Nice one, any possiblities of having a default image size within this script??
|
#7
|
|||
|
|||
that don't work
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|