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?
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" ...
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?
You can modify functions_vbseo.php file for that:
FIND:REPLACE WITH:PHP Code:$newtext = preg_replace('#(<meta name="description".*?content=)"[^"]*#is', '$1"'.str_replace('$','\$',str_replace('"','"',$desc_content)), $newtext);
PHP Code:$newtext = preg_replace('#(<meta name="description".*?content="[^"]*)#is', '$1'.str_replace('$','\$',str_replace('"','"',$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!
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"
Yes, you can use this:
PHP Code:$newtext = preg_replace('#(<meta name="description".*?content=")([^"]*)#is', '$1'.str_replace('$','\$',str_replace('"','"',$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!
thanks a lot
this fit perfectly my needs
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!
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?
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!
i've copy pasted the code,
i mention i use this : Add Search Engine Optimized Keywords & Description to each Forum - vBulletin.org Forum
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!
yes it does
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!