fpena
06-16-2008, 04:41 PM
Hello,
I'd like to implement a feature in my articles where I can rotate a variety of images within an article. I don't need them to rotate while on the screen but I'd like for them to do so when I refresh the page.
Within VB Dynamics itself I have a solution that works great within a module. I create a Plugin that defines all of the random images then within a template I simply state, "$random_banner[$random_number]" and it rotates the images after each refresh. (I found that code in this thread: http://www.vbadvanced.com/forum/showthread.php?t=29211)
I tried to do the same thing in an article by using the custom BB Code that was mentioned in this thread: http://www.vbadvanced.com/forum/showthread.php?t=19758
What is happening though is when I type the "$random..." statement in the place of the image directory/name it thinks I am asking for a filename that is on the Dynamics directory and is named "$random..." so I get a RED-X for a missing image.
What can I do to get this to work? All I want is an image embedded into my article but for it to change each time I refresh it.
Thanks!
I'd like to implement a feature in my articles where I can rotate a variety of images within an article. I don't need them to rotate while on the screen but I'd like for them to do so when I refresh the page.
Within VB Dynamics itself I have a solution that works great within a module. I create a Plugin that defines all of the random images then within a template I simply state, "$random_banner[$random_number]" and it rotates the images after each refresh. (I found that code in this thread: http://www.vbadvanced.com/forum/showthread.php?t=29211)
I tried to do the same thing in an article by using the custom BB Code that was mentioned in this thread: http://www.vbadvanced.com/forum/showthread.php?t=19758
What is happening though is when I type the "$random..." statement in the place of the image directory/name it thinks I am asking for a filename that is on the Dynamics directory and is named "$random..." so I get a RED-X for a missing image.
What can I do to get this to work? All I want is an image embedded into my article but for it to change each time I refresh it.
Thanks!