New widget support
The next version of NextGEN gallery contain a extended Slideshow support for the sidebar or header. This function is called :
function nggSlideshowWidget($galleryID,$Width,$Height)
So you are able to integrate a widget into your theme manually , or automatic via the widget function into your sidebar. If your theme didn’t support the sidebar widget use the follow code in your theme :
<?php
if (function_exists("nggSlideshowWidget"))
{ nggSlideshowWidget($galleryID,$Width,$Height); }
?>
if (function_exists("nggSlideshowWidget"))
{ nggSlideshowWidget($galleryID,$Width,$Height); }
?>
For random images :
<?php
if (function_exists("nggDisplayRandomImages"))
{ nggDisplayRandomImages($number_of_pic,$Width,$Height); }
?>
if (function_exists("nggDisplayRandomImages"))
{ nggDisplayRandomImages($number_of_pic,$Width,$Height); }
?>
For recent images :
<?php
if (function_exists("nggDisplayRecentImages"))
{ nggDisplayRecentImages($number_of_pic,$Width,$Height); }
?>
if (function_exists("nggDisplayRecentImages"))
{ nggDisplayRecentImages($number_of_pic,$Width,$Height); }
?>
May 30th, 2007 at 18:30
I really like the slideshow. But when I use your wonderful Widget to display it, I don’t see this nice play icon if I click on it and stop the animation.
June 3rd, 2007 at 17:53
Hey, do you think it might be possible to tell people how to actually use this gallery? It looks great, I’ve got it set up on my WP site, and can upload images and manage galleries. Now how the heck does anyone look at them?
There are a lot of posts on wordpress.org asking these same questions. Where is the documentation?
June 3rd, 2007 at 18:57
Yes I know, documentation is a problem, but time is also a problem. When I finished a stable version I will work on a better documentation, for now please take as start this one : http://hqcode.com/?page_id=54
August 15th, 2007 at 10:58
Hallo. I’d like your plugin. If I noticed that using sidebar widget the function works fine but if I use your code then I don’t get the slideshow into my sidebar. How do i do? Thanks in advance and good job! NG is very nice.