Skip to:
Content
Pages
Categories
Search
Top
Bottom

adding meta tags? or SEO option?

  • im a phpbb user and im eally digging this bbpress software. figured i would give it a shot on a new forum i started.

    is there an SEO modification or even a way to add some meta tags to the header of the pages so a search engine bot can gather up some info or even pull from the tags? or is this already included into the software?

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

  • _ck_
    Participant

    @_ck_

    Make this into a mini-plugin and it will add the tags as meta on topic pages:

    function bb_tweaks_tags_as_meta_keywords() {
    global $tags;
    if (!empty($tags)) {
    $keywords=""; foreach ($tags as $t) {$keywords.=$t->raw_tag.', ';}
    echo "n".'<meta NAME="keywords" CONTENT="'.trim($keywords,", ").'">'."n";
    }
    }
    add_action('bb_head', 'bb_tweaks_tags_as_meta_keywords',8);

    going to have to read up to find out how to do this. haha.

    bbSEO Tools is great but it messes up cyrillic characters in the description for topic pages. I peeked into the code and tried replacing line 53:

    return htmlentities($snippet, ENT_QUOTES);

    with this:

    return wp_specialchars($snippet, ENT_QUOTES);

    Seems to be fine now :)

    The plugin admin page is a bit messy – could use some more precise labels and explanations.

    IDEA: Could the function for pulling out the description for topic pages be enhanced so that it strips bbCode and html tags from the output? They take up character space and look awful in search results.

    I guess it’s a matter of writing some nifty RegEx but my knowledge is not sufficient for this.

    Thanks and Cheers!

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar