Support » Plugin: NextGEN Gallery - WordPress Gallery Plugin » Pagination does not work on the page "Images tagged"

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author photocrati

    (@photocrati)

    @johnny – How are you “generating” the URL you are referring to? For the most part, using ngg_tag as the display generator is undocumented as it has very limited functionality at the moment.

    Thanks!

    – Cais.

    Sorry, I don’t quite understand in English.
    On our website nggtags are displayed in the sidebar.
    By clicking a tag – load the nggtag page

    On this page pagination links look like:
    http://alena-kapriz.ru/nggallery/page/2
    http://alena-kapriz.ru/nggallery/page/3

    When you click on such a link is loaded main page
    How to make correct links in pagination?
    should be:
    http://alena-kapriz.ru/ngg_tag/gradient/nggallery/page/2
    http://alena-kapriz.ru/ngg_tag/gradient/nggallery/page/3

    Thanks!

    Plugin Author photocrati

    (@photocrati)

    @johnny – Are you manually writing the link using the ngg_tag as this is what I am trying to sort out … the gallery displayed by that is not really meant to be used at this time.

    – Cais.

    @photcrati,

    I am having a similar problem, but I was actually thinking of a different workaround, especially after reading that, “ngg_tag as the display generator is undocumented as it has very limited functionality at the moment.”

    I am using do_shortcode(‘[nggtags]’) after using a switch on a $_SERVER[‘QUERY_STRING’] to gain functionality similar to powertags (which I could not get to work).

    The simplest solution for me would be a way to eliminate pagination all together. I would actually prefer all of the photos shown on one page (except the case where no filters are used, but the pagination works fine there). Please Help

    Code:

    <?php
    
    $filter = @$_GET['f'];
    
    switch ($filter){
    	case '2014':
    		echo '<h4>Buy Photos from the <strong>2014 Exhibit</strong></h4>';
    		echo do_shortcode('[nggtags gallery="2014 Exhibit"]');
    		break;
    	case '2013':
    		echo '<h4>Buy Photos from the <strong>2013 Exhibit</strong></h4>';
    		echo do_shortcode('[nggtags gallery="2013 Exhibit"]');
    		break;
    	default:
    		echo '<h4><strong>All Photos</strong></h4>';
    		echo do_shortcode('[ngg_images gallery_ids="2" display_type="photocrati-nextgen_basic_thumbnails"]');
    		break;
    }
    ?>

    Here is a link to the page in question: Gallery/Store

    Thanks In Advance

    Plugin Author photocrati

    (@photocrati)

    @phatwebah – It would be much better to start your own topic as this is not really related to the OP.

    As it is, have you tried adding the disable_pagination=1 parameter to your shortcode structures?

    – Cais.

    I don’t know if a new thread is necessary (plus it is kind of related). Anyway, the disable_pagination parameter worked great. I was additionally helped by this thread. While trying to figure out this filtering stuff using do_shortcode() I searched on at least 2 occasions for the phrase “nextgen gallery shortcode parameters”, but never came across either disable_pagination or images_per_page. Does there exist a complete list of possible shortcode parameters for nggtags? or ngg_images for that matter?

    I could not find this on the shortcodes page on your website.

    Thank You,
    Matt

    Just out of curiosity, do you know where I would rewrite the link $url for the pagination links to include $_SERVER[‘QUERY_STRING’]?

    EDIT: for example, in the legacy/lib directory there is a rewrite.php in which this could have been done.

    I ask because most of my tagged galleries are limited to 15-20 photos, but there are a couple with more than 100 and the loading time is kind of slow.

    Thank You,
    Matt

    Plugin Author photocrati

    (@photocrati)

    @phatwebah – Although related, what you are doing and the OP are still different in many ways. This is why we recommend starting a new topic per the forum rules: http://codex.wordpress.org/Forum_Welcome#Where_To_Post

    Especially in this case as you are now taking the OP topic and moving it into a different direction altogether. Feel free to do this in your own topics but it is not recommended to do it in other poster’s topics.

    Thanks!

    – Cais.

    PS: There are a few undocumented parameters, your best bet at this time would be to review the code in nextgen_gallery_display/class.displayed_gallery_renderer.php – specifically the display_images() method

    Thank You! I will create a new topic to address the $url rewriting question. You have been very helpful.

    Plugin Author photocrati

    (@photocrati)

    @phatwebah – You’re welcome. I look forward to your “new” topic … although I may need to have one of the developers taken off-task to look at your question so it may be a bit before we can get you any assistance.

    – Cais.

    And what about initial question asked by Johnny?…
    Once more about the issue.
    Site has a ‘Tags Cloud’ widget. When you click on any of the tags you see the page with the list of picture thumbnails.
    Here is the URL that generates automatically:
    http://mysite/ngg_tag/mytag
    This link works fine. If amount of pictures with a tag ‘mytag’ is big pagination links are shown below the thumbnails.
    URL to the second page is shown as:
    http://mysite/nggallery/page/2
    that is not a correct one. It leads to ‘nowhere’.
    Is it possible to fix the link to show the following:
    http://mysite/ngg_tag/mytag/nggallery/page/2
    This link shows the second page correctly.

    Plugin Author photocrati

    (@photocrati)

    @dmitry Shved – If you are experiencing issues with your site it is always best to start a new topic with your specifics.

    Thanks!

    – Cais.

    Hi, as I see – this issue is not resolved yet. The URL (http://alena-kapriz.ru/ngg_tag/gradient/) provided by the topic initiator (Johnny) is still having the problem described. Link generated for the 2nd (and next) page is not correct. Why do you think I need to open another topic? Only because my site is located at another URL? 🙂 I can open a new topic, it will be absolute duplication of existing one.
    Any ideas about the problem itself? Do you understand what the problem is? Do you agree that it is a bug? Does someone work on it’s resolution?
    Thanks, Dmitry.

    Plugin Author photocrati

    (@photocrati)

    @dmitry Shved – Please read http://codex.wordpress.org/Forum_Welcome#Where_To_Post

    Thanks!

    – Cais.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Pagination does not work on the page "Images tagged"’ is closed to new replies.