Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter monkeywrench

    (@monkeywrench)

    I thought about trying to use different style sheets, the way you did, but then ran into the same question you did, of how to load them. Alas, I was less motivated than you and so gave up on trying to solve the problem. Your solution is cool, though.

    The change that I need is very simple, I just want to change the absolute position of a particular layer. Under 1.2, I used an If statement to determine when I was looking at a single entry, then checked the entry’s category ID. If it was category 26, then I defined the position of the layer different from what I did on all the other pages.

    Here’s my site:

    https://www.completedigitalphotography.com

    That bar on the right that includes the ads, I need to move of it when looking at any entry from the Gallery category, because I need the extra width to display some images. As I said, defining a category style is very simple, but it’s only working for the display of a list of a particular category. So, if you hit the Gallery button, the alternate style works fine. However, if you click through to one of the individual entries, it goes back to the default.

    This was very simple to do, I just duped my base index.php file, renamed it category-26.php, and edited it to use different absolute positioning for the layer in question.

    Thread Starter monkeywrench

    (@monkeywrench)

    Rats. That must be the problem. Looks like that means I’m gonna have to re-structure some things from the way the loop worked in 1.2.

    Thread Starter monkeywrench

    (@monkeywrench)

    whoops, sorry, my mistake. I’m looking at too many versions of things. the_category_id was deprecated, so I replaced it a while ago with

    <?php foreach((get_the_category()) as $cat) { echo $cat->category_id . ‘ ‘; } ?>

    Now I’ve gone stupid and forgotten what was depracted and what works and what doesn’t.

    Anyway, after the upgrade to 1.5, that line now generates this error:

    Invalid argument supplied for foreach()

    So that’s actually the problem that I need to fix.

    Got it working, and this code does seem to work fine in systems with subcategories.

    No, it just started behaving differently. The only thing that I can think of that changed is that I installed two traffic tracking packagest, StatTraq and short track (or something like that). I’ve completely removed all of short track and it’s table from the db. StatTraq is deactivated, but the plug-in is still installed and its table is still in the database. It doesn’t ask you to modify any pages, so there’s no extra code.

    Rats, I was afraid of that. What’s weird is that it only affects new posts. Things that were in there before are fine. I’ve been poking around in the DB with phpmyaccess, and there’s nothing obviously amiss. The new posts look just fine.

    Version 1.2.2

    This is really weird. I’ve been using the code posted above

    <? foreach(get_the_category() as $cat){ print($cat->category_id);}; ?>

    And it’s working great on all of the posts that were already in my system. On anything new that I post, though, it sees the post as category 27, no matter what it’s actually tagged as. Category 27 is a sub category, but I have several of those in my setup.

    What can I do?

    Thread Starter monkeywrench

    (@monkeywrench)

    Never mind, got it fixed.

    Forum: Plugins
    In reply to: Traffic Stats plug-ins
    Thread Starter monkeywrench

    (@monkeywrench)

    Aha! I didn’t remember sticking any code in when I installed D-Stats, but sure enough, there it is. So maybe that’s it. Perhaps it’s just not tracking as much stuff. The good news, of course, is that it turns out I’ve got more traffic than I realized. Maybe.

    Forum: Fixing WordPress
    In reply to: Database trouble
    Thread Starter monkeywrench

    (@monkeywrench)

    No, haven’t upgraded. However, a couple of weeks ago I ran into a problem trying to use a category_id tag of some kind. In searching around the boards here, I found that that feature is buggy in the version I’m using (1.2) and that it had been fixed in some new version. Sorry this is so vague, but I can’t remember exactly what I did. Anyway, I found reference to upgrading some particular file and did that. Everything’s been running fine. Perhaps I need to do a fresh, full upgrade of some kind?
    And are there instructions around for upgrading?

Viewing 11 replies - 1 through 11 (of 11 total)