WordPress.org

Ready to get started?Download WordPress

Forums

JJ NextGen JQuery Cycle
How to use thumbnails rather than main images (3 posts)

  1. elhashbrown
    Member
    Posted 1 year ago #

    I have this plugin running as a widget in my sidebar and it looks great but it is a bit slow as it is loading the full size images. I only need the thumbnails. Is there a way to switch them?

    http://wordpress.org/extend/plugins/jj-nextgen-jquery-cycle/

  2. elhashbrown
    Member
    Posted 1 year ago #

    I tried changing line 169 of includes > jj_ngg_jquery_cycle.php from:

    $output .= "<img src=\"" . $image->imageURL . "\" " . $image_description . $width_d . $height_d . " border=\"0\" />";

    to

    $output .= "<img src=\"" . $image->thumbnailURL . "\" " . $image_description . $width_d . $height_d . " border=\"0\" />";

    but this just lost the src altogether. That's about as far as my PHP goes I'm afraid. Anyone got any ideas?

  3. elhashbrown
    Member
    Posted 1 year ago #

    Found the solution seen here: JJ NextGen JQuery Carousel - Thumbnails

    replacing line 169 of includes > jj_ngg_jquery_cycle.php to:

    $newurl = get_bloginfo("wpurl") . "/" . $image->path . "/thumbs/thumbs_" . $image->filename;
    $output .= "<img src=\"" . $newurl . "\" " . $image_description . $width_d . $height_d . " border=\"0\"  />";

    Would be great if this was added as a checkbox option in future versions of the plugin.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags