elhashbrown
Member
Posted 5 months 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/
elhashbrown
Member
Posted 5 months 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?
elhashbrown
Member
Posted 5 months 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.