The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#4
|
||||
|
||||
![]()
You actually do have a measure of control over which images are selected by Facebook. But you have to have certain parameters in place. For example, you need to have the necessary meta tags in your head code, like described here: http://stackoverflow.com/questions/1...-select-images. And I went ahead and used replacement variables to insert the namespaces, so as to pass validation.
I'm also on vB3, and this I what I put in my headinclude, in addition to adding the proper namespaces. HTML Code:
<!-- Facebook Meta Tags --> <meta property="og:title" content="<if condition="$show['threadinfo']"><if condition="$pagenumber>1"><phrase 1="$pagenumber">$vbphrase[page_x]</phrase> :: </if>$threadinfo[prefix_plain_html] $threadinfo[title]<else /><if condition="$show['foruminfo']"><if condition="$pagenumber>1"><phrase 1="$pagenumber">$vbphrase[page_x]</phrase> :: </if>$foruminfo[title_clean]<else />$vboptions[hometitle]</if></if>" /> <meta property="og:site_name" content="$vboptions[bbtitle]" /> <meta property="og:url" content="$vboptions[homeurl]$_SERVER[SCRIPT_NAME]?$_SERVER[QUERY_STRING]" /> <meta property="og:description" content="<if condition="$show['threadinfo']">$threadinfo[preview]<else /><if condition="$show['foruminfo']">$foruminfo[description_clean]<else />$vboptions[description]</if></if>" /> <if condition="$show['threadinfo'] !=1"><if condition="$show['foruminfo'] !=1"><meta property="og:image" content="$vboptions[bburl]/images/fb-default.png" /></if></if> <meta property="fb:app_id" content="YOUR-APP-ID-HERE" /> <!-- / Facebook Meta Tags --> --------------- Added [DATE]1421809672[/DATE] at [TIME]1421809672[/TIME] --------------- Also note, you really only need to do this in one style. The default style guests see when they visit your website. This is the first style the Facebook crawler and the debugger will see, and will likely be the only one it checks. |
Благодарность от: | ||
Max Taxable |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|