WordPress.org

Ready to get started?Download WordPress

Forums

WordPress 1.5 Stats plugin and emoticons (5 posts)

  1. BebiR0x0rs
    Member
    Posted 9 years ago #

    I'm using the wp-stats plugin from GamerZ (my slightly modded version here) and in the "view all comments by user" page it shows the bbcode for the smilies instead of showing the emoticons themselves. How can I get it to parse the smilies?

    While I'm at it, is there a way I can make the title in the titlebar dynamic according to which section you're viewing, like My Blog » Stats or My Blog » Username's Comments, etc.?

    Thanks.

  2. While I'm at it, is there a way I can make the title in the titlebar dynamic according to which section you're viewing, like My Blog » Stats or My Blog » Username's Comments, etc.?

    http://codex.wordpress.org/Template_Tags/wp_title

    Or perhaps something a bit more complex. Here's two examples I use on my sites.

    Viper007Bond.com:

    <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> <?php wp_title(); ?></title>

    FinalGear.com:

    <title>FinalGear.com<?php
    echo " :: News";
    wp_title(' :: ');
    if (is_search()) {
    echo " :: Search Results For &quot;$s&quot;";
    if ($paged && $paged > 1) echo " :: Page $paged";
    } elseif ($paged && $paged > 1) echo " :: Page $paged";
    ?></title>

    The above in action:

    http://www.finalgear.com/news/2005/08/11/forum-fixed/
    http://www.finalgear.com/category/top-gear/
    http://www.finalgear.com/category/top-gear/page/2/
    http://www.finalgear.com/news/2005/08/
    http://www.finalgear.com/index.php?s=test

  3. BebiR0x0rs
    Member
    Posted 9 years ago #

    Thanks for that...but it all looks so complicated and foreign to me, I don't know a thing about php. >_< I'm not even sure where I'm supposed to put it, let alone trying to configure it. Is it just supposed to go somewhere near the top of the php file?

  4. Wherever you have your <title> tags. If you are using themes, it'd be /wp-content/themes/your-theme/header.php.

    bloginfo('name') spits out the name of your blog
    wp_title() spits out the title of the post, page, etc.

    So if you were to do this:

    <title><?php bloginfo('name'); ?><?php wp_title('--'); ?></title>

    You'd get My Blog--Title of Post when viewing a single post.

    The <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> part on my blog displays " » Blog Archive " if you are viewing a single post.

    Follow?

  5. BebiR0x0rs
    Member
    Posted 9 years ago #

    Oh it already has that setup for the theme and stuff, I want to get it to work for the wp-stats.php plugin that sits in the root blog dir.

    http://www.bebi.r0x0rs.com/blog/wp-stats.php

    Right now all it has is "Steph's Blog" at the top, but I want it to say "Steph's Blog » Stats" when viewing the main stats page, and "Steph's Blog » Username's Comments" when viewing a user's comments (http://www.bebi.r0x0rs.com/blog/wp-stats.php?author=Steph). As I can see it in the file (that I linked in my first post) I didn't see any kind of <title> setup.

Topic Closed

This topic has been closed to new replies.

About this Topic