Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Creating a Slideshow on the Main Page
NoobCoder
New
I'm editing the footer of the default_master.tpl for my custom theme and I want to add this...
https://www.w3schools.com/w3css/tryit.asp?filename=tryw3css_slideshow_rr
This creates a really nice custom slide show.
I can't get the code to work though, any help please? 8|
Is it even possible to have javascript code direct in the .tpl like that?
Tagged:
1
Comments
You can add js inside the following tags:
{literal} code goes here {/literal}
I did try that method, maybe I have made another mistake I can't find then
Yes I try this ^ method but still not work, I will tell you exactly what I did, I copy this code here into the footer area in a good place of default master tpl....
I've edited your comment to make the code readable.
I would say it looks okay. Can you see that script when you open the html source of your forum?
Thank you, No my friend I am getting "something has gone wrong" error from Vanilla code.
Sorry, I only inspected the JavaScript. Above that you have a second
<body>
tag, which is rubbish and must be deleted.I'm no JavaScript hero but I think you must first declare a function before you use it so I would put
below the function definition.
Why not simply use the plugin VSlider ?
Or the plugin Marquee ?
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Please link I did not know there was a plug in
Go to the addon section and use the search bar to find useful plugins... for example if you want a slider, input slider in the search bar and all plugins that have anything to do with a slider will show up...
https://open.vanillaforums.com/addon/vslider-plugin
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Thank you!
I'm at a dead end now - tried both plugins neither seem to work! V-slider does not appear in my plugin list if i put it in root (as it states) nor does it if i put it in plugin?
Marquee appears and displays a message banner but I cannot add any pictures? Please help!
I will show you my site https://buyvillaspain.com/ I have installed both plugins
No, you only put the vslider.html in the root and the folder vslider that contains the images.
You install the plugin as normal after you put the vslider.html and the images folder which you will call vslider and add it to the root of the forum.
You need to add the image url manually in the dashboard. You need to check whether you want to display images or text only in the settings page.
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
OK, I put the vslider.html in root
Installed the plugin to plugin folder,
enabled the plug-in
created vlsider/images/ at root
added image.jpg
Edited vslider.html to add image.jpg
Still see no image?
Also with Marquee it works but only 1 image can be displayed, I cannot seem to add any more for some reason it doesn't work.
Thank you for trying to help me. Its progressed slightly
Ok , please give me a link to where I can see the slider.
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
To add a bunch of images to the marquee, just enter the html image links in the textbox like bellow. Make sure the images are the right size or it will look bad.
<img src="http://yourimage/piramyds2.jpg" width="250" height="auto"/>
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
That worked on marquee but the added images appaear below each other DOH! haha. I wanted them to appear sequentially one after the other like a smooth slider
""Ok , please give me a link to where I can see the slider.""
Ive installed and enabled it but no images appear. I tried editing the html file and adding my images but nothing is visible. Not sure how to proceed?
It is possible your theme is to blame.. As to the marquee you need to add them next to each other and not in a separate line .
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌