Back to vBulletin 4.x Add-ons

RedInk Design - Smart OG Image Tag
Mod Version: 1.00, by redinkdesign

vB Version: 4.2.x Rating: (5 votes - 4.20 average) Installs: 42
Released: 10 Dec 2012 Last Update: 04 Dec 2013 Downloads: 296
Not Supported Uses Plugins  

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

Download

File Type: %1$s product-redink_smart_og_image_tag.xml (2.7 KB, 172 downloads)


vblts.ru supports vBulletin®, 2022-2024