[solved] random image plugin shows only the name of the image

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
firfelin

[solved] random image plugin shows only the name of the image

Post by firfelin »

I am trying to put a random image in a header;

But when I use the tag {random_image folder="uploads/images/myfolder"}, all I get is the name of the image...:

http://www.magdalenagerber.ch/mg/index.php?page=Traces-de-recreation

What can I do to solve this?

Thanks for you help
Last edited by firfelin on Sun Jun 10, 2007 10:46 am, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: random image plugin shows only the name of the image

Post by Dr.CSS »

Don't know if this hurts but it shows up as an error....

[/color]

missing the red >...
firfelin

Re: random image plugin shows only the name of the image

Post by firfelin »

thanks, but unfortunately it doesn't change anything :-[
firfelin

Re: random image plugin shows only the name of the image

Post by firfelin »

solved...

after hours of @¿‘‘!©†† I noticed that a  / was needed at the end of the path...

{random_image folder="uploads/images/mg_entetes/"}
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: [solved] random image plugin shows only the name of the image

Post by Dr.CSS »

Oh yea I missed that, it opens the folder so it can see the images... duh on me  ;)
yorgi63
Forum Members
Forum Members
Posts: 108
Joined: Fri Aug 25, 2006 4:35 pm

Re: [solved] random image plugin shows only the name of the image

Post by yorgi63 »

Hey running into this error does nayone have any ideas

tring(150) "Smarty error: [in template:16 line 75]: syntax error: unrecognized tag: multiple_random_image="uploads/images1/" (Smarty_Compiler.class.php, line 446)" string(111) "Smarty error: [in template:16 line 75]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)"


Thanks!
alby

Re: [solved] random image plugin shows only the name of the image

Post by alby »

yorgi63 wrote: tring(150) "Smarty error: [in template:16 line 75]: syntax error: unrecognized tag: multiple_random_image="uploads/images1/" (Smarty_Compiler.class.php, line 446)" string(111) "Smarty error: [in template:16 line 75]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)"
Check your sintax:
{multiple_random_image folder="uploads/images1/"}
default folder is uploads/images/

In 1.5 version, add debug=1 for folder debugging (check your html source for a comment)


Alby
Locked

Return to “CMSMS Core”