vBSEO deals with attachment URL's like this:
PHP Code:
if(!isset($VBSEO_REWRITE_TEXTURLS)){$r_tags = 'a|span|iframe';if(VBSEO_ABSOLUTE_PATH_IN_URL){$r_tags .= '|form|script|link';}if(VBSEO_ABSOLUTE_PATH_IN_URL||VBSEO_REWRITE_ATTACHMENTS||VBSEO_REWRITE_AVATAR){$r_tags .= '|img';}$r_tattr = 'href|src|action|url|\.open|\.location';$newtext = preg_replace ('#(<(?:'.$r_tags.')([^>]*?)(?:'.$r_tattr.')\s*[=\(]\s*["\'])([^"\'>\)]*)(.*?[\>])([^<]*)(</a>)?#ise','vbseo_replace_urls(\'$1\', \'$3\', \'$2\', \'$4\', \'$5\', \'$6\')',$newtext);
So changing "content" to "href" makes the URL use vbseo version
PHP Code:
$bop5_og_tags .= "<meta property="og:image$secure_og" content="$thisimg" />\r\n";
But of course, we can't use
href attribute with
meta tag.
Adding meta and content to the regexp makes all meta content tags start with forum URL.
Do you have any advice how to use vbseo powered attachment URLs in og:image?