• I just upgraded to the latest version of nextgen gallery and had to do some tweakings again to get the nextgen gallery widget to work as I want it to. And while doing this I found a bug (at least in my opinion).

    File: nggwidget.php

    function nggDisplayRecentImages($number, $width = "75", $height = "50", $exclude = "all", $list = "") {
    
        $options[1] = array('title'=>'',
                            'items'=>$number,
                            'show'=>'thumbnails' ,
                            'type'=>'recent',
                            'width'=>$width,
                            'height'=>$height,
                            'exclude'=>'all',
                            'list'=>$list   );  
    
        nggWidget::ngg_widget_output($args = array(), 1, $options);
    }

    Should be changed to:

    function nggDisplayRecentImages($number, $width = "75", $height = "50", $exclude = "all", $list = "") {
    
        $options[1] = array('title'=>'',
                            'items'=>$number,
                            'show'=>'orginal' ,
                            'type'=>'recent',
                            'width'=>$width,
                            'height'=>$height,
                            <strong>'exclude'=>$exclude,</strong>
                            'list'=>$list   );  
    
        nggWidget::ngg_widget_output($args = array(), 1, $options);
    }

    I couldn’t see why $exclude was an option when it’s not used when showing the widget. Also, an $show option would be nice as well since I don’t want my thumbs showing always and then it would be easier to just add “$show = ‘thumbnail'” in the function statement.

    Otherwise, great plugin!

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

The topic ‘[Plugin: NextGEN Gallery] widget options’ is closed to new replies.