Results 1 to 12 of 12

Meta descriptions

This is a discussion on Meta descriptions within the vBSEO Features Archive forums, part of the vBulletin Links & Resources category; Replace the 'META DESCRIPTION' Content? how about insted replace we could merge description to look like : description="$old_description . $newdescription" ...

  1. #1
    Member
    Real Name
    Daniel Ionica
    Join Date
    May 2007
    Posts
    33
    Liked
    0 times

    Meta descriptions

    Replace the 'META DESCRIPTION' Content?
    how about insted replace we could merge
    description to look like :
    description="$old_description . $newdescription"


    How may i do this?

  2. #2
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    You can modify functions_vbseo.php file for that:
    FIND:
    PHP Code:
                    $newtext preg_replace('#(<meta name="description".*?content=)"[^"]*#is''$1"'.str_replace('$','\$',str_replace('"','&quot;',$desc_content)), $newtext); 
    REPLACE WITH:
    PHP Code:
                    $newtext preg_replace('#(<meta name="description".*?content="[^"]*)#is''$1'.str_replace('$','\$',str_replace('"','&quot;',$desc_content)), $newtext); 
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  3. #3
    Member
    Real Name
    Daniel Ionica
    Join Date
    May 2007
    Posts
    33
    Liked
    0 times
    now its looks like :
    description="$vb_description $vb_seo_description"
    $vb_description= old way description
    $vb_seo_description = vb seo way description

    anyway could look like :
    description="$vb_seo_description $vb_description"

  4. #4
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Yes, you can use this:
    PHP Code:
                    $newtext preg_replace('#(<meta name="description".*?content=")([^"]*)#is''$1'.str_replace('$','\$',str_replace('"','&quot;',$desc_content)).' $2'$newtext); 
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  5. #5
    Member
    Real Name
    Daniel Ionica
    Join Date
    May 2007
    Posts
    33
    Liked
    0 times
    thanks a lot
    this fit perfectly my needs

  6. #6
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    You are welcome!
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  7. #7
    Member
    Real Name
    Daniel Ionica
    Join Date
    May 2007
    Posts
    33
    Liked
    0 times
    found a little bug with this modification

    look here:
    test - Craiova OnLine Forum

    When the thread starts with a number somthing is wrong, look above the logo

    Any fix to this problem please?

  8. #8
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Make sure that you've correctly entered the code: Meta descriptions
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  9. #9
    Member
    Real Name
    Daniel Ionica
    Join Date
    May 2007
    Posts
    33
    Liked
    0 times

  10. #10
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Does it work correctly with vBSEO disabled?
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  11. #11
    Member
    Real Name
    Daniel Ionica
    Join Date
    May 2007
    Posts
    33
    Liked
    0 times
    yes it does

  12. #12
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Does it work if you revert the changes mentioned above? Please open a support ticket with vBSEO CP access for troubleshooting.
    Last edited by Joe Ward; 03-17-2008 at 02:46 PM.
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


Similar Threads

  1. META Descriptions
    By wragge11 in forum Troubleshooting
    Replies: 9
    Last Post: 11-22-2007, 08:02 PM
  2. Meta descriptions are one character long
    By dazzlin in forum Troubleshooting
    Replies: 4
    Last Post: 10-29-2006, 11:17 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
  •