Nextgen Gallery - change the "view with Piclens" link (6 posts)

  1. knuckle34
    Posted 7 years ago #

    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?


  2. sterex
    Posted 7 years ago #

    You can do this by editing the file "gallery.php" line:63

    Insert the image, change the text, do whatever! :D

  3. OceanRock
    Posted 7 years ago #

    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

  4. glex
    Posted 7 years ago #


    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.

  5. Palituner
    Posted 7 years ago #

    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.

  6. rlopez
    Posted 7 years ago #

    Thanks glex, worked perfectly

Topic Closed

This topic has been closed to new replies.

About this Topic