[Plugin: NextGEN Gallery] Nexgen Slideshow in header
-
I was wondering if anyone knows the code to use in a header file to display a slideshow like it is on this website : http://www.himmelsrichtungen.com ?
Thanks
-
Hi,
look here:
http://nextgen.boelinger.com/2007/05/24/new-widget-support/best regards
beeI have tried these… they don’t work.. I have also tried:
<div class="ngg-widget-slideshow" id="ngg_slideshow1"><img src="http://kjktech.com/playground/wp-content/gallery/header/header.jpg" /> </div> <script type="text/javascript" defer="defer"> <!-- //<![CDATA[ var sbsl = new SWFObject("http://kjktech.com/playground//wp-content/plugins/nextgen-gallery/imagerotator.swf", "ngg_slideshow1", "1000", "225", "7", "#000000"); sbsl.addParam("wmode", "opaque"); sbsl.addVariable("file", "http://kjktech.com/playground/wp-content/plugins/nextgen-gallery/nggextractXML.php?gid=4"); sbsl.addVariable("linkfromdisplay", "false"); sbsl.addVariable("shownavigation", "false"); sbsl.addVariable("showicons", "true"); sbsl.addVariable("overstretch", "true"); sbsl.addVariable("backcolor", "0x000000"); sbsl.addVariable("frontcolor", "0xFFFFFF"); sbsl.addVariable("lightcolor", "0xCC0000"); sbsl.addVariable("screencolor", "0x000000"); sbsl.addVariable("rotatetime", "10"); sbsl.addVariable("transition", "random"); sbsl.addVariable("width", "1000"); sbsl.addVariable("height", "225"); sbsl.write("ngg_slideshow1"); //]]> --> </script>with style sheet entries…
It will work in Opera, but no IE7.
Hi,
sidebar widget plugin is active?best regards
beeyeah, it is enabled.
Hi,
i think now its time (if possible) to get a link to the page.best regards
beeI use Nextgen gallery for my header as a slide show.
You need to put this where you want the header…
<?php { nggSlideshowWidget(1,900,150); }?>The 1 is the gallery id and the 900 and 150 is the size of the slide show and the images.
This is the full code for my header using cutline theme..
<div id="header_img"> <?php if (is_page('about')) { ?> <img src="http://couchmouse.net/wp-content/themes/Cutline 1.2/images/header_2.jpg" width="900" height="150" alt="About page header image" title="About page header image" /> <?php } else { ?> <?php { nggSlideshowWidget(1,900,150); }?> <?php } ?> </div>Thanks, that worked with some CSS work. Does anyone know how to use the random images script, but to exclude some galleries?
<?php if (function_exists("nggDisplayRandomImages")) { nggDisplayRandomImages($number_of_pic,$Width,$Height); } ?>This works, but it includes all galleries. I need to not include a few.
Thanks!
KevinOn a similar note, anyone know what code I need to put on the header so that I can make the transitions random??
That way it overwrites the current widget option, and I can control other galleries within my site with the gallery but have the header be overwritten to random transitions at all times?
thanks!
Hi there
I did according Couchmouses hints but nothing appears
You can see here: http://www.kein-nichts.de and check with Firebug or so.
Actually I´m not that familiar about web programming. Can it be that my theme cannot understand <div id=”header_img”> ? Or that I have to create that id before anywhere?
Could U help me?
ThanX anyway and best regards from Germany, Ellen & StephanAnother code…
<?php
$showgallery = ‘[slideshow=1]’;
$showgallery = apply_filters(‘the_content’, $showgallery );
echo $showgallery;
?>And I guess you can call different slideshows, as well as Galleries
Stephan, <div id=”header_img”> opens up a loop , that is in the CSS #header_img section (all spec’s like padding,color,size,text type,etc,then you add anything inside the loop, before it closes with </div>.
Hope that helped.
Anyone knows how to add a slideshow as background in the CSS of a Theme?…the PHP or the [slideshow=X] do not do it.
Thanks
The topic ‘[Plugin: NextGEN Gallery] Nexgen Slideshow in header’ is closed to new replies.