WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Gallery
[resolved] NGG Slideshow - Enable PREV / NEXT (9 posts)

  1. Tan
    Member
    Posted 2 years ago #

    NEXTGEN SLIDESHOW ENABLE PREV/NEXT BUTTONS
    Plugin: NEXTGEN Gallery 1.9.3 WordPress Plugins
    Tan Worawut (24 May 2012)
    ======================================
    1. Enable jquery cycle to ALL mode.
    --------------------------------------
    EDIT: /nggallery.php

    Line: 364 - Remark this line.
    //wp_register_script('jquery-cycle', NGGALLERY_URLPATH .'js/jquery.cycle.all.min.js', array('jquery'), '2.9995');

    Insert this line.
    wp_register_script('jquery-cycle', NGGALLERY_URLPATH .'js/jquery.cycle.all.js', array('jquery'), '2.9995');

    ======================================
    2. Assign STYLE ID to PREV/NEXT.
    --------------------------------------
    EDIT: /js/jquery.cycle.all.js

    Line 993: next: '#next',
    Line 1002: prev: '#prev',

    ======================================
    3. Disable default NEXT function in NGG slide script.
    (Move forward after clicked on image)
    --------------------------------------
    EDIT: /js/ngg.slideshow.min.js

    DELETE "next:obj," FROM BELOW CODE:
    s.timeout,next:obj,before:

    FINAL:
    s.timeout,before

    ======================================
    4. Add button scripts
    --------------------------------------
    EDIT: /nggfunctions.php [LINE: 136]

    AFTER:
    $out .= "\n".'</script>';

    BEFORE:
    return $out;

    ADD THESE LINES:

    /*** SHOW PREV/NEXT BUTTONS START ***/
    $out .= '<style>.but {padding:5px;background:#ccc;font-size:10px;margin-right:10px;}</style>';
    $out .= '<div class="nav">';
    $out .= 'Previous';
    $out .= 'Next';
    $out .= '</div>';
    /*** SHOW PREV/NEXT BUTTONS END ***/

    ======================================

    http://wordpress.org/extend/plugins/nextgen-gallery/

  2. kaylamatthews
    Member
    Posted 2 years ago #

    Thanks Tan! Great job!

  3. charkins
    Member
    Posted 2 years ago #

    Wow looks cool - I'll have to try this. Thanks Kayla!

  4. Tan
    Member
    Posted 2 years ago #

    $out .= '< a class="prev but">Previous< /a>';
    $out .= '< a class="next but">Next< /a>';

  5. bthabault13
    Member
    Posted 2 years ago #

    I just implemented this and there is an error in step two. Should be this:

    2. Assign STYLE ID to PREV/NEXT.
    --------------------------------------
    EDIT: /js/jquery.cycle.all.js

    Line 993: next: '.next',
    Line 1002: prev: '.prev',

    ======================================

    Thanks for the instructions though :-)

  6. SINCROnista
    Member
    Posted 1 year ago #

    Worked fine for me! Thanks a lot.

    Now I am having another issue: I NEED to add bullets to mi slideshow!

    Any ideas?

  7. SINCROnista
    Member
    Posted 1 year ago #

    I managed to add the bullets or selectors by using http://wordpress.org/extend/plugins/wunderslider-gallery/

  8. davidgabunia
    Member
    Posted 1 year ago #

    Dos not work with NEXTGEN Gallery 1.9.10

  9. -bene-
    Member
    Posted 1 year ago #

    Doesn't work for me neither.

    Any chance for an updated code?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic