jbickers
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Logging of administrator activity?And I didn’t mean to sound upset – I’m not, just trying to be as clear as possible.
Forum: Fixing WordPress
In reply to: Logging of administrator activity?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.
Forum: Fixing WordPress
In reply to: Logging of administrator activity?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?
Forum: Fixing WordPress
In reply to: Logging of administrator activity?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.
Forum: Themes and Templates
In reply to: Why is is_home not working?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.
Forum: Themes and Templates
In reply to: Why is is_home not working?wpcast, no number is empty on the homepage but populated on non-homepages. The homepage returns this:
0 :
1 : index.phpNon-homepage return this:
0 :
1 : CMS
2 : index.php?p=27309Any ideas?
Forum: Themes and Templates
In reply to: Why is is_home not working?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.
Forum: Themes and Templates
In reply to: Why is is_home not working?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.
Forum: Themes and Templates
In reply to: Why is is_home not working?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.
??
Forum: Themes and Templates
In reply to: Why is is_home not working?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?
Forum: Fixing WordPress
In reply to: category_description not returning any dataWe’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.
Forum: Fixing WordPress
In reply to: category_description not returning any dataNope, 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 …
Forum: Fixing WordPress
In reply to: category_description not returning any dataOK, 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?
Forum: Fixing WordPress
In reply to: category_description not returning any dataThanks Otto … I don’t suppose there’s a snippet of code somewhere that does what you’re suggesting?
Forum: Plugins
In reply to: A solid, reliable e-commerce plugin?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.).