Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter jbiesnecker

    (@jbiesnecker)

    Nevermind, 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??

    Hacking 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

    Thread Starter jbiesnecker

    (@jbiesnecker)

    Anyone else having this problem?

    There 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

    Thread Starter jbiesnecker

    (@jbiesnecker)

    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).

    Somewhere 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).

    Rehan,

    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 Life
    Thread Starter jbiesnecker

    (@jbiesnecker)

    Merfnet, DianeV, thanks for the feedback.

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