WordPress.org

Support

Support » Plugins and Hacks » NextGEN Gallery - WordPress Gallery Plugin » [Resolved] [Plugin: NextGEN Gallery] NGG Slideshow – Enable PREV / NEXT

[Resolved] [Plugin: NextGEN Gallery] NGG Slideshow – Enable PREV / NEXT

  • Tan

    @tanworawutgmailcom

    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/

Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Resolved] [Plugin: NextGEN Gallery] NGG Slideshow – Enable PREV / NEXT’ is closed to new replies.
Skip to toolbar