• My site will have 4 mini slideshows in a row at the top of the page. I was going to achieve this by way of the Nextgen slideshow widget. But then I found out it wasn’t possible to insert the widget more than once. Even if I create a new sidebar group for each widget.

    After doing some javascript hacking I found a way of doing this (see below). Not very clean (quite dirty actually)

    It would be really great if this plugin could be update to allow Slideshow widgets to be inserted multiple times. Or maybe there is another reason it was coded in this way. (hope it doesn’t require a bit rewrite).

    Thanks
    Aicos

    <div class="ngg-widget-slideshow" id="sbsl1_1" style="width:180px; height:275px;">
    </div>
    <div class="ngg-widget-slideshow" id="sbsl1_2" style="width:180px; height:275px;">
    </div>
    
    				<script defer="defer" type="text/javascript">
    
    				<!--
    				//<![CDATA[
    					var sbsl1_1 = {
    						params : {
    						wmode : "opaque"},
    						flashvars : {
    						file : "http://www.logicalley.se/mellowyellow/wp-content/plugins/nextgen-gallery/xml/imagerotator.php?gid=1",
    						shownavigation : "false",
    						 shuffle : "false",
    						 showicons : "false",
    						 overstretch : "none",
    						 rotatetime : "10",
    						 backcolor : "0x000000",
    						 frontcolor : "0xFFFFFF",
    						 lightcolor : "0xCC0000",
    						 width : "180",
    						 height : "275"},
    						 attr : {
    						 styleclass : "slideshow-widget"},
    						 start : function() {
    						 swfobject.embedSWF("wp-content/uploads/imagerotator/imagerotator.swf", "sbsl1_1", "180", "275", "7.0.0", false, this.flashvars, this.params , this.attr );
    					 }
    				}
    				sbsl1_1.start();
    
    					var sbsl1_2 = {
    						params : {
    						wmode : "opaque"},
    						flashvars : {
    						file : "http://www.logicalley.se/mellowyellow/wp-content/plugins/nextgen-gallery/xml/imagerotator.php?gid=1",
    						shownavigation : "false",
    						 shuffle : "false",
    						 showicons : "false",
    						 overstretch : "none",
    						 rotatetime : "10",
    						 backcolor : "0x000000",
    						 frontcolor : "0xFFFFFF",
    						 lightcolor : "0xCC0000",
    						 width : "180",
    						 height : "275"},
    						 attr : {
    						 styleclass : "slideshow-widget"},
    						 start : function() {
    							swfobject.embedSWF("wp-content/uploads/imagerotator/imagerotator.swf", "sbsl1_2", "180", "275", "7.0.0", false, this.flashvars, this.params , this.attr );
    						 }
    					  }
    				sbsl1_2.start();
    				//]]>
    				-->
    
    				</script>
Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter aicos

    (@aicos)

    This post isn’t appearing under the NextGen forum. Is it because I selected WP-Advanced instead of Installation?

    Thread Starter aicos

    (@aicos)

    No! its because I had more than one tag on the post! 🙂

    Thread Starter aicos

    (@aicos)

    bump!

    + heres how I’m using it:

    http://www.melloyello.se/wp

    PS, sorry for the typing errors in the first message.

    Thanks
    Aicos

    Hi,

    finally I hope I found the answer to my slideshow-problem by reading your post.

    Can you just tell me exactly the position where I have to paste your javascript?
    Which PlugIn-data and which line in the code?

    Thank you so much!!

    Thread Starter aicos

    (@aicos)

    Well, I wouldn’t recommend it unless you really know what you’re doing because you have to change quite a few things in that javascript to get it working. Plus the settings for each slideshow cannot be changed from the wp admin.

    An easier solution I found out later (typical), was in this post here:

    http://wordpress.org/support/topic/243468

    This doesn’t use the wp widgets but will probably work the way you want. Hope that helps.

    Aicos

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘[Plugin: NextGEN Gallery] multiple slideshow widgets’ is closed to new replies.