• I’ve been working on a new archive structure (similar to these) and would like some feedback and testing help.
    Things to note:
    1) This requires the use of the new permalinks structure and mod_rewrite, if there is a way to do it without these two, don’t ask me. ??
    2) Single day and single post archives still use index.php.
    3) All other archives (including category archives) use a file I’ve created.
    4 The mod_rewrite rules have been modified to allow for 2 and 3 above.
    5) If a date or category isn’t passed to the archives, a list of categories and archives are displayed.
    6) You can click on months and years in the archives to drill down to another archive.
    7) Clicking on a day number, post title, or comment link will send you to index.php and display the appropriate post(s).
    That’s all I can think of for right now. I need to setup a test blog with the default WP install to test this out and make some modifications to the CSS. Once everything is working well, I’ll release the code.
    All feedback is welcome!
    https://mtdewvirus.com/archives/

Viewing 15 replies - 46 through 60 (of 67 total)
  • Wait, so my arch.php isn’t working so great after all. Like /archives/, when I click a link (category or month), a page with all the grouped entries that has no CSS properties or images show up…

    The files are looking for your css file in the archives directory. Change the link to your css file to reflect the full url and you should be fine I would think.

    Thread Starter Nick Momrik

    (@mtdewvirus)

    Exactly what mamabean said…
    Change href=”blogcss.css” to href=”/blogcss.css”

    I can’t get the archives to show up as linked titles, just full posts. I’ve changed my permalinks in my .htaccess file, still no luck.
    Any ideas? https://www.3mote.com
    Ben

    Thread Starter Nick Momrik

    (@mtdewvirus)

    Ben,
    It doesn’t look like you’ve modified your Rewrite rules because https://www.3mote.com/arch.php?m=2004 works just fine.

    Interesting…
    Where should the .htaccess file be? I have it up there, and it’s in the server root.
    I’ll keep looking.

    Thread Starter Nick Momrik

    (@mtdewvirus)

    Care to share what you are using for the rules in .htaccess? I might be able to spot something quickly.

    This mine, and it work – may help ?
    RewriteEngine On
    RewriteBase /T2/
    RewriteRule ^archives/category/?([0-9a-z-]+)?/? /T2/arch.php?category_name=$1 [QSA]
    RewriteRule ^archives/?([0-9]{4})?/?([0-9]{1,2})?/?$ /T2/arch.php?year=$1&monthnum=$2 [QSA]
    RewriteRule ^archives/([0-9]{4})?/?([0-9]{1,2})?/?([0-9]{1,2})?/?([0-9a-z-]+)?/?([0-9]+)?/?$ /T2/index.php?year=$1&monthnum=$2&day=$3&name=$4&page=$5 [QSA]

    Thread Starter Nick Momrik

    (@mtdewvirus)

    benrad,
    You aren’t using arch.php in any of the rules, so you must have skipped that step in the instructions. If you replace your last two rules with podz’s last 3 and then simply remove the “/T2” from them, you should be golden.

    Thread Starter Nick Momrik

    (@mtdewvirus)

    A lot of people seem to have problems with the step of the instructions for the rewrite rules. Anyone have a suggestion for improving that?

    I don’t suppose if I e-mailed someone who can do this my wp and control panel passwords you’d just set this up for me as I am code illiterate????? I very much want to get the months and months typical archive structure replaced with this hack that goes with a separate page. However, I’m afraid of bringing down my whole blog!
    No takers????!!! Damn.

    Thread Starter Nick Momrik

    (@mtdewvirus)

    Myke,
    You won’t do anything to your blog, since you are creating a new file. Follow the instructions for creating arch.php and then if you need help with the rewrite rules, let me know. That is the part where everyone seems to get stuck.

    I shall commence to trying. The only thing I don’t like about WP currently is the archive structure. If I could get this to work, it would be perfect. Hey, I am running WP .72. Will the hack still work? Also, if everyone does get stuck with the rewrite rules, then I am sure to do so also as I have no idea how to modify them!!!! HA … I’ll give it a go!

    Thread Starter Nick Momrik

    (@mtdewvirus)

    No, it will not work with .72
    You need the new permalink structure that was introduced in 1.0 and beyond.
    If you want these archives, you will need to upgrade to latest version.

    Ahh … i noticed that when I went in to the options menu and didn’t find the hacks option that needs to be set to true. Ok. one more quick question. What do I need to do to upgrade to 1.0 without losing current posts/archives?

Viewing 15 replies - 46 through 60 (of 67 total)
  • The topic ‘New Archive Structure’ is closed to new replies.