Here is a fix offered by VBSEO support that will help those using this plugin to avoid duplicate meta descriptions:
Must be using vbSEO to do this
Change the vbseo_extract_msg_postbits() function code in functions_vbseo_vb.php file to:
Code:
function vbseo_extract_msg_postbits($postno = 0)
{
global $vbulletin;
$msg = '';
$pbits = $GLOBALS['postbits'];
if(!$pbits)
$pbits = vBSEO_Storage::get('cms_text');
if($pbits)
{
preg_match_all('#<!--\s*message\s*-->(.*?)<!--\s*/\s*message\s*-->#s', $pbits, $post_match);
if(!$post_match || !$post_match[1] || (isset($vbulletin) && $vbulletin->gars) ){
$lfor = (VBSEO_VB4? '</blockquote>' : '</div>');
if(strstr($pbits, $lfor))
preg_match_all('#post_message_[^>]*?\>(.*?)'.$lfor.'#s', $pbits, $post_match);
}
$msg = preg_replace('#<!--.*?-->#s', '', $msg);
$msg = str_replace('>Quote:<', '', $post_match[1][$postno]);
$msg = preg_replace('#<div>Originally Posted by.*?</div>#', '', $msg);
$msg = preg_replace('#<script.*?\>.*?</script>#is', '', $msg);
$msg = preg_replace('#(<.*?\>)+#s', ' ', $msg);
$msg = trim($msg);
}
return $msg;
}
Next replace this line in functions_vbseo.php file:
Code:
$desc_content = vbseo_extract_msg_postbits();
with:
Code:
$desc_content = vbseo_extract_msg_postbits(intval($_GET['page'])>1 ? 1 : 0);