Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Add New Facebook "Like" Button to Threads and OpenGraph to Headinclude Automatically Details »
Add New Facebook "Like" Button to Threads and OpenGraph to Headinclude Automatically
Mod Version: 0.2.1, by kall (Coder) kall is offline
Developer Last Online: Sep 2016 I like it Show Printable Version Email this Page

vB Version: 3.8.4 Rating: (1 vote - 4.00 average) Installs: 25
Released: 15 May 2010 Last Update: 16 May 2010 Downloads: 199
Not Supported Uses Plugins Template Edits External Content Is in Beta Stage  

From The Open Graph Protocol :
The Open Graph protocol enables any web page to become a rich object in a social graph. For instance, this is used on Facebook to enable any web page to have the same functionality as a Facebook Page.
Basic metadata
To turn your web pages into graph objects, you need to add basic metadata to your page. We've based the initial version of the protocol on RDFa which means that you'll place additional <meta> tags in the <head> of your web page. The four required properties for every page are:

og:title - The title of your object as it should appear within the graph, e.g., "The Rock".
og:type - The type of your object, e.g., "movie". Depending on the type you specify, other properties may also be required.
og:image - An image URL which should represent your object within the graph.
og:url - The canonical URL of your object that will be used as its permanent ID in the graph, e.g., "http://www.imdb.com/title/tt0117500/".
This modification will add these tags to all pages, and the <og:title> attribute to your SHOWTHREAD pages (for the moment.. additional Pages to be added soon), along with the Facebook 'Like Button' under the Thread Title (as we are supposed to put the Like button next to the thing the person is Liking).

Install Instructions:
AdminCP - Plugins & Products - Manage Products - [Add/Import Product] , browse to the location of the .xml file you downloaded from this thread, Import it.
Template Modifications
In SHOWTHREAD, find:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace with:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Find:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Add under:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Wherever you want to add the Like Button, add

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Configuration Instructions
AdminCP - Settings - Options - Opengraph/Facebook Integration
Global On/Off - Set to Yes to turn the system on.
FB - Page Admins - A comma-separated list of the Facebook IDs of the Admins of your pages on Facebook.
FB - App ID - The application ID of your Facebook Application.
OG - Site Name - A short, human-readable name for your site that will appear in the Like on the User's Facebook Activity Stream.

It is important to fill in these, as they are used by FB to fill in some of the information, and allows your pages (Showthread at the moment) to be referenced in the Open Graph.

What's Next?
This is an early beta release to gauge the interest in Open Graph/Facebook type stuff.
I intend to add the tags to other pages, and implement some of the other Facebook Social Plugins. These will all be On/Off configurable. Some can be seen in action at:

View Profile: kall - New Zealand Boards - Like for Member Profiles
http://www.nzboards.com/the-lounge/r...on-sale-90544/ - Activity and Recommendation Streams in first and last post.

(4.0.3 Version here: http://www.vbulletin.org/forum/showthread.php?t=242525)

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.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Integration with vBulletin Add New Facebook "Like" Button and Social Plugins (and OpenGraph to Headinclude) kall vBulletin 4.x Add-ons 91 20 Feb 2012 18:01

Comments
  #2  
Old 15 May 2010, 07:43
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Real name: Ace
Ahh.

Issues. I need to re-upload the .xml, please hang 5.

*edit* Done.
__________________
vBulletin Styles (All styles compatible with 3.8.4 - Steel Blue 4.0 Available) | vBulletin Hosting
Reply With Quote
  #3  
Old 15 May 2010, 09:39
Taurus1's Avatar
Taurus1 Taurus1 is offline
 
Join Date: Dec 2009
Thanks mate....gonna give it a whirl!!
Reply With Quote
  #4  
Old 15 May 2010, 23:32
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Real name: Brandon
Thank you man!
I'll ditch what I currently have and set this one up

/me clicks install

I do not see

Configuration Instructions
AdminCP - Settings - Options - Opengraph/Facebook Integration
__________________

Email me for website help: brandon[at]sheley[dot]org

Last edited by Brandon Sheley; 15 May 2010 at 23:59.
Reply With Quote
  #5  
Old 16 May 2010, 01:29
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Real name: Ace
Dammit. That's what I was supposed to get in the edit of the xml. Do you see them in the xml?
__________________
vBulletin Styles (All styles compatible with 3.8.4 - Steel Blue 4.0 Available) | vBulletin Hosting
Reply With Quote
  #6  
Old 16 May 2010, 01:32
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Real name: Ace
Bah. Must have uploaded the wrong one. Try now.
__________________
vBulletin Styles (All styles compatible with 3.8.4 - Steel Blue 4.0 Available) | vBulletin Hosting
Reply With Quote
  #7  
Old 16 May 2010, 01:34
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Real name: Brandon
Originally Posted by kall View Post
Bah. Must have uploaded the wrong one. Try now.
yup, I see the options now
Just putting the little one to bed, will finish the install in 20 mins, thanks again for releasing a 3.8 version

one question.. I'm trying to place this in the postbit, can I enter this into the postbit template?


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________

Email me for website help: brandon[at]sheley[dot]org

Last edited by Brandon Sheley; 16 May 2010 at 04:39.
Reply With Quote
  #8  
Old 16 May 2010, 08:30
zfrank1 zfrank1 is offline
 
Join Date: Feb 2002
the templates are not cached. can you change your code?
Reply With Quote
  #9  
Old 16 May 2010, 10:04
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Real name: Ace
Originally Posted by zfrank1 View Post
the templates are not cached. can you change your code?
Well, I was going to upgrade it so it worked on all pages, but ok.
__________________
vBulletin Styles (All styles compatible with 3.8.4 - Steel Blue 4.0 Available) | vBulletin Hosting
Reply With Quote
  #10  
Old 16 May 2010, 10:10
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Real name: Ace
Originally Posted by Loco.M View Post
one question.. I'm trying to place this in the postbit, can I enter this into the postbit template?


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
You should be able to, but that's not Best Practice.. you want people to Like the Thread, not the post.
__________________
vBulletin Styles (All styles compatible with 3.8.4 - Steel Blue 4.0 Available) | vBulletin Hosting
Reply With Quote
  #11  
Old 16 May 2010, 12:29
nascartr nascartr is offline
 
Join Date: Jun 2008
Originally Posted by kall View Post
Bah. Must have uploaded the wrong one. Try now.
Looks like another xml has been uploaded, there are no admincp options in it either.
Reply With Quote
  #12  
Old 16 May 2010, 14:31
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Real name: Brandon
Originally Posted by nascartr View Post
Looks like another xml has been uploaded, there are no admincp options in it either.
Are you sure? They appeared when I uploaded the new XML.
__________________

Email me for website help: brandon[at]sheley[dot]org
Reply With Quote
  #13  
Old 16 May 2010, 17:42
nascartr nascartr is offline
 
Join Date: Jun 2008
Originally Posted by Loco.M View Post
Are you sure? They appeared when I uploaded the new XML.

Yeah, I have nothing and when I view the xml there's nothing about the settings. Also when I downloaded I was the first to download the file so I'm thinking there was another new one added.
Reply With Quote
  #14  
Old 16 May 2010, 18:06
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Real name: Brandon
Originally Posted by nascartr View Post
Yeah, I have nothing and when I view the xml there's nothing about the settings. Also when I downloaded I was the first to download the file so I'm thinking there was another new one added.
I think there was to, have you downloaded it in the last day? I think Kall updated it
__________________

Email me for website help: brandon[at]sheley[dot]org
Reply With Quote
  #15  
Old 16 May 2010, 18:14
nascartr nascartr is offline
 
Join Date: Jun 2008
Originally Posted by Loco.M View Post
I think there was to, have you downloaded it in the last day? I think Kall updated it
I did about 10 minutes before my first post.
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 03:24.

Layout Options | Width: Wide Color: