[1.5]setting the banner time
24 posts
• Page 1 of 2 • 1, 2
[1.5]setting the banner time
Hi, does anyone know where I would set the setting for how long it takers for each image on the banner to rotate on the homepage for version 1.5.0?
thanks.
thanks.
Last edited by i2Paq on Wed Jun 15, 2011 5:07 am, edited 1 time in total.
Reason: Please use [version] TAG in subject!
Reason: Please use [version] TAG in subject!
- emace7
- Posts: 4
- Joined: Sun Apr 24, 2011 3:36 am
Re: setting the banner time in 1.5.0
Any one know how to do this?
Thanks,
Mel
Thanks,
Mel
- Melanie
- Posts: 74
- Joined: Tue Mar 30, 2010 1:39 am
Re: [1.5]setting the banner time
I had a quick look at the code and the file to edit is /catalog/view/javascript/jquery/nivo-slider/jquery.nivo.slider.pack
The page speed is governed by animSpeed
And other functions are like this.
animSpeed:500, // Slide transition speed
pauseTime:3000, // How long each slide will show
startSlide:0, // Set starting Slide (0 index)
You will have to play around with the code to see what works for you.
The page speed is governed by animSpeed
And other functions are like this.
animSpeed:500, // Slide transition speed
pauseTime:3000, // How long each slide will show
startSlide:0, // Set starting Slide (0 index)
You will have to play around with the code to see what works for you.
-

Degsey - Posts: 91
- Joined: Sat Jun 11, 2011 6:29 pm
- Location: North Carolina
Re: [1.5]setting the banner time
There's no need to dig in the .js files. It's much easier than that
Open your yourtheme/template/module/slideshow.tpl file and look for the script at the bottom for the nivo slider.
Change this
To this
Or if you want to change more options
There is a full list of options on the nivo slider website - http://nivo.dev7studios.com/#usage
Open your yourtheme/template/module/slideshow.tpl file and look for the script at the bottom for the nivo slider.
Change this
- Code: Select all
$(document).ready(function() {
$('#slideshow<?php echo $module; ?>').nivoSlider();
});
To this
- Code: Select all
$(document).ready(function() {
$('#slideshow<?php echo $module; ?>').nivoSlider({
pauseTime:5000
});
});
Or if you want to change more options
- Code: Select all
$(document).ready(function() {
$('#slideshow<?php echo $module; ?>').nivoSlider({
pauseTime:5000,
effect:random,
pauseOnHover:false
});
});
There is a full list of options on the nivo slider website - http://nivo.dev7studios.com/#usage
- chips
- Posts: 19
- Joined: Sun Mar 20, 2011 9:02 am
Re: [1.5]setting the banner time
version 1.5.0 does not have the slideshow.tpl, how can i change this?
- brunobliss
- Posts: 4
- Joined: Wed Jun 08, 2011 6:42 pm
Re: [1.5]setting the banner time
I would upgrade to the newest 1.5.0.5 anyway. There are lots of bugfixes and a few minor additions.
- chips
- Posts: 19
- Joined: Sun Mar 20, 2011 9:02 am
Re: [1.5]setting the banner time
It would be BRILLIANT if these variables could be set in MODULES > BANNERS. Larger banners with more text could run slower, or have other relevant settings. An ADVANCED link on the config page would be great... 

- RitchieTheBrit
- Posts: 16
- Joined: Sat Apr 09, 2011 9:44 pm
Re: [1.5]setting the banner time
Hi does anyone have any ideas why when I paste the first lot of code suggested by 'chips' (example 1 below) my banner works perfectly, but when i paste in his second lot of code instead (example 2 below) it stops my banner appearing on the website? I'm using V 1.5.1. Cheers.
Example 1
----------------------------------
$(document).ready(function() {
$('#slideshow<?php echo $module; ?>').nivoSlider({
pauseTime:5000
});
});
-------------------------------------------------------------------
Example 2
-------------------------------------------------------------------
$(document).ready(function() {
$('#slideshow<?php echo $module; ?>').nivoSlider({
pauseTime:5000,
effect:random,
pauseOnHover:false
});
});
Example 1
----------------------------------
$(document).ready(function() {
$('#slideshow<?php echo $module; ?>').nivoSlider({
pauseTime:5000
});
});
-------------------------------------------------------------------
Example 2
-------------------------------------------------------------------
$(document).ready(function() {
$('#slideshow<?php echo $module; ?>').nivoSlider({
pauseTime:5000,
effect:random,
pauseOnHover:false
});
});
- Stef77
- Posts: 13
- Joined: Sat Aug 06, 2011 11:01 am
Re: [1.5]setting the banner time
Hi Steff,
I am getting that same issue with the slider not showing when putting in more than 1 transition command.
Have you had any luck?
Mike
I am getting that same issue with the slider not showing when putting in more than 1 transition command.
Have you had any luck?
Mike
- metkamp
- Posts: 1
- Joined: Fri Aug 12, 2011 3:01 pm
Re: [1.5]setting the banner time
Hi Mike, no none. I basically don't want it to be on random, but whatever I change it to just makes it disappear! It's weird. If you suss it let me know. :-)
- Stef77
- Posts: 13
- Joined: Sat Aug 06, 2011 11:01 am
Re: [1.5]setting the banner time
Hi Steff/Mike,
The code above is slightly wrong.
Try this:
Note the missing quotes around the effect.
This works fine in 1.5.1
Good Luck.
The code above is slightly wrong.
Try this:
- Code: Select all
<script type="text/javascript"><!--
$(document).ready(function() {
$('#slideshow<?php echo $module; ?>').nivoSlider({
pauseTime:8000,
effect:'random',
pauseOnHover:true,
animSpeed: 1000,
});
});
--></script>
Note the missing quotes around the effect.
This works fine in 1.5.1
Good Luck.
- asphole
- Posts: 176
- Joined: Mon Mar 14, 2011 1:33 am
Re: [1.5]setting the banner time
For those of you who wonder how to slow the speed of your banner down. It will require that you edit a bit of text in one file that is buried deep in the OpenCart site. Here is how to find it, edit it and put it back so it works:
Open the folder inside the Opencart main program folder:
/upload
/catalog
/view
/javascript
/jquery/
nivo-slider
Use a text editing program and edit the text in that file. Find this bit of text:
$(document).ready(function() {
$('#slideshow<?php echo $module; ?>').nivoSlider();
});
Now highlight it and delete it. Next, paste this text exactly where the other text was.
<script type="text/javascript"><!--
$(document).ready(function() {
$('#slideshow<?php echo $module; ?>').nivoSlider({
pauseTime:8000,
effect:'random',
pauseOnHover:true,
animSpeed: 1000,
});
});
--></script>
Save the file. Now, if your site is live and working. You need to replace the file that is working on your website with the newly saved one. Put it back here:
/upload
/catalog
/view
/javascript
/jquery/
nivo-slider
** the same place you got it **. If you're working strictly with folder on your computer then, when you upload it to a your folder, it will work on your new website store front. If you already have a live store front, simply change the file on your live store's inner folder. I like using a free downloadable software program like FileZilla.org to move files around on my site. You may need to refresh your page to see the change immediately.
Open the folder inside the Opencart main program folder:
/upload
/catalog
/view
/javascript
/jquery/
nivo-slider
Use a text editing program and edit the text in that file. Find this bit of text:
$(document).ready(function() {
$('#slideshow<?php echo $module; ?>').nivoSlider();
});
Now highlight it and delete it. Next, paste this text exactly where the other text was.
<script type="text/javascript"><!--
$(document).ready(function() {
$('#slideshow<?php echo $module; ?>').nivoSlider({
pauseTime:8000,
effect:'random',
pauseOnHover:true,
animSpeed: 1000,
});
});
--></script>
Save the file. Now, if your site is live and working. You need to replace the file that is working on your website with the newly saved one. Put it back here:
/upload
/catalog
/view
/javascript
/jquery/
nivo-slider
** the same place you got it **. If you're working strictly with folder on your computer then, when you upload it to a your folder, it will work on your new website store front. If you already have a live store front, simply change the file on your live store's inner folder. I like using a free downloadable software program like FileZilla.org to move files around on my site. You may need to refresh your page to see the change immediately.
- PhillipV
- Posts: 1
- Joined: Sat Sep 03, 2011 3:58 pm
Re: [1.5]setting the banner time
Yes, exactly as previously described!
- asphole
- Posts: 176
- Joined: Mon Mar 14, 2011 1:33 am
Re: [1.5]setting the banner time
There is an easier way of doing this now by using VQMod here is the link for this mod to slow down the slider.
viewtopic.php?f=131&t=38153
viewtopic.php?f=131&t=38153
-

Degsey - Posts: 91
- Joined: Sat Jun 11, 2011 6:29 pm
- Location: North Carolina
Re: [1.5]setting the banner time
is this compatible with Version 1.5.1.3?
thank you.
thank you.
- soulmenj
- Posts: 4
- Joined: Tue Nov 01, 2011 1:08 pm
Re: [1.5]setting the banner time
yes
Happy Coding!
Simon
------
Commercial Mods:
Google Merchant / Base XML Feed + Bing Shopping + Sitemaps - Automatic Friendly SEO URLs
Full List of UKSB Extensions and Mods
vQmod Generator - Develop & Test OpenCart on your Local Windows machine
Click here if I have helped you and you would like to make a donation
Simon
------
Commercial Mods:
Google Merchant / Base XML Feed + Bing Shopping + Sitemaps - Automatic Friendly SEO URLs
Full List of UKSB Extensions and Mods
vQmod Generator - Develop & Test OpenCart on your Local Windows machine
Click here if I have helped you and you would like to make a donation
-

uksitebuilder - Posts: 5602
- Joined: Thu Jun 09, 2011 3:37 pm
- Location: United Kindgom
Re: [1.5]setting the banner time
For those that do not have the technical know how of editing the core code.
I have written a VQMod that allows you to adjust the slide speed, transition speed and whether or not to start from slide 1 or a random slide.
Each slideshow can be setup individually.
http://www.opencart.com/index.php?route ... on_id=6176
I have written a VQMod that allows you to adjust the slide speed, transition speed and whether or not to start from slide 1 or a random slide.
Each slideshow can be setup individually.
http://www.opencart.com/index.php?route ... on_id=6176
- ecoleman
- Posts: 125
- Joined: Mon Dec 05, 2011 7:34 pm
Re: [1.5]setting the banner time
asphole wrote:Hi Steff/Mike,
The code above is slightly wrong.
Try this:
- Code: Select all
<script type="text/javascript"><!--
$(document).ready(function() {
$('#slideshow<?php echo $module; ?>').nivoSlider({
pauseTime:8000,
effect:'random',
pauseOnHover:true,
animSpeed: 1000,
});
});
--></script>
Note the missing quotes around the effect.
This works fine in 1.5.1
Good Luck.
H!!
I checked my slideshow.tpl (OC 1.5.2.1) but there is NOT nivoSlider mentioned at all so I could not find the row you mentioned:
$('#slideshow<?php echo $module; ?>').nivoSlider({
Would you be so helpful as to provide the name of the file?
Thank you in advance
Amaterissimus
Amatören den Glade (sjunger hellre än bra)
-

amaterissimus - Posts: 12
- Joined: Sat May 12, 2012 8:22 am
Re: [1.5]setting the banner time
Is there a way to set the homepage banner to not rotate/fade/etc if there is only one image assigned to it? Right now I only have one, and it keeps fading in/out and it makes the image hard to read when things keep flying by.
I usually forget to mention I'm using OC v1.4.9.4
- scd1982
- Posts: 44
- Joined: Mon Mar 26, 2012 7:57 pm
Re: [1.5]setting the banner time
There is a way to set the banner time and banner animation. There are two files you need to update which are found in
\shop\catalog\view\javascript\jquery\nivo-slider
One file is jquery.nivo.slider.js. At the end of this file you will find the default settings. Make your changes here.
The other file is jquery.nivo.slider.pack.js. In the last line of this file (which is the afterLoad function), set the parameters to match the changes you made in the default settings.
I have made changes doing this and it has worked fine for me. Using version 1.5.1.3.
\shop\catalog\view\javascript\jquery\nivo-slider
One file is jquery.nivo.slider.js. At the end of this file you will find the default settings. Make your changes here.
The other file is jquery.nivo.slider.pack.js. In the last line of this file (which is the afterLoad function), set the parameters to match the changes you made in the default settings.
I have made changes doing this and it has worked fine for me. Using version 1.5.1.3.
- newdigitalboy
- Posts: 3
- Joined: Tue Jan 03, 2012 8:12 pm
24 posts
• Page 1 of 2 • 1, 2
Who is online
Users browsing this forum: Bing [Bot], ChetanCx, Goliath, helipartsdirect, lightpursuer, murray, WilliamBD and 95 guests













