WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: NextGEN Gallery] pagination not working (22 posts)

  1. carldesigns
    Member
    Posted 5 years ago #

    take a look at my site at

    toastskateboards.com/tv/

    the way i have the site set up is:

    there are two categories on one page.. on the left is the category that contains the videos. on the right is a category that contains the nextgen gallery. as you see the nextgen gallery thumbnails link to the videos..

    if you test the pagination does not work when you click to go to the second page to see the rest of the videos.

    not for sure what is going on here but if some one can please help out and correct me i would greatly appreciate it.

    thanks in advance.

  2. Alex Rabe
    Member
    Posted 5 years ago #

    Is the gallery part of a post ? Or how do you added the gallery shortcode ?

  3. carldesigns
    Member
    Posted 5 years ago #

    it is in a post under a category called video listing the post you see on the left is a under a category called toast tv.

  4. carldesigns
    Member
    Posted 5 years ago #

    this might help as well...

    wordpress: 2.6.3

    nextgen: 1.22

  5. Laws
    Member
    Posted 5 years ago #

    There is no nextgen 1.22. The latest is 1.01, but with worpress 2.6.3 you should use nextgen 0.99.

  6. carldesigns
    Member
    Posted 5 years ago #

    sorry that was some thing else

    nextget: 0.99.1

    still stumped on a fix...

  7. carldesigns
    Member
    Posted 5 years ago #

    bump, still can't figure it out and i've been trying all day.

  8. phattrance
    Member
    Posted 5 years ago #

    i have the same problem. my page looks like this:

    large image
    large image

    *text*

    < -- more -- >

    *Nextgen gallery code*

    and when i click on a gallery image i still see this:

    large image
    large image

    *text*

    < -- more -- >

    *the gallery image that i clicked on*

    how can i make nextgen to take me just to the image that i clicked on , on a new page (with the next and previous image link)

    i have word├ąpress 2.6.2 and nextgen version 0.99.1

  9. carldesigns
    Member
    Posted 5 years ago #

    bump for pagination issue.

    phattrance, it will take some recoding. if you google in some of the keywords that you are describing, i promise you will find the anwser. I had to rewrite some of the coding for nextgen gallery to be able to link the thumbnails to a particular video.

    if i remember correctly it should be an option in your nextgen gallery on the admin page.

  10. phattrance
    Member
    Posted 5 years ago #

    the thing is that ive been searching for it for 2 days now and haven't found any solution that can help me =(

  11. carldesigns
    Member
    Posted 5 years ago #

    this might be the solution to your porblem

    http://wordpress.org/support/topic/170979?replies=14

    I still need help on my issue....

  12. carldesigns
    Member
    Posted 5 years ago #

    Here is the left side post that I have on my site where the nextgen gallery is..

    <div id="tvCol">
    
    <div class="post" id="post-<?php the_ID(); ?>">
    			<?php (' <img src="http://toastskateboards.com/toasts/wp-content/themes/grid_focus_public/images/li.gif" border="0" width="14px" alt="" />  ') ?>Video Listings<div class="postMeta"><span class="date"> </span></div><?php
    // retrieve one post with an ID of 5
    query_posts('category_name=Video Listings');
    
    global $more;
    // set $more to 0 in order to only get the first part of the post
    $more = 0; 
    
    // the Loop
    while (have_posts()) : the_post();
      // the content of the post
    
      the_content('Read the full post ┬╗');
    endwhile;
    ?>
    </div></div>
  13. carldesigns
    Member
    Posted 5 years ago #

    with my problem i noticed some thing.

    if i was to click on the post name of a post the it would take be to that post as a single post that falls under toast tv, the left side of the site where the videos are.

    that would change the url in the url box at the top of the browser. when doing so i notice if i was to click on the pagination of the thumbnail gallery it would add all the url stuff of the single post from the left post where the video are..

    i hope this makes sense.

    i think i need to find a way to change the nextgen gallery code to reconize the category name of video listings that it sits in so the pagination will work.

    any suggestions?

    don't seem to be getting much help on here.. X(

  14. carldesigns
    Member
    Posted 5 years ago #

    ok..

    i've learned that the nextgen works with pagination only when posted in a page..

    is there a work around for this.

  15. carldesigns
    Member
    Posted 5 years ago #

    alex..

    short code in post under category video listings.

    videos are under a category toast tv

  16. carldesigns
    Member
    Posted 5 years ago #

    where do i find the codes that makes the output link of the pagination for the gallery.

    example on my site

    /tv/?nggpage=2

  17. Alex Rabe
    Member
    Posted 5 years ago #

    You will find them in nggfunctions.php, Indeed it's looking for some parameter in the query string, if this failed, then the pagination didn't work

  18. carldesigns
    Member
    Posted 5 years ago #

    is it the out string? under the navigation section?

  19. carldesigns
    Member
    Posted 5 years ago #

    alex.. and who every else that might be able to help.

    here is what i am thinking..

    if you look here..
    toastskateboards.com/tv/video-listings/video-listings/

    you will notice that this is the actual post for the gallery.

    and the code in the nggfunction.

    // check for page navigation
     	if ($maxElement > 0) {
    	 	if ( !is_home() || $pageid == get_the_ID() ) {
    			if ( !empty( $nggpage ) )
    				$page = (int) $nggpage;
    			else
    				 $page = 1;
    		}
    		else $page = 1;
    
    	 	$start = $offset = ( $page - 1 ) * $maxElement;
    
    	 	$total = count($picturelist);
    
    		// remove the element if we didn't start at the beginning
    		if ($start > 0 ) array_splice($picturelist, 0, $start);
    		// return the list of images we need
    		array_splice($picturelist, $maxElement);
    
    		$navigation = nggallery::create_navigation($page, $total, $maxElement);
    	} 	
    
    	if (is_array($picturelist)) {
    	$out  = '<div class="ngg-galleryoverview" id="ngg-gallery-'. $galleryID .'">';

    Think there is a way to get it to call itself from its own place instead of the toast video category listings when it sits in
    toastskatboards.com/tv/
    and
    toastskateboards.com/tv/what every post here

    ???

  20. carldesigns
    Member
    Posted 5 years ago #

    what string calls the url?

  21. carldesigns
    Member
    Posted 5 years ago #

    basically i want to manipulate the navigation in/for my gallery to read the url ilke

    toastskateboards.com/tv/video-listings/video-listings/

    toastskateboards.com/tv/video-listings/video-listings/?nggpage=2

    the "video-listings/video-listings/"

    so it will not read any other urls that conflict with other post in the page
    like

    toastskateboards.com/tv/toast-tv/a-day-in-the-life-of-nate/?nggpage=2

    which is not correct.

    what do i need to edit to do this...

  22. carldesigns
    Member
    Posted 5 years ago #

    sorry for the bump.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.