WebsiteBaker Support (2.8.x) > Templates, Menus & Design

Image Rotator in Banner

(1/3) > >>

keress:
I'm trying to rotate images in this site's banner area, http://www.rockybranchfarms.com/wb/pages/home.php.

I adapted a monoslideshow script I'd purchased, http://www.monoslideshow.com/demo,  and got it working here, http://www.rockybranchfarms.com/slideshow/.

I then copied the code over into my wb template file, and all I'm getting is the error message urging me to install Flash.  It apparently can't find it. 

Any idea what the problem might be?  (The script is commented out in the page source.)

Alternatively, is there an existing WB add-on that will allow me to add an image rotator in the header section of the template and display in the way I'm trying for (simple rotation, no menu, no frame, nothing?

Thanks much!

instantflorian:
Hi,

try to copy the monoslideshow.swf, the pictures and the swfobject.swf into a subdirectory of your template, e.g. "slideshow". In the template, you add the template path into the call:


--- Code: --- <script type="text/javascript" src="<?php echo TEMPLATE_DIR; ?>/slideshow/swfobject.js?v=2.2"></script>
...
<script type="text/javascript">
var flashvars = {};
var params = {allowscriptaccess: "sameDomain", allowfullscreen: "true", allownetworking: "all", bgcolor: "ffffff"};
var attributes = {id: "monoslideshow", name: "monoslideshow"};
swfobject.embedSWF("<?php echo TEMPLATE_DIR; ?>/slideshow/monoslideshow.swf", "flashContent", "1000", "262", "10", false, flashvars, params, attributes);
</script>


--- End code ---

Another option is using the jQuery Admin with one of the several slideshows or sliders which you can find here.


BR
-instantflorian.

keress:
Thanks so much for the reply.

I got a bit further doing this.  It started to load, but then told me there was a problem loading, io error. 

instantflorian:
Maybe the images can't be found?

keress:
That's what I thought, too, so I experimented with what's being called:


--- Quote ---<album thumbnail="/albumThumbnail.jpg" itemPath="/images" thumbnailPath="/thumbnails">
   <configuration backgroundColor="#cacba9" >
--- End quote ---

(My subfolder is called "album" rather than "slideshow.")  Since the monoslideshow.xml file is already in the album subfolder I addressed it as above, but it didn't help.  Is it possible to just use a hard link?  Oddly, though, when I tried to call up the .xml file by just typing the address into a browser, it came up not found. I can see in my ftp client that that's where it is, but it didn't come up. 

Navigation

[0] Message Index

[#] Next page

Go to full version