• In the legacy Nextgen Gallery it was possible to set a variable (somewhere) to make an Album list of galleries paginate (if it have more than X number of galleries inside it).

    On one of my client’s websites, there is an Album with more than 100 Galleries inside it. Basically in this website a gallery is a collection of photos of the same doll (the owner creates life-like dolls). A gallery starts in the Available for Adoption Album, and when adopted, goes to the Adopted Album (thus this one will always have a lot of galleries).

    Using the previous NextGen, I was able to limit the number of displayed Galleries to a manageable number. After the upgrade I have no idea where to go look. What I am asking is a setting for this (maybe in the Gallery Settings > Extended Album).

    Regards
    Jaco

    https://www.ads-software.com/plugins/nextgen-gallery/

Viewing 13 replies - 16 through 28 (of 28 total)
  • @tizz, I still cannot get a button to show to go to next page. I can limit the number shown on the primary page, but there is not button to move on. Is there a default one that should show, or one I should add? Not terribly familiar with in depth php

    Thread Starter Jacotheron

    (@jacotheron)

    Step 1 fixes the url when you are on a page other than 1 (as nextgen generates a url ending with ‘nggallery/page/N’ and we actually need ‘page/N’) by removing the current page’s ‘page/N’ part, so that step 2 will generate the correct url.

    Step 2 removes the ‘nggallery/’ part of the generated url (the “$this->object->set_param_for($current_url, ‘page’, $newpage) generates the url”). This have to be done on 3 lines:

    //line 39 in original file; ~47 in my file
    $return['prev'] = $this->object->set_param_for($current_url, 'page', $newpage);
    ...
    //line 56 in original file; ~64 in my file
    $link = $this->object->set_param_for($current_url, 'page', $newpage);
    ...
    //line 66 in original file; ~74 in my file
    $return['next'] = $this->object->set_param_for($current_url, 'page', $newpage);

    In all of the above lines, the “$this->object->set_param_for($current_url, ‘page’, $newpage)” should become “str_replace(‘/nggallery/’,’/’,$this->object->set_param_for($current_url, ‘page’, $newpage))”

    Step 3 is the part that makes nextgen render the pagination for the 1st page.

    Step 4 handles the limit as well as making nextgen handle the different pages.

    Also something that may cause the navigation to not render is, you need to select a template (in the attach to post interface). Without it, the if statement in “adapter.nextgen_basic_album_controller.php” line 92 will not be satisfied causing it to render in Legacy mode – I have not delved into that part.

    I hope this clears everything up and helps somebody.

    @photocrati thanks for the info. I hope this makes it into nextgen asap without the need for my hack.

    isis

    (@stephenetta)

    thanks so much @jacotheron for the fix.

    i’ve mentioned the issue of the missing ngg_paged_Galleries and referenced where the functions were in two separate threads over the past two weeks and instead of getting responses those threads were deleted! O_o

    i’ve been fighting with getting the URLs to work, so hopefully, this does for me, as well!
    if not, definitely a step in a much better direction than i was heading…

    Plugin Contributor photocrati

    (@photocrati)

    @jacotheron – We appreciate your support in these forums in helping other users! ?? We do have it on our agenda and it will hopefully be re-added in one of the next updates.

    Thanks again! (Becky)

    Any info on this update? Would love to see it, working on the workaround and just cannot seem to get it to run right.

    @jacotheron – Got pagination, got the galleries limited to 9, the pages are rendering how you say they should (without the nggallery part, just getting ‘page/2?page_id=350/’), but getting a 404 error. BTW, you were right about the attaching a template part. I just had to attach a template and I got the nav.

    paradiselost79

    (@paradiselost79)

    This is the problem I get. The pagination nav shows up, the limit to 9 galleries takes place, but when I click on page 2 I get a 404. Looked at url’s, and it comes out really weird. Here is example:
    Actual WP page (it is because client setup some odd security on their site):
    https://www.thebrightwells.com/level2/wplatest/?page_id=350

    But when click on nav for page 2, this is resulting site:
    https://www.thebrightwells.com/level2/wplatest/level2/wplatest/page/2?page_id=350/

    If you want to try, here is a guest login:
    user: guest
    pw: bright22well

    Any ideas? @photocrati, idea when update may allow pagination?

    Hi, Is there any progress or update on this thread?

    Plugin Contributor photocrati

    (@photocrati)

    @TonisNightOut – This topic is very old, if you are seeing an issue with your NextGEN Gallery installation it most likely should be treated as a new topic.

    Please create one with your site specifics and the details of the issue you are seeing.

    Thanks!

    – Cais.

    Hello there,
    I have problem to paginate my nextgen gallery in my album. I used your method, but the link on the next page does not work. Please, does anyone could help me, it’s urgent

    Plugin Contributor photocrati

    (@photocrati)

    @dionsy – This topic was last responded to three months ago … please create your own topic with your specific issue as per the forum rules: https://codex.www.ads-software.com/Forum_Welcome#Where_To_Post

    Thanks!

    – Cais.

    Plugin Contributor photocrati

    (@photocrati)

    @dionsy – Thank you for starting a new topic. I will respond to it shortly.

    – Cais.

Viewing 13 replies - 16 through 28 (of 28 total)
  • The topic ‘[feature] Limit and paginate Galleries shown in Albums’ is closed to new replies.