Forums / Basic Configuration / Slideshow in a sidebox

Slideshow in a sidebox

Locked

Started by mikado on 24 Sep 2008, 9:17 AM · Views: 6,058

Results 1 to 20 of 21
This thread is locked. New replies are disabled.
24 Sep 2008, 9:17 AM
#1
mikado avatar

mikado

Zen Follower

Join Date:
Nov 2007
Location:
Toulouse - France
Posts:
112
Plugin Contributions:
0

Slideshow in a sidebox

In my sidebox "ANNONCE" I display a static image with Banner Manager. The banner is in BannersAll group.
See here -> http://www.bricoleurre.com

I now want to replace that by an automatic slideshow.
How can it be done?

25 Sep 2008, 3:35 PM
#2
mikado avatar

mikado

Zen Follower

Join Date:
Nov 2007
Location:
Toulouse - France
Posts:
112
Plugin Contributions:
0

Re: Slideshow in a sidebox

I use the blank_sidebox 2.0

My arborescence :

> /www
>   /includes
>       /templates
>           /classic
>               /jscript/jscript_slide.js
>               /sideboxes/tpl_blank_sidebox.php
>               /images
>                     /slideshow/pub_concours.jpg et pub_sondage.jpg

jscript_slide.js

> NewImg = new Array (
> new Array("/includes/templates/classic/images/slideshow/pub_concours.jpg",
> "http://www.bricoleurre.com/atelier/viewtopic.php?id=299"),
> new Array("/includes/templates/classic/images/slideshow/pub_sondage.jpg",
> "http://www.bricoleurre.com/index.php?main_page=peinture"),
> //new Array("/images/slideshow/3.gif", "link3")
> );
> var ImgNum = 0;
> var ImgLength = NewImg.length - 1;
>
> //Time delay between Slides in milliseconds
> var delay = 1000;
>
> var lock = false;
> var run;
> function chgImg(direction) {
> if (document.images) {
> ImgNum = ImgNum + direction;
> if (ImgNum > ImgLength) {
> ImgNum = 0;
> }
> if (ImgNum < 0) {
> ImgNum = ImgLength;
> }
> document.getElementById('slideshowImg').src = NewImg[ImgNum][0];
> document.getElementById('slideshowLink').href = NewImg[ImgNum][1];
>  }
> }
>
> function auto() {
> if (lock == true) {
> lock = false;
> window.clearInterval(run);
> }
> else if (lock == false) {
> lock = true;
> run = setInterval("chgImg(1)", delay);
>  }
> }
>
> auto();

tpl_blank_sidebox.php

> <?php
> /**
> * blank sidebox - allows a blank sidebox to be added to your site
> *
> * @package templateSystem
> * @copyright 2007 Kuroi Web Design
>  * @copyright Portions Copyright 2003-2007 Zen Cart Development Team
> * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
> * @version $Id: blank_sidebox.php 2007-05-26 kuroi $
> */
>
>  $content = '';
>  $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '"
> class="sideBoxContent">';
>  $content .= '<script type="text/javascript" language="javascript"
> src="/includes/templates/classic/jscript/jscript_slide.js"></script>';
>  $content .= '<a
> href="http://www.bricoleurre.com/atelier/viewtopic.php?id=299"
> id="slideshowLink"><img
> src="/includes/templates/classic/images/slideshow/pub_concours.jpg"
> width="117px" height="252px" id="slideshowImg"/></a>';
>  $content .= '</div>';
> ?>

My slideshow don't work, only first image is shown. :dontgetit

25 Sep 2008, 10:04 PM
#3
mikado avatar

mikado

Zen Follower

Join Date:
Nov 2007
Location:
Toulouse - France
Posts:
112
Plugin Contributions:
0

Re: Slideshow in a sidebox

Nobody for help me? :hug:

26 Sep 2008, 7:22 AM
#4
mikado avatar

mikado

Zen Follower

Join Date:
Nov 2007
Location:
Toulouse - France
Posts:
112
Plugin Contributions:
0

Re: Slideshow in a sidebox

Misty perhaps?

26 Sep 2008, 7:44 AM
#5
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Slideshow in a sidebox

Mikado:

Misty perhaps?
Just created one for my own requirements..does
not use your script..same result achieved however...
Top right sidebox at
http://www.dezinashop.com/demo/
:smile:

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

26 Sep 2008, 3:30 PM
#6
mikado avatar

mikado

Zen Follower

Join Date:
Nov 2007
Location:
Toulouse - France
Posts:
112
Plugin Contributions:
0

Re: Slideshow in a sidebox

I am certain that it is about a problem at the level of the road towards the js file because it's never executed. But I do not manage to find the good road.
Please help me.

26 Sep 2008, 3:37 PM
#7
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Slideshow in a sidebox

Mikado:

I am certain that it is about a problem at the level of the road towards the js file because it's never executed. But I do not manage to find the good road.
Please help me.
How does your script differ from slideshow in my own
sidebox? i.e. what effect does it produce?

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

26 Sep 2008, 5:14 PM
#8
mikado avatar

mikado

Zen Follower

Join Date:
Nov 2007
Location:
Toulouse - France
Posts:
112
Plugin Contributions:
0

Re: Slideshow in a sidebox

I bought this morning Scrolling Featured Sidebox (order 215). I tried, unsuccessfully, to adapt it to my problem.

The difference enters my script and your is that you fetch the images in the data base while I store the url of my images in tables JS.

what effect does it produce?
The script has to show in buckle of the images jpg contained in a folder. A click on an image loads a page. It is everything.

26 Sep 2008, 5:20 PM
#9
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Slideshow in a sidebox

Slideshow sidebox is NOT same as Scrolling Featured Sidebox...
Only completed and installed slideshow box today..
BOTH are shown on righthand side boxes at
http://www.dezinashop.com/demo/

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

26 Sep 2008, 8:08 PM
#10
mikado avatar

mikado

Zen Follower

Join Date:
Nov 2007
Location:
Toulouse - France
Posts:
112
Plugin Contributions:
0

Re: Slideshow in a sidebox

What is the difference between both?

26 Sep 2008, 9:52 PM
#11
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Slideshow in a sidebox

Mikado:

What is the difference between both?
Scrolling Featured sidebox fetches images and info from zencart database..
Slideshow sidebox shows my own images, stored in js, which can
be linked to url of choice.

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

26 Sep 2008, 9:59 PM
#12
mikado avatar

mikado

Zen Follower

Join Date:
Nov 2007
Location:
Toulouse - France
Posts:
112
Plugin Contributions:
0

Re: Slideshow in a sidebox

But then I made a mistake during the download!
It is indeed " Slideshow sidebox " whom I need. Where may I find it?

27 Sep 2008, 7:05 AM
#13
mikado avatar

mikado

Zen Follower

Join Date:
Nov 2007
Location:
Toulouse - France
Posts:
112
Plugin Contributions:
0

Re: Slideshow in a sidebox

In other words, you can give me your file tpl_blank_sidebox.php?

4 Oct 2008, 5:11 PM
#14
cgoldberg avatar

cgoldberg

New Zenner

Join Date:
Sep 2007
Posts:
20
Plugin Contributions:
0

Re: Slideshow in a sidebox

Can you tell me where I can get "SLideshow Sidebox" I checked out the Dezina site, but only see the Scrolling Featured Sidebox.
Thanks in advance.

-Casey

4 Oct 2008, 11:09 PM
#15
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Re: Slideshow in a sidebox

misty:

Scrolling Featured sidebox fetches images and info from zencart database..
Slideshow sidebox shows my own images, stored in js, which can
be linked to url of choice.
misty,
I am interested in the scroller, however my purpose is not to show featured products but just a scroller with news I put in there.
What do you suggest?

[argentiniansupermarket.com

](http://argentiniansupermarket.com)

5 Oct 2008, 5:02 AM
#16
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Slideshow in a sidebox

Can you tell me where I can get "SLideshow Sidebox" I checked out the Dezina site, but only see the Scrolling Featured Sidebox.
Slideshow Side Box...Top right sidebox, above featured
scrolling sidebox at
http://www.dezinashop.com/demo/
Currently not availble for release as testing on numerous
zencart versions.
misty,
I am interested in the scroller, however my purpose is not to show featured products but just a scroller with news I put in there.
What do you suggest?
Slideshow sidebox does NOT show Featured Products,
but images/links of choice.
Probably possible to have scrolling RSS Feed..not tried
that as yet.

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

5 Oct 2008, 3:01 PM
#17
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Re: Slideshow in a sidebox

misty:

Slideshow sidebox does NOT show Featured Products,
but images/links of choice.
Probably possible to have scrolling RSS Feed..not tried
that as yet.
I'm afraid we are not referring to the same contrib.
I would like to customize the one called "Scrolling Featured Sidebox" in the download area.
Am not thinking of RSS at the moment, just some news and updates that I would upload manually.
Thanks.

[argentiniansupermarket.com

](http://argentiniansupermarket.com)

5 Oct 2008, 9:32 PM
#18
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Slideshow in a sidebox

ckosloff:

I'm afraid we are not referring to the same contrib.
I would like to customize the one called "Scrolling Featured Sidebox" in the download area.
Am not thinking of RSS at the moment, just some news and updates that I would upload manually.
Thanks.
Answered at
http://www.zen-cart.com/forum/showthread.php?t=108812&page=2

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

6 Oct 2008, 7:24 PM
#20
cgoldberg avatar

cgoldberg

New Zenner

Join Date:
Sep 2007
Posts:
20
Plugin Contributions:
0

Re: Slideshow in a sidebox

Thanks Misty. Any idea on when you might have Slideshow Sidebox ready for release? I'm using 1.3.8 if that helps :smile:
Thanks!