Results 1 to 12 of 12

vbseo inserting too many keywords in showthreads. Why? How to reduce.

This is a discussion on vbseo inserting too many keywords in showthreads. Why? How to reduce. within the Troubleshooting forums, part of the vBSEO SEO Plugin category; I notice under Dynamic META TAGS vbseo has a Define the 'META DESCRIPTION' Length which i have set to 150. ...

  1. #1
    Senior Member
    Real Name
    Hayden James
    Join Date
    Mar 2006
    Posts
    161
    Liked
    0 times

    vbseo inserting too many keywords in showthreads. Why? How to reduce.

    I notice under Dynamic META TAGS vbseo has a Define the 'META DESCRIPTION' Length which i have set to 150.

    However, what about # of keywords?

    I have threads with a ridiculous amount of keywords. How can I limit keywords fetch to say 10 or what ever i like.

    Here's an example of too many keywords use is one of our threads:
    <meta name="keywords" content="bible, blackberry, smartphones, solution,application,bible,blackberry,users,user,m ake,translations,stumbled,numerous,youversion,mobi le,default,font,perfect,smaller,made,responsive,fo und,built-in,interface,option,clean,welcomed,program,berry,c heck,simply,plan,reading,contributions,one-year,read,email,join,facebook-style,family,inviting,friends,growing,community,m. youversion.com,http://2.bp.blogspot.com/_k0lekl-dv5i/ss6h4pqnm6i/aaaaaaaaafc/5zm-2edo_k0/s200/youversion.jpg,http://2.bp.blogspot.com/_k0lekl-dv5i/ss6h4pqnm6i/aaaaaaaaafc/5zm-2edo_k0/s1600-h/youversion.jpg,located,site,youversion.com,general ized,blessing,true" />

  2. #2
    Senior Member
    Real Name
    Hayden James
    Join Date
    Mar 2006
    Posts
    161
    Liked
    0 times
    Case in point the keywords for this very thread i just started:
    <meta name="keywords" content="vbseo,inserting,too,many,keywords,showthr eads,Why,How,reduce,,keywords,meta,vbseo,limit,fetch,ridiculous,threads ,amount,keyword,thread,inserting,showthreads,tags, dynamic,reduce,notice,define,description,length" />
    How do I reduce. It seems to add urls to keywords also and even blanks. Such as ",,"

  3. #3
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    Please try to modify functions_vbseo.php file:
    FIND:
    PHP Code:
    $kw_content preg_replace('#,?\b(' VBSEO_STOPWORDS ')\b#i'''$kw_content); 
    ADD BELOW:
    PHP Code:
                    if(strlen($kw_content) > VBSEO_META_DESCRIPTION_MAX_CHARS)
                    {
                        
    $kw_content vbseo_substr_words($kw_contentVBSEO_META_DESCRIPTION_MAX_CHARS);
                    } 

  4. #4
    Senior Member
    Real Name
    Hayden James
    Join Date
    Mar 2006
    Posts
    161
    Liked
    0 times
    thanks

    where to I set my keyword limit with this? Is this cutting off keywords by characters instead of words?

  5. #5
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    Modification above would use the same limit as description setting (in characters), except that keywords are *appended* to existing keywords meta tag instead of replacing it.

  6. #6
    Junior Member
    Real Name
    Blackxero
    Join Date
    Feb 2010
    Posts
    4
    Liked
    0 times
    Quote Originally Posted by Oleg Ignatiuk View Post
    Please try to modify functions_vbseo.php file:
    FIND:
    PHP Code:
    $kw_content preg_replace('#,?\b(' VBSEO_STOPWORDS ')\b#i'''$kw_content); 
    ADD BELOW:
    PHP Code:
                    if(strlen($kw_content) > VBSEO_META_DESCRIPTION_MAX_CHARS)
                    {
                        
    $kw_content vbseo_substr_words($kw_contentVBSEO_META_DESCRIPTION_MAX_CHARS);
                    } 
    Sorry for bumping old thread ...I have a similar question..... What i want to do is limit the number of keywords to 10-20 while description to 150 ..... can i do it like this

    PHP Code:
                    if(strlen($kw_content) > "10")
                    {
                        
    $kw_content vbseo_substr_words($kw_content"10");
                    } 

  7. #7
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    Yes, but it will be 10 instead of "10".

  8. #8
    Junior Member
    Real Name
    Blackxero
    Join Date
    Feb 2010
    Posts
    4
    Liked
    0 times
    thanks a lot .... will try it later

  9. #9
    Junior Member
    Real Name
    melase
    Join Date
    Dec 2010
    Posts
    2
    Liked
    0 times
    Hi,

    Have noticed that last vBSEO version (3.6.0.) includes this mod in "functions_vbseo.php" file:

    PHP Code:
    if(strlen($kw_content) > VBSEO_META_DESCRIPTION_MAX_CHARS)
    {
    $kw_content vbseo_substr_words($kw_contentVBSEO_META_DESCRIPTION_MAX_CHARS);

    I do not understand why it does not work, I mean I have description set to to 160 maximum characters, keywords should do the same, shouldn't ?

    Am I doing something wrong, is there any effective way to limit meta keywords characters ?

    I have also tried this way, it does not work

    PHP Code:
    if(strlen($kw_content) > 10)
    {
    $kw_content vbseo_substr_words($kw_content10);

    Thanks

  10. #10
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    Hello,

    vBSEO *appends* keywords to existing meta tag content (while meta description is *replaced*), that's why combined lengh is larger.
    If you want keywords meta tag to be replaced as well, you can replace this line in functions_vbseo.php file:
    $newtext = preg_replace('#(<meta name="keywords".*?content=)"#is', '$1"'.str_replace('$','\$',$kw_content).',', $newtext);
    with:
    $newtext = preg_replace('#(<meta name="keywords".*?content=)"[^"]*#is', '$1"'.str_replace('$','\$',$kw_content).',', $newtext);

  11. #11
    Junior Member
    Real Name
    melase
    Join Date
    Dec 2010
    Posts
    2
    Liked
    0 times
    Made it, it works !

    Meta keywords are now much shorter.

    THANKS

  12. #12
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    You are welcome!

Similar Threads

  1. Shouldnt subforum keywords show up in meta keywords?
    By dingo in forum General Discussion
    Replies: 1
    Last Post: 08-23-2009, 07:34 AM
  2. Showthreads not showing in sitemap
    By doubler0204 in forum Troubleshooting
    Replies: 14
    Last Post: 08-16-2009, 11:12 PM
  3. how to reduce inlinemod
    By taker in forum General Discussion
    Replies: 2
    Last Post: 04-01-2009, 10:10 AM
  4. How to run rewriting only for showthreads url?
    By Blacklava in forum Troubleshooting
    Replies: 9
    Last Post: 03-12-2009, 12:43 PM
  5. vbseo reduce my server performance!!!
    By pchs in forum Troubleshooting
    Replies: 8
    Last Post: 01-22-2007, 09:43 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
  •