![]() |
RedInk Design - Smart OG Image Tag
1 Attachment(s)
Currently vBulletin's facebook open graph image tag uses what's entered in Options -> Facebook Options -> Image URL. If you leave this field blank, the <og:image> meta tag is omitted and Facebook's crawler will try to use any image found on the page.
This mod looks for the first [img] or [attach] tags in a post and uses that image for the <og:image> meta tag. This will tell facebook's crawler to use that image for the post. This mod requires the Facebook Platform to be enabled on vBulletin (Options -> Facebook Options -> Enable Facebook Platform). It will first look for an [img] tag is the post, if none is found, it will look for an [attach] tag. If neither is found, it will use the Image you entered in the facebook options (Options -> Facebook Options -> Image URL). If that field was left empty, it will omit the <og:image> tag which is default vBulletin behavior. This was only tested on 4.2.0 (PL3). Installation: Admin -> Plugin & Products -> Manage Products -> Add/Import Product Update 12/4/2013 Changed image priorities - avatar and site logo are not priority Update 11/19/2013 Plugin updated to support multiple images |
Installed and work fine for me
Thanks, |
excuseme, I installed this product but when do you config the og:image tag??
|
This mod looks for the first [img] or [attach] tags in a post and uses that image for the <og:image> meta tag. This will tell facebook's crawler to use that image for the post.
You don't explicitly set the og:image tag. |
I made the importation and left blank the FB Image URL, but When you create the page, the tag og: image is omitted, but there are images in the the page (article of CMS Content) :(
|
This mod works fine for forum thread but not work for cms article
|
If you want it to work with the CMS articles, what should I change in the XML? There I took a look and the only thing I've noticed is that these variables: $GLOBALS['threadinfo']['description']. There is a variable that identifies those items of CMS?
|
OMG, thank you I have been looking for this forever!
|
crap fb_opengraph_array isn't a hook in my version of vbulletin
|
Okay, I just inserted the plugin manually into functions_facebook.php since there isn't a comparable hook.
@Waiter - $vbulletin->options['description'] is the variable, but I don't believe it includes img and attach tags for the cms. |
All times are GMT. The time now is 02:54 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|