Page 1 of 1
Interesting script that works in CMS Made Simple
Posted: Sat Dec 04, 2004 1:17 pm
by Greg
Interesting script that works in CMS Made Simple
Posted: Sun Dec 05, 2004 6:01 am
by chrisinoz
Hi Greg
Thanks for this reference. Have downloaded but no time yet to try it out.
I like the concept.
Usually one has to list each image that is to be rotated in a javascript and so adding an image means going to the source html and changing it. This way someone can just upload an image into a specified folder and it automatically slots into the rotation cycle.
Cheers
Chris
Interesting script that works in CMS Made Simple
Posted: Tue Dec 07, 2004 3:59 am
by calguy1000
I also have a random image plugin..... I'll post it on the wiki... works well, just tell it what directory to look in
simply put the function.random_image.php into your plugins directory
Re: Interesting script that works in CMS Made Simple
Posted: Sun Oct 09, 2005 7:22 pm
by Hans
I downloaded the random image plugin but the only thing is shows is a
text (the path to the image and the name of the image) : e.g. uploads/images/imagename.jpg instead of the image itself.
Tried it with and without defining a directory (so, only {insert_image} and {insert_image dir="imagedir"}
Could anyone please help?
Thanks
Hans
[EDIT] Although I'm a total n00b (as far as php concerned

) I managed to get the script working by replacing
around line 47
by
Code: Select all
echo "<img src=\"$dirn/$myimage\" alt=\"$myimage\" />";
I can't believe it myself, but it works!
Re: Interesting script that works in CMS Made Simple
Posted: Mon Nov 21, 2005 9:27 pm
by calguy1000
if this is the one I wrote a long time ago, it was designed to be embedded inside of an tag, sorry for the confusion.