| |
Script for Random Images.. | |
|---|---|---|
| viking | Posted: 26.05.2006, 12:09 | |
Noob
registered: Jul 02, 2003
Posts: 12
Status: offline last visit: 13.03.08 |
I get this code from PN Community.. just asking here too.. :D The problem is, it randomize pictures just one time.. and stop at the last picture.. :( |
|
|
|
|
|
| Chestnut | Posted: 26.05.2006, 17:28 | |
|
Site Admin
registered: Jun 02, 2002
Posts: 1320
Status: offline last visit: 07.02.08 |
Not sure I understand when you say it will randomize "just one time"... Is this thing supposed to be randomizing without reload ? From what I can see, it should show a random image on each reload. Chestnut ! ![]() Site Admin |
|
|
|
|
|
| viking | Posted: 27.05.2006, 01:51 | |
Noob
registered: Jul 02, 2003
Posts: 12
Status: offline last visit: 13.03.08 |
Mm.. thanks for reply.. Yes.. it show a random image on each reload.. but stuck at the last image.. It`s 3 images there, it showing different image for each reload, but only showing same image after more than 3 time reloading.. That`s what i`m trying ; 1. Make one simple new module that contain this script.. (Showing random picture).. 2. SO I download Markwest module --http://www.markwest.me.uk/module-DynaMOD.phtml-- 3. I change the template file "dynamod_user_main.htm" -- by write this **img scr ="random.php"** Or.. maybe better way.. ?? --- Sorry for my bad English.. :( edited by: viking, May 26, 2006 - 12:53 PM |
|
|
|
|
|
| Chestnut | Posted: 27.05.2006, 13:36 | |
|
Site Admin
registered: Jun 02, 2002
Posts: 1320
Status: offline last visit: 07.02.08 |
mmm Can't help much on the DynaMOD thing as I never played with it... (Might ask on http://markwest.me.uk/ for that)... But from what you are saying... I guess it could be right. One thing though is that caching could be a reason why you see often the same image... Maybe use Chestnut ! ![]() Site Admin |
|
|
|
|
|
| viking | Posted: 17.09.2006, 06:33 | |
Noob
registered: Jul 02, 2003
Posts: 12
Status: offline last visit: 13.03.08 |
Mm.. yes it`s me again.. This is another script that work too.. But, can we get the images files from other site.. for example, I have account at Photobucket.com.. so just want the script to get the images form there.. exp : all my images here - http://s95.photobucket.com/albums/l159/foto/aman/ Thank in advance.. |
|
|
|
|
|
| Chestnut | Posted: 25.09.2006, 10:49 | |
|
Site Admin
registered: Jun 02, 2002
Posts: 1320
Status: offline last visit: 07.02.08 |
You probably must know thde images in advance. Since you can't browser the content of a remote folder, if you know all the images name, you build yourself the array $images instead of using the opendir and all that part. Chestnut ! ![]() Site Admin |
|
|
|
|
|
Powered by pnForum Version 2.0.1



