WordPress.org

Support

Support » How-To and Troubleshooting » Sortable Nicer Archives for 1.3

Sortable Nicer Archives for 1.3

Viewing 15 replies - 1 through 15 (of 34 total)
  • Cool. I’ll use it. 🙂

    I implemented it on my comp and it works great. Thanks for the script. Many will find it usefull.

    Hello,
    Very cool, thanks a lot podz

    Just one thing podz :
    Its works like a charm with the default install, but I fail to make it works with a template, in fact I replicated the default theme and template in a /theme directory for my tests, it works well but narchives doesn’t seem to find the them directory.
    I added a require wp-blog-header for the variable $wp_template_dir, it works but I have only one month displayed..
    Here is what I did (this is obviously wrong as it doesn’t work):
    <?php require('wp-config.php'); ?>
    <?php require_once('wp-blog-header.php');?>
    <?php $single = 1; $siteurl = get_settings('siteurl'); ?>
    <?php include ($wp_template_dir.'/header.php'); ?>
    <?php
    $posts_per_page = '-1';

    So what we need then is two versions ?
    One for a themed install, one for ‘not a theme’ ?
    I can’t ever see myself using Themes so the version I posted works fine, but could they be combined at all ? Bear in mind you could write all I know about PHP with a marker pen on the full stop at the end of this sentence.
    🙂

    Root and I are actually working on the archive section of our Chameleon released theme, and this seems like just the sort of thing we had in mind, except I’m having a bit of a hard time making it work right now (haven’t checked with Root yet to see if he’s cracked, probably has but still it’ll be a good link to have handy when people ask how it works).
    I get the following warning:
    Warning: main(wp-config.php): failed to open stream: No such file or directory in /home/khaled/public_html/manji/wp-content/themes/Chameleon/archives.php on line 1
    Fatal error: main(): Failed opening required ‘wp-config.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/khaled/public_html/manji/wp-content/themes/Chameleon/archives.php on line 1
    any ideas?

    @podz
    So what we need then is two versions ?
    One for a themed install, one for ‘not a theme’ ?

    Probably not, just add a comment in the file stating to remplace the link to wp-header.php by a link with the full unix path to the theme’s header.php (same for footer) and you’re done
    This :
    http://blog.saint-elie.com/archivesnotes.php
    Is your code on a latest CVS alpha4 with a theme (I removed the form to lower db access) and it works perfectly

    Yeah I’m still having some issues actually. Doesn’t seem to getting past the very first line. I’m using alpha 4.
    Just to confirm what I’m doing. Take the code kindly given by podz and add make it into a php file. Stick that php file into the theme area, within the folder where the rest of the php files are (index, footer, header, sidebar etc).
    Now this file can be edited from the theme manager as well. I then tweak the include:
    ‘<?php include (‘public_html/wp-content/themes/chameleon/header.php’); ?>’
    Do I need to edit the above line of code as well?

    @khaled
    Yeah I’m still having some issues actually. Doesn’t seem to getting past the very first line. I’m using alpha 4.
    I’m using alpha 4 too
    Just to confirm what I’m doing. Take the code kindly given by podz and add make it into a php file.
    Ok
    Stick that php file into the theme area, within the folder where the rest of the php files are (index, footer, header, sidebar etc).
    No, put it in the main wordpress folder .
    My file is named archivesnotes.php, so the url is
    http://www.myblog.com/archivesnotes.php
    Now this file can be edited from the theme manager as well. I then tweak the include:
    ‘<?php include (‘public_html/wp-content/themes/chameleon/header.php’); ?>’
    Do I need to edit the above line of code as well?

    I just edited the path to header.php and footer.php to the full unix path to my theme folder (as stated in my previous message).
    Hope this helps
    Luc

    To get nicer archives to work copy this page into your WP root directory as narchives.php – then call it using http://yourblog/narchives.php:
    This way it changes with your themes.

    Any idea when i used the codes listed by podz above, i only get one archive output?

    Here: http://www.alvinwoon.com/blog/index.php?page_id=151

    Where’s the rest, i wonder?

    Pls advise. Thanks

    Using podz’ narchives2.php code (off the google cache, his site seems down right now), a couple narchives.php bugs are fixed: no more future posts visible in the categories, no more double posts in the categories, and ASC works now.

    But like puppy18 says, there’s a new bug. (Note, I’ve used the script in a WP1.2.2 blog, with all that entails in changes in header (and footer) includes.)

    Now, only a few entries show up if Date or Title are selected with “All Years” selected.
    If a single year is selected all posts for that year are shown.

    The bug can be admired, in action, here: Narchives v.2 in a WP1.2.2 blog. The script defaults to categories, ascending.
    There’s no problem with All Years if Category is selected.

    Any hints?

    I’m noting a few bugs – my guess is that core information has changed location / name / variable so this narchives code will remain pretty dead until the final WP code is finalised and released.

    And to “When’s that ?” which someone will post underneath – “When it’s ready” 🙂

    When’s that?

    Just noted another bug in the xth version: only sorting by category gives me all my posts to appear in the list.

    Is there actually any license on this? I think it would be useful to form this into a plugin for 1.5 and/or merge this with Coffee2code’s Customizable Post Listings. I am considering doing that myself, but I’d like to make sure about the license status.

Viewing 15 replies - 1 through 15 (of 34 total)
  • The topic ‘Sortable Nicer Archives for 1.3’ is closed to new replies.
Skip to toolbar