WordPress.org

Ready to get started?Download WordPress

Forums

Sortable nicer archives for WordPress 1.2 (96 posts)

  1. Anonymous
    Unregistered
    Posted 9 years ago #

    Ah, thanks! I get it now. And it handles my initial problem of having an empty page returned when first hitting the narchives.php page.
    Odd though that you don't get the same problem with Title or Date display (i.e. that all years will return null and that a specific year has to be selected to return something). I didn't change anything on the code, except for that one line now.
    On the other hand, posting to this forum seems even weirder since yesterday! first the above 2 posts are there, then they are gone (this morning) and I repost, but now the repost is gone. After that I suddenly had some weird posting of 'mine' (i.e. my name but obviously a spam posting) show up in the forum but with no content when clicked onto the post link and then I posted a question about if it is possible to steal somebodies identity here (i.e. subscribe with the exact same name as already exists). but now that posting is gone plus the spam and the 2 postings from above show up again. LOL. I think I need an overhaul. It is Memorial Day after all;-)

  2. Tek
    Member
    Posted 9 years ago #

    Hi,
    I installed this and it works wonderfuly... but I am also am having problems with it picking up my default css. My WP is installed in a sub-folder off root.
    Thanks!

  3. Beel
    Member
    Posted 9 years ago #

    just change the css call in narchives to point to wherever your css is located.
    <style type="text/css" media="screen">
    @import url( 'http://wherever/whatever.css ');
    </style>

  4. Tek
    Member
    Posted 9 years ago #

    I use the style switcher.

  5. memespy
    Member
    Posted 9 years ago #

    this is a nifty tool and easy use. Is there a way to get it to default to Ascending Order?
    thanks

  6. memespy
    Member
    Posted 9 years ago #

    Beel-
    narchives is now on this site -- (tried it out on another non-public site first) --
    mine defaults to Descending, and all my noodling attempts to make it do otherwise haven't worked.. How do you set the default?

  7. Beel
    Member
    Posted 9 years ago #

    Similar to a previous post I made regarding setting the default to the current year, you can set the default for sorting when none is passed:
    if (!($_POST["order"])) { $order = "ASC"; }

  8. Ruby Sinreich
    Member
    Posted 9 years ago #

    I have the same problem as Geotay. I get the following when I try to load narchives.php:

    Parse error: parse error, unexpected T_VARIABLE in /home/.escadasybianheaterheater/wp/opwp/narchives.php on line 43

    If I am supposed to replace that chunk of code as phoat said above, I am going to need a little more 'splaining, please.

  9. Beel
    Member
    Posted 9 years ago #

    rubyji: I couldn't tell by looking at your source what version of WP you are running. Before I make any suggestions it would be helpful to know.

  10. Tek
    Member
    Posted 9 years ago #

    =( Still not skinning correctly. At least it works though! =)

  11. Beel
    Member
    Posted 9 years ago #

    Tek: If you have narchives outside the wordpress directory (and the index page too?) then you will have to make some changes to Alex' style-switcher. I made another post yesterday with what I edited to get it to work - just don't remember what thread :-0

  12. Tek
    Member
    Posted 9 years ago #

    no, it is in the top level.
    http://www.mysite/wp/etc, etc...

  13. Tek
    Member
    Posted 9 years ago #

    Beel,
    I misread something that you wrote. It's working now! Thanks! =)

  14. Beel
    Member
    Posted 9 years ago #

    Yeah, when I read my post I figured that is what happened. If I could, I would go back and edit it for clarity.

  15. lstelie
    Member
    Posted 9 years ago #

    @phoat
    Just made the changes to the file and it works perfectly...
    For those of you running the new nightlies.. you can grab the modded version here, fixed to work with the new naming scheme of the tables...
    narchives 1.3alpha fix

    Works perfectly, thanks lot !

  16. xircom
    Member
    Posted 9 years ago #

    lovin this ! installed without a hitch ... hack in a little personal styling and i am in business. thanks!
    -- Michael

  17. Anonymous
    Unregistered
    Posted 9 years ago #

    Hi,
    I'm trying to get this work but all I get is the code displayed. Can't figure out where the fault is.
    See http://go.technologylog.net/narchives.php
    Thanks for any advice on that
    Thomas

  18. bstovold
    Member
    Posted 9 years ago #

    I'm looking to use nicer archives, but I want the URL for the monthly pages to display like thus:
    /myblog/archives/month/
    I've got clean uri's enabled, but I think I need another entry in .htaccess for the /myblog/?m=200407 style uri that the monthly header of narchives points to. Any clues?

  19. kristin
    Member
    Posted 9 years ago #

    I used the zip file that was posted but when I sort by date it only shows one month. If I click around a bit once in a while it will show two months. If I list by category it lists all posts though so I don't really see whats wrong =\

  20. Anonymous
    Unregistered
    Posted 9 years ago #

    No, just change the link output for narchives to output the link you want. I changed mine to:
    $output .= '<br/><br/> href="'.$siteurl.'/'.$blogfilename.'archives/'.$thisyear . "/". $thismonth.'/">'.$month[$thismonth].' '.$thisyear.'';

  21. bstovold
    Member
    Posted 9 years ago #

    Thanks Beel. I'll have a look at that tonight. Sounds logical enough though...

  22. MattRead
    Member
    Posted 9 years ago #

    Now I have another problem. When I sort by Category, it shows my drafts under the "Other" category.

  23. MisterX
    Member
    Posted 9 years ago #

    Hi!
    I'm using a slightly modified version of narchives @ http://www.mrxsss.com/blog/find.php
    Was wondering if there's a way to add a MONTH pulldown menu to this really cool hack?
    And also to make the initial page default to the last year (and the last month if there's a way to add that menu...)
    Thanks for any help! :)

  24. MisterX
    Member
    Posted 9 years ago #

    anyone? Thanks! (sorry for a "bump" post but these forum are getting pretty crowded... :) )

  25. Anonymous
    Unregistered
    Posted 9 years ago #

    Is there a way to add a footer to the list of posts. Instead of using [br /]'s at the end of each line, I wrapped them with [li]'s. But I'm not sure how to get a closing [/ul] tag at the end of each month's list of posts.

  26. disser
    Member
    Posted 9 years ago #

    Nice mod! However, it seems to break my stylesheet in some way that I can't fix. Please compare http://blog.disser.info (works) to http://blog.disser.info/narchives.php (doesn't work). Any ideas?

  27. disser
    Member
    Posted 9 years ago #

    Never mind... figured it out.

  28. jdunavin
    Member
    Posted 9 years ago #

    I too would like to know how to include a dropdown box for months.
    Great plug-in, though.

  29. jdunavin
    Member
    Posted 9 years ago #

    Sorry for the repeated posts, but I think I've got one started.
    function show_month_select() {
    global $wpdb, $tableposts, $y;
    $months = $wpdb->get_col("SELECT DISTINCT MONTH(post_date) as month FROM $tableposts ORDER BY month ASC");
    $output .= '<option value="">All Months</option>'.NL;
    foreach($months as $mo) { $output .= '<option value="'.$mo.'"';
    if ($mo == $y) {
    $output .= ' selected="selected"';
    }
    $output .= '>'.$mo.'</option>';
    }
    $output = '<select name="m">'.NL.$output.'</select>'.NL;
    echo $output;
    }

    It displays the drop-down box with the numbers of the months, but doesn't do anything. I would like it to display the month names, and actually do something. :)
    Here's a test if you're interested.

  30. smithw
    Member
    Posted 9 years ago #

    can anyone help me with this error -
    Fatal error: Call to undefined function: start_b2() in /home/httpd/vhosts/dcealumni.com/subdomains/news/httpdocs/archives.php on line 145
    Thank You

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.