• Has anyone come up with a nice way to include a ‘back to gallery’ link on the imageviewer page ( https://classicalantiquebronzes.com/bronzes/?nggpage=2&pid=14 ) where if one had gone through a bunch of the images with the ‘Next’ button, the ‘back to gallery’ link would take them to the thumbnail gallery page where the current thumbnail image resides?

    In the link above, where i have Nextgen set for 12 thumbs per page the page meta title/URL reflect the gallery page and image number. I’d like the actual meta title tag on the individual imagebrowser pages to show the short description of the current image rather than the image # and some indicator on the imagebrowser page similar to the current URL, possibly something like ‘You are on page 2 of Bronzes, image 14, click -here- to return to (thumbnail page x) thumbnail gallery.

    Thanks very much.

    Craig

    I am using WP 2.7 and Nextgen 1.1

Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter chemmyone

    (@chemmyone)

    Sorry for the duplicate.

    Knight Fight

    (@patriek-jeuriens)

    I checked the image browser and there is a way to to do it i think,
    you have to calculate the page from the @number and the pagination amount. Since there is no variable holding the pagination number you will have to supply that.

    it should be something like this
    <a href="<?php echo "?album=3&gallery=". $image->galleryid ."&nggpage=". ceil($image->number/9) ?>"> testLink</a>

    this is an extreme hack, prone to failure depending on your usage.
    in your case should work, just toy around with it.
    <a href="<?php echo "&nggpage=". ceil($image->number/9) ?>"> testLink</a>

    Thread Starter chemmyone

    (@chemmyone)

    Thanks very much, i’ll give that a try now and see what happens. Appreciate the reply.

    Craig..;)

    Thread Starter chemmyone

    (@chemmyone)

    Perfect.. that does exactly what i needed.. thanks so much.. just had to change the “&ngg.. to “?ngg.. and do number/12 . thanks so much

    Craig

    Thread Starter chemmyone

    (@chemmyone)

    Some sort of messy bits in IE 7, had the same issue with using an img for ‘sold’ items in the bronzes category. https://classicalantiquebronzes.com/bronzes/?pid=211 for example.. something seems to be mucking with the lightbox effect or something and displaying bits above the large image and rendering lightbox inoperative.. no clue on this..

    Craig

    Knight Fight

    (@patriek-jeuriens)

    not sure what you are trying to do now but the link above the statue has a lot of bad information.

    <a href="https://classicalantiquebronzes.com/wp-content/gallery/bronzes/image1166.jpg" title="#1166<br / onclick="javascript:urchinTracker('/file/wp-content/gallery/bronzes/image1166.jpg?ref=http_//www.ads-software.com/support/topic/242113?replies=2');">Patinated bronze bust of Julius Caesar on Integral Column.ItalianMid 19th Century.9 inches H." rel="lightbox[bronzes]">

    it starts to break with the title, there is javascript in the title and malformed breaks. It should be something like this:

    <a href="https://classicalantiquebronzes.com/wp-content/gallery/bronzes/image1166.jpg" rel="lightbox[bronzes]" onclick="javascript:urchinTracker('/file/wp-content/gallery/bronzes/image1166.jpg?ref=http_//www.ads-software.com/support/topic/242113?replies=2');" title="#1166Patinated bronze bust of Julius Caesar on Integral Column.ItalianMid 19th Century.9 inches H.">

    this should be valid html but i have no clue why you are referencing to a wordpress topic in there. Are you using a plugin for urchin tracker of some sorts, it seems to be messing up things then.

    Thread Starter chemmyone

    (@chemmyone)

    Yes, it is driving me crazy.. this has been happening on and off, on Firefox latest less often than IE latest. I have noticed that this problem is happening only to the items/images that are on the first page of the gallery admin.

    I have items 1-50 on the gallery management then with the new pagination the gallery items carry on to a 2nd page with 51-96 or so (in manage galleries/bronzes). It seems that only the first page of images is affected with the broken link/effect etc.(images 1-50 in the bronzes category) and the others work fine..

    I have disabled/enabled all the possible plugins that associate with Nextgen and the issue pops up regardless of whether i’m using tracking or lightbox or etc.. the problems only occur on the first 5 pages of thumbs. I think I have a tab open somewhere that mentions a fix for an admin gallery pagination issue in an upcoming release. I am off to look for the tab in the haystack. Thanks very much for taking the time, your hack above works great though I have it disabled at the moment.

    Thanks again

    Craig

    Thread Starter chemmyone

    (@chemmyone)

    Well, I removed the google analytics code and it seems to be happy now.. not sure why it wasn’t the last time i removed that plugin.. I guess I can’t complain. Thanks for your help.

    Craig

    Knight Fight

    (@patriek-jeuriens)

    Your welcome, the new version of nextgen should be out very soon maybe that will fix the problem.

    Cheers!

    Thread Starter chemmyone

    (@chemmyone)

    Hey patrieck, would you be interested in chatting about doing some contract WP, NGG, PHP work here and there and maybe on an ongoing basis? I am quite in need of someone to help with issues that I have here and there with my various blogs and i am very poor with PHP and etc. if so please email me at compusure at hotmail dot com. or add me on msn w/ chemical_ at hotmail dot com if you are at all interested. I tried to find somewhere to PM you here but was unable to find anything..

    Regards

    Craig..

    Hi
    I am a newbie.
    I wondered if you could help me do exactly this on my website? I am using nextgen.
    I just want to put a back to thumbnails link above the main image navigation like you have but I don’t know where to put the code.
    Any help is very much appreciated.
    Thank you in advance.

    Thread Starter chemmyone

    (@chemmyone)

    Hi, I put the code that Patriek came up with on line 35 of imagebrowser.php in wp-content/plugins/nextgen-gallery/view/imagebrowser.php . I used this code and did /12 rather than /9 as I have 12 pics per page.

    <div class=”uptothumbs”>
    number/12) ?>”> Up to Gallery
    </div>

    Hope this helps and thanks again to Patriek.

    Thread Starter chemmyone

    (@chemmyone)

    Sorry about that. the next post has it properly inside backticks..;)

    Thread Starter chemmyone

    (@chemmyone)

    <div class="uptothumbs">
    <a title="This is a new feature that will return you to the correct thumbnail page if you have been browsing through a large number of images on this page" href="<?php echo "?nggpage=". ceil($image->number/12) ?>"> Up to Gallery</a>
    </div>
Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘[Plugin: NextGEN Gallery] How to add a ‘back to gallery’ link on imagebrowser page’ is closed to new replies.