Forums

[resolved] NextGEN Gallery widget problem (3 posts)

  1. Elrohir_the_king
    Member
    Posted 3 years ago #

    Hello, i'm using nextgengalley; i want to add manually widgets to my custom home page, i can add the slideshow widget but can't add the regular picture list widget.

    <?php
    if (function_exists("nggSlideshowWidget"))
    { nggSlideshowWidget($galleryID,$Width,$Height); }
    ?>

    this is working code

    <?php
    if (function_exists("nggDisplayRandomImages"))
    { nggDisplayRandomImages($number_of_pic,$Width,$Height); }
    ?>

    this is not working

  2. Elrohir_the_king
    Member
    Posted 3 years ago #

    so i'm done.

    i figured out the right code for random image list, it should be like:

    <?php nggDisplayRandomImages(X,Y,Z);?>

    X: number of pic
    Y: width
    Z: height

    this code works on custom pages wich hasn't got sidebar.

  3. cnymike
    Member
    Posted 3 years ago #

    When I create a sidebar random gallery using your code, it works, but the thumbnails are not styled like they would be if the widget had created the thumbnails. Any idea how to have it styled?

Topic Closed

This topic has been closed to new replies.

About this Topic