Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
RedInk Design - Smart OG Image Tag Details »
RedInk Design - Smart OG Image Tag
Mod Version: 1.00, by redinkdesign (Member) redinkdesign is offline
Developer Last Online: Aug 2015 I like it Show Printable Version Email this Page

vB Version: 4.2.x Rating: (5 votes - 4.20 average) Installs: 41
Released: 10 Dec 2012 Last Update: 04 Dec 2013 Downloads: 280
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 Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 11 Dec 2012, 14:39
sweetpotato sweetpotato is offline
 
Join Date: Oct 2010
Installed and work fine for me
Thanks,
__________________
Reply With Quote
  #3  
Old 10 Jan 2013, 18:08
Waiter Waiter is offline
 
Join Date: Mar 2008
excuseme, I installed this product but when do you config the og:image tag??
Reply With Quote
  #4  
Old 10 Jan 2013, 18:11
redinkdesign redinkdesign is offline
 
Join Date: Nov 2007
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.
Reply With Quote
  #5  
Old 10 Jan 2013, 18:22
Waiter Waiter is offline
 
Join Date: Mar 2008
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)
Reply With Quote
  #6  
Old 11 Jan 2013, 08:24
sweetpotato sweetpotato is offline
 
Join Date: Oct 2010
This mod works fine for forum thread but not work for cms article
__________________

Last edited by sweetpotato; 16 Jan 2013 at 01:32.
Reply With Quote
  #7  
Old 11 Jan 2013, 08:36
Waiter Waiter is offline
 
Join Date: Mar 2008
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?
Reply With Quote
  #8  
Old 12 Jan 2013, 18:27
tpearl5's Avatar
tpearl5 tpearl5 is offline
 
Join Date: Nov 2001
Real name: John
OMG, thank you I have been looking for this forever!
__________________
John
Reply With Quote
  #9  
Old 12 Jan 2013, 18:44
tpearl5's Avatar
tpearl5 tpearl5 is offline
 
Join Date: Nov 2001
Real name: John
crap fb_opengraph_array isn't a hook in my version of vbulletin
__________________
John
Reply With Quote
  #10  
Old 12 Jan 2013, 19:34
tpearl5's Avatar
tpearl5 tpearl5 is offline
 
Join Date: Nov 2001
Real name: John
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.
__________________
John
Reply With Quote
  #11  
Old 15 Jan 2013, 14:48
Waiter Waiter is offline
 
Join Date: Mar 2008
not work for CMS
Any idea for this? Thx
Reply With Quote
  #12  
Old 16 Jan 2013, 06:22
sticky sticky is offline
 
Join Date: Sep 2003
Finally! Been waiting for something like this.

As long as this works on the CMS I'm good

Testing.
Reply With Quote
  #13  
Old 16 Jan 2013, 06:24
sticky sticky is offline
 
Join Date: Sep 2003
Originally Posted by redinkdesign View Post
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.
Why does the facebook platform need to be enabled for this to work? Shouldn't it just work regardless?
Reply With Quote
  #14  
Old 16 Jan 2013, 14:24
Waiter Waiter is offline
 
Join Date: Mar 2008
Originally Posted by sticky View Post
Finally! Been waiting for something like this.

As long as this works on the CMS I'm good

Testing.
but this don't work in CMS
Reply With Quote
  #15  
Old 16 Jan 2013, 14:49
abdobasha2004's Avatar
abdobasha2004 abdobasha2004 is offline
 
Join Date: Aug 2008
I need this mod for vb 3.7 pleeeeeeeeeease......
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 15:17.

Layout Options | Width: Wide Color: