WordPress.org

Support

Support » Plugins and Hacks » Nextgen Gallery – change the “view with Piclens” link

Nextgen Gallery – change the “view with Piclens” link

  • I am wondering how to change the “view with piclens” link to an image instead of text. I would like the piclens to be the only way or at least the most obvious way for someone to view the pics.

    I understand how to change a hyperlink to an image link, but I cannot locate the area in the plugin where this link is generated.

    Anyone? Alex, any ideas how I could do this?

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • You can do this by editing the file “gallery.php” line:63

    Insert the image, change the text, do whatever! 😀

    Sorry, but can I do this in the WP Editor? I looked all through nextgen-gallery/nggallery.php within the plugin editor and could not find where to do play with the PicLens link. Also, lines of code are not numbered, where am I off here? Thanks!

    My site http://www.OceanRockProperties.com

    @oceanrock:

    Go to the nggfunctions.php file in your nextgen-gallery folder. Once you opened the file, search for:

    if ($ngg_options[‘usePicLens’]) {
    $gallery->show_piclens = true;
    $gallery->piclens_link = “javascript:PicLensLite.start({feedUrl:'” . htmlspecialchars( nggMediaRss::get_gallery_mrss_url($gallery->ID) ) . “‘});”;
    }

    (Usually line 204)
    Change the indicated ‘true’ to ‘false’. Problem solved.

    In my case helped: manually in my plugins directory, ussualy \wp-content\plugins\nextgen-gallery\view\gallery.php edit line 32 in this file gallery.php for change in gallery(in post/page) or in file gallery-caption.php for change it in Caption description.

    Thanks glex, worked perfectly

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Nextgen Gallery – change the “view with Piclens” link’ is closed to new replies.
Skip to toolbar