Forum Replies Created

Viewing 15 replies - 16 through 30 (of 66 total)
  • Thread Starter jbickers

    (@jbickers)

    And I didn’t mean to sound upset – I’m not, just trying to be as clear as possible.

    Thread Starter jbickers

    (@jbickers)

    Part of your job in a technical role is to provide advice as to how best to proceed. If it were me, I’d pass on what I told you, and if they don’t like it, then they can stop asking you who keeps breaking stuff.

    First, thanks for the bump.

    Also, there’s the very real possibility that a legitimate admin did this by mistake. Mistakes happen (OK, maybe not this particular mistake), and going forward it would be nice to be able to monitor dashboard activity.

    Thread Starter jbickers

    (@jbickers)

    I understand… and now I know precisely where the problem is.
    You think giving people lower permissions is punishment.

    I think it’s accident prevention.

    Look, I know you’re trying to be helpful, but you’re assuming that this is a decision that’s mine to make. It’s an organization where the powers that be want admin access because they’re the bosses. I don’t get to make that decision.

    What I do get is the phone call saying “Hey, what happened?”

    So, any thoughts on tracking down what happened?

    Thread Starter jbickers

    (@jbickers)

    Thanks Ivovic … I don’t disagree with anything you said. But like I said above, I’m pretty sure it was an accident, and it’s likely the person didn’t even realize what they did.

    Thread Starter jbickers

    (@jbickers)

    Nevermind, I figured out a solution – just a brute force comparison to the URL:

    <?php
    
    $url_test = $_SERVER['REQUEST_URI'];
    
    if($url_test == "/index.php" || $url_test == "/CMS/index.php"){
    	include('tiles_front.inc.php');
    } else {
    	include('tiles_default.inc.php');
    }	
    
    ?>

    While testing, just echo the value of $url_test in your sidebar, then you can make an endless series of elseifs to create separate sidebars for any specific page or post, including the front page.

    Thread Starter jbickers

    (@jbickers)

    wpcast, no number is empty on the homepage but populated on non-homepages. The homepage returns this:

    0 :
    1 : index.php

    Non-homepage return this:

    0 :
    1 : CMS
    2 : index.php?p=27309

    Any ideas?

    Thread Starter jbickers

    (@jbickers)

    wpcast, that’s now showing the homepage include on every page, not just the home page …

    GRR! Thanks so much for helping with this … I’m really grateful.

    Thread Starter jbickers

    (@jbickers)

    Doh, yes, right … but even with &&, it’s returning tiles_front on every page, including the front page. So something else is wrong in there, too.

    Thread Starter jbickers

    (@jbickers)

    I feel like that’s getting close, but now it’s recognizing every page as the front page. Our WP install exists within a subdirectory called CMS, so the home page is http://www.mydomain.com/CMS. When I test for if $url_vars[2} == CMS, it returns true no matter what page I’m on.

    I’ve tried this:

    <?php
    
    $url_vars = explode("/",$_SERVER['REQUEST_URI']);
    
    if($url_vars[2] == "/CMS" || $url_vars[3] == ""){
    	include('tiles_front.inc.php');
    } else {
    	include('tiles_default.inc.php');
    }	
    
    ?>

    but that fails too, returning the tiles_front include for every page and post on the site.

    ??

    Thread Starter jbickers

    (@jbickers)

    And what did you find when reading the documentation about the conditional tags?

    I find that the exact tag I need doesn’t exist until version 2.5, and our site uses 2.2.2 for a number of very specific reasons.

    Any other way to positively identify the default page?

    Thread Starter jbickers

    (@jbickers)

    We’re running 2.2.2 for a very specific reason: we had to hack the get_calendar component (via a plugin, not modifying core code) so that it would only display posts from a single category. Couldn’t figure out any other way to do it … and as I understand it, there were fundamental changes in the way 2.3 handles categories that would make the calendar inoperable.

    Thread Starter jbickers

    (@jbickers)

    Nope, tried that too, still nothing. Double- and triple-checked: the categories definitely have descriptions, and there’s a test post in each one. The colon and the post title are appearing – just the category description is not.

    Grrrr …

    Thread Starter jbickers

    (@jbickers)

    OK, I’m missing something obvious here … here’s my code, which is returning none of the category descriptions:

    <ul>
    <?php $myquery = $wp_query; ?>
    <?php query_posts('cat=6,8,10,12,14&showposts=5');
    while (have_posts()) : the_post() ?>
    <li>
    <?php $cats = get_the_category();
    foreach ($cats as $cat) {echo $cat->description; } ?>: <a href="<?php the_permalink() ?>" title="<?php _e(''); ?> <?php the_title(); ?>"><?php the_title() ?></a></li>
    <?php endwhile; ?>
    </ul>

    Any thoughts?

    Thread Starter jbickers

    (@jbickers)

    Thanks Otto … I don’t suppose there’s a snippet of code somewhere that does what you’re suggesting?

    Thread Starter jbickers

    (@jbickers)

    Just the basics – products, shopping cart, etc. Obviously advanced features like user reviews/ratings would be nice.

    I’m familiar with CubeCart, so I guess that’s a feature set similar to what I’d like. I just wish such a thing existed that was integrated into WP (single administration login, tighter template control, etc.).

Viewing 15 replies - 16 through 30 (of 66 total)