jbiesnecker
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: UTF-8 characters showing up as garbage in databaseNevermind, I just discovered the
define('DB_CHARSET', 'utf8');thing, and adding it to wp-config.php solved my problem. Why is this not the default setting??Forum: Plugins
In reply to: Modify “Popularity Contest” pluginHacking on the plugin code isn’t a particularly good idea (for instance, when you upgrade you have to port all of your changes to the new version).
Popularity Contest supports filters, so you can define behavior like that outside of the plugin. To get rid of pages in almost all functions (which is, I think the behavior most people want) you can add:
add_filter('posts_where', 'limit_pc_posts', 10, 0); function limit_pc_posts() { return " AND post_type = 'post' "; }somewhere in your template (I normally include a custom PHP file in all of my themes so I can add/remove things like this.
HTH
Forum: Fixing WordPress
In reply to: New categories/tags not showing up on future dated postsAnyone else having this problem?
Forum: Fixing WordPress
In reply to: Style most recent post differentlyThere are probably many ways to do this, but this is how I would do it.
Outside the loop, set a PHP variable like this:
$is_first_post = 1;Then, in a div wrapping your post block, I’d have something like this:
<div class="post <? if ($is_first_post) { echo "first_post"; } ?>">Finally, at the bottom of the loop (but still inside!), a statement like this:
$is_first_post = 0;That would add the “first_post” class to the div on the first loop through (since the variable is set as 1 (you could use ‘true’, too)), but then after the loop cycles once the variable is set to 0 and never evaluates as true again.
HTH
Forum: Your WordPress
In reply to: My Chinese Life (redesign)Philip, I can send you the theme I use for Stupid Little Things, but not the icons as they’re not mine to give. Got them from IconBuffet (but they’re really cheap–$20 if memory serves).
Forum: Your WordPress
In reply to: Please Review My SiteSomewhere in your CSS there is a rule (probably in a ‘p’ tag ruleset somewhere that says
text-align:justify;
You want to either just delete it, comment it out, or change it to
text-align:left;
That will get rid of the justified text (everywhere, though, not just around photos).
Forum: Your WordPress
In reply to: Please Review My SiteRehan,
Your site looks excellent, and I really like the way that your comments and extended entries are integrated into the front page.
My only criticism (and this is a mild one) is the justified text, particularly when you’ve got photos floated into the text stream, looks a bit spacey, which has always been one of my pet peeves (when will Firefox and IE introduce auto-hyphenation?!). Otherwise, good job and keep up the good (and unique) work!
Forum: Your WordPress
In reply to: My Chinese LifeMerfnet, DianeV, thanks for the feedback.