Results 1 to 7 of 7

Dynamic Meta Description Tags for the Blog Urls

This is a discussion on Dynamic Meta Description Tags for the Blog Urls within the General Discussion forums, part of the vBSEO SEO Plugin category; Replace the 'META DESCRIPTION' Content? option is disabled. I've been using this option as a manual edit in the headerinclude ...

  1. #1
    Senior Member NeutralizeR's Avatar
    Real Name
    Mavi KARANLIK
    Join Date
    Feb 2006
    Location
    Ankara/TÜRKİYE
    Posts
    311
    Liked
    1 times

    Dynamic Meta Description Tags for the Blog Urls

    Replace the 'META DESCRIPTION' Content? option is disabled. I've been using this option as a manual edit in the headerinclude template.

    Example:
    HTML Code:
    <if condition="$show['threadinfo']">
    <meta name="keywords" content="something" />
    <meta name="description" content="something: <!--VBSEO_RR_1-->" />
    <else />
    What's the if conditional for the blog entries (messages)?

    PHP Code:
    if(VBSEO_REWRITE_META_DESCRIPTION && $desc_content $GLOBALS['blog']['message'])
    {
    $desc_content preg_replace('#(<.*?>)+#s'' '$desc_content);
    $vbseo_fp $desc_content trim($desc_content);
    }
    if(
    VBSEO_REWRITE_META_KEYWORDS && ($tbits $GLOBALS['blog']['title']))
    {
    if((
    VBSEO_FILTER_STOPWORDS != 0) && VBSEO_STOPWORDS)
    {
    $tbits preg_replace('#\b('.VBSEO_STOPWORDS.')\b#is'''$tbits);
    }
    preg_match_all('#([a-zA-Z0-9_\x80-\xff]+)#s'$tbits$ptext);
    $kw_content implode(','$ptext[1]);
    }
    break; 
    I found the related code in functions_vbseo.php file but couldn't find the working one...

  2. #2
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,741
    Liked
    168 times
    vBulletin doesn't have a special condition for blogs in default headinclude template.

  3. #3
    Senior Member NeutralizeR's Avatar
    Real Name
    Mavi KARANLIK
    Join Date
    Feb 2006
    Location
    Ankara/TÜRKİYE
    Posts
    311
    Liked
    1 times
    Ok, thanks.

    Does it work if i copy the codes below outside of if(VBSEO_REWRITE_META_DESCRIPTION||VBSEO_REWRITE_M ETA_KEYWORDS) ?

    Example:
    PHP Code:
    //hack
    switch(THIS_SCRIPT)
    {
    case 
    'blog':
    $kw_content $desc_content '';
    $desc_content preg_replace('#(<.*?>)+#s'' '$desc_content);
    $vbseo_fp $desc_content trim($desc_content);
    }
    if(
    VBSEO_REWRITE_META_KEYWORDS && ($tbits $GLOBALS['blog']['title']))
    {
    if((
    VBSEO_FILTER_STOPWORDS != 0) && VBSEO_STOPWORDS)
    {
    $tbits preg_replace('#\b('.VBSEO_STOPWORDS.')\b#is'''$tbits);
    }
    preg_match_all('#([a-zA-Z0-9_\x80-\xff]+)#s'$tbits$ptext);
    $kw_content implode(','$ptext[1]);
    break;
    //hack
    if(VBSEO_REWRITE_META_DESCRIPTION||VBSEO_REWRITE_META_KEYWORDS

  4. #4
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,741
    Liked
    168 times
    vBSEO has a built-in feature for meta tags replacement on blogs pages (corresponding option should be enabled in vBSEO CP).

  5. #5
    Senior Member NeutralizeR's Avatar
    Real Name
    Mavi KARANLIK
    Join Date
    Feb 2006
    Location
    Ankara/TÜRKİYE
    Posts
    311
    Liked
    1 times
    Quote Originally Posted by Oleg Ignatiuk View Post
    vBSEO has a built-in feature for meta tags replacement on blogs pages (corresponding option should be enabled in vBSEO CP).
    I know but it needs to be disabled for me. I'm trying to enable it only for blog urls.

  6. #6
    Junior Member
    Real Name
    Paul
    Join Date
    Dec 2007
    Posts
    2
    Liked
    0 times
    Quote Originally Posted by Oleg Ignatiuk View Post
    vBSEO has a built-in feature for meta tags replacement on blogs pages (corresponding option should be enabled in vBSEO CP).

    I must be blind. I cant find it

  7. #7
    Senior Member
    Real Name
    Michael Biddle
    Join Date
    Jan 2007
    Location
    Southern California
    Posts
    7,097
    Liked
    5 times
    Hello Paul, you are currently not showing up as a licensed customer. Please PM me your forum URL and transactionid and I will assign your license.
    The Forum Hosting - Forum Hosting from the Forum Experts

Similar Threads

  1. Dynamic Meta Tags
    By jmurrayhead in forum Troubleshooting
    Replies: 2
    Last Post: 04-13-2008, 06:23 PM
  2. Relevant Replacements and Dynamic Meta Tags for Downloads II
    By Hendricius in forum vBSEO Features Archive
    Replies: 1
    Last Post: 01-27-2008, 07:53 PM
  3. vbseo and Meta Tags and Meta Description
    By MarketTimes in forum General Discussion
    Replies: 0
    Last Post: 08-03-2007, 04:24 PM
  4. Dynamic Meta Description?
    By fade in forum vBSEO Features Archive
    Replies: 4
    Last Post: 04-16-2007, 01:27 PM
  5. Dynamic meta tags!
    By msimonds in forum vBSEO Features Archive
    Replies: 10
    Last Post: 03-17-2006, 10:57 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •