Not signed in (Sign In)

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthorcapalbio
    • CommentTimeDec 20th 2006 edited
     
    Hi there - this is a fairly minor issue, but wanted to see if it's something that I didn't set up correctly...

    Thanks for adding the "Older entries" and "Newer entries" links to the post pages - very helpful.

    I've noticed that it allows me to click on an "Older entries" button even if there aren't any older entries left, sending me to an Error 404 page. Just wanted to see if there's a way for that "Older entries" button to go away when there aren't any older entries. It seems to work fine with the "Newer entries" button.

    Thanks again for your help!
  1.  

    Yes, this is an issue we’re aware of. To be perfectly honest, right now we don’t know how to fix it: one of the odd things about it is that it doesn’t seem to be an issue for the front page, only for archive pages.

    • CommentAuthoribb.ro
    • CommentTimeJan 4th 2007
     
    How about this plugin http://elektroelch.de/hacks/wp/pagebar/
    I've I've tried to instal it but wit no goodluck.
  2.  
    It's not compatible with Tarski. We do support multiple pages and the navigation code is there so you don't actually need that plugin; if you want to change the look, just use a custom stylesheet.
    • CommentAuthorliggitt
    • CommentTimeJun 6th 2007 edited
     

    The issue comes up because of the query in the loop.php file (lines 172-176 in Tarski 1.4). That code executes query_posts("paged=$paged"); in order to force is_paged() function to return true. This works great for the front page. However, if not all posts are being shown (when browsing a specific year, month, or category in the archives), this query can make wordpress think there are more posts than there really are. This makes the “Older entries” link show up.

    The only reason for the additional query in loop.php is to make is_paged() return true. A simpler way to do this (at least in Wordpress 2.2), is to replace lines 172-176 with:
    global $wp_query; $wp_query->is_paged = true;

    This triggers the paged action, while preserving all the filtering attributes of the current view. Would it be possible to get this change into the next version of Tarski?

    • CommentAuthorliggitt
    • CommentTimeJun 6th 2007 edited
     

    Created an issue in the SVN repository
    http://code.google.com/p/tarski/issues/detail?id=26&can=2

  3.  

    Wow, thanks liggitt, that’s wonderful. This bug has been irritating me ever since we added the page links, but unfortunately my PHP skills aren’t up to much and Chris never had a time to find a fix. Your help’s really appreciated; I’ll tweak the code and put the fix in trunk in the next day or so, hopefully tomorrow. We’re thinking about releasing a 1.4.1 version with the fixes and improvements we’ve made in trunk since 1.4 so maybe the fixing of this bug would be a good time to do that. Thanks again!

  4.  

    Ok, it’s fixed in trunk (r29). Thanks again.

    • CommentAuthorsagronek
    • CommentTimeNov 17th 2007
     
    Hey! What happened to your Error 404 page with Bagdad Bob! I wanted to copy it (copied over mine when I uploaded the tarski update). Can you share the php page for that? Thanks!
  5.  

    I think we lost it when I moved things like that to a plugin. I’ll see if I can dig it up.