WordPress.org

Ready to get started?Download WordPress

Forums

Simple master archive? (12 posts)

  1. Laughinglizard
    Member
    Posted 10 years ago #

    Do my master archives look right to you?
    http://dinki.mine.nu/weblog/narchives.php
    If it does, please let me know and I will either post the source or send you the file.
    Peace

  2. webicus
    Member
    Posted 10 years ago #

    @LL
    Nicely done, but two things went wrong(?):
    I'm wondering about the order of your entries
    »-----› ... L M N O P Q R S T U V W Y Z L S ?!
    Selecting another author than Mark (or All A.) results in »pretty typo stuff«...

  3. Laughinglizard
    Member
    Posted 10 years ago #

    I fixed it to accept cleaner urls. You dont see "permalinks" on my blog because I do not use permalinks. If you like the way it looks, you can download the file here:
    http://dinki.mine.nu/weblog/b2-img/narchives.phps
    Copy this file to the root of your blog, rename it to narchives.php (or something equivalent with a .php at the end instead of the .phps) and then point your browser to it.

  4. Bonnie
    Member
    Posted 10 years ago #

    Thanks so much! :) I'm trying it out now, fingers crossed that it'll work. I appreciate your help. :)

  5. Laughinglizard
    Member
    Posted 10 years ago #

    @webicus: The problem with the alphabetical sorting is my blog goofing off (and some laziness on my part). Those posts have titles which are in lower case and thus show up at the end when sorted by link name. You could add something like
    $new_string = msql_regcase($string); to wp-blog-header.php which would do a case insensitive order_by.
    As for the authors, only mark has any posts, the others have none. The new versions of WordPress (1.0.1+ I think) has nice checks for empty authors and post requests. My blog simply errors out (with extreme verbosity) when it finds no posts. If you notice, the errors are coming from wp-blog-header.php.
    PS: A disclaimer. I do not claim all of this to be my code. I have peiced this together from stuff done by CodeGurl, MtDew and others. So thanks to all of you. :)

  6. Anavy
    Member
    Posted 10 years ago #

    LaughingLizard: I've just tried your "narchives" and liked it.
    One problem: it shows ONLY 12 rows of data - as is my 'posts_per_page' value. The initial value of this var is set in your hack as -1 but it doesn't matter. I tried to change this value but, again, no change.
    Any idea?

  7. Laughinglizard
    Member
    Posted 10 years ago #

    @Anavy: It really should work with the posts_per_page setting in the hack file. I have tested it with 1.0, 1.0.1 and 1.1 Alpha. Wha version are you using? Is there anything else different about your blog (such as other hacks) ?

  8. Anavy
    Member
    Posted 10 years ago #

    LaughingLizard: I'm using Ver 1.01 and wp-grins is the only hack installed for now.
    funny, when I pass "?posts_per_page=-1" in the URL box, it works fine, but it ignores this var that is embedded in the code... The same happens if I include the hack file or run it as a standalone.

  9. Anavy
    Member
    Posted 10 years ago #

    OK, I had a problem - not noticing that "require_once('wp-blog-header.php');" was loaded BEFORE the hack file, so posts_per_page was already processed... All is fine now, sorry for the trouble (:

  10. Laughinglizard
    Member
    Posted 10 years ago #

    :) Glad it worked out for you!

  11. Daisyhead
    Member
    Posted 9 years ago #

    Any way to add "month" to the sort by along with "Date" "Title" and "Category" so you can list the posts by month along with the year??
    Thanks,
    Daisyhead

  12. Daisyhead
    Member
    Posted 9 years ago #

    Ack. For some reason if I choose the "all years" option it's not listing all the entries. Just the first month, or category, etc. Any ideas on why?
    -Daisyhead

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.