The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
![]() |
||||||||||||||||||||||||||||||||||||||||||||
Add New Facebook "Like" Button and Social Plugins (and OpenGraph to Headinclude)
![]() Developer Last Online: Aug 2021 ![]() ![]()
This modification will add OpenGraph tags to all pages, adding your Content pages to the Open Graph, along with the Facebook 'Like Button' under the navbar for all 'Content' pages.
What does this mean? If you have a Facebook Profile you may have noticed the new layout, where things that you 'like' are arranged by 'type'. Adding OpenGraph tags ensures you will have your pages properly classified and included. From The Open Graph Protocol : Quote:
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 whichever Templates you wish to have all Features (OpenGraph), you need to add the xmlns to the head. ie:, find: PHP Code:
PHP Code:
![]() Titles These should be part of the meta tag template that gets plugged in, but figuring out how to pass these variables is lower priority to getting this modification stable, so you need to add them in the templates. ie: in SHOWTHREAD, find: PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
Due to the new SDK not yet having Connect, and the 2 flavours of FB not mixing with each other, if you want to use Connect, you have to forgo the extra features of the SDK version that this modification ships with. 0.7 now has logic to show either or, depending on whether you have vB's native FB Connect turned on. If you don't want to upload to v0.7+ (or are using YAFB or another Connect), replace the content of fbog_like_showthread with: Code:
<div style="padding: 5px; border: 1px solid #3F6F81; background: #ffffff; font-size: 10px; width: 300px;"> <iframe src="http://www.facebook.com/plugins/like.php?href={vb:raw vboptions.bburl}{vb:raw relpath}&layout=standard&show_faces=true&width=450&action=like&font&colorscheme=light&height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe> </div> 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 - API Key - The API Key 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 to be referenced in the Open Graph. New in Latest Version Activity Stream - Quote:
Quote:
Find: PHP Code:
PHP Code:
Changelog. 0.7 - 19.05.2010 "Recommendations actually works, and iFrame version for Connect Users" Version. 0.6 - 18.05.2010 "Removing extra, unnecessary code" Version. 0.5 - 16.05.2010 "Activity and Recommendations" Version. 0.4 - 16.05.2010 "Content Pages" Version. Both plugins moved to parse_templates so as to work on CMS (and to futureproof?) 0.3 - Unreleased "Content Pages.. but not CMS? It's CALLED content for God's sake! Ahh. global_start isn't called on the CMS." Version. 0.2 - Unreleased "Why won't it work on the bloody.. oh, I was changing plugins on the vbseo site version. Lets just throw everything into all the plugins and cross our fingers" Version. 0.1 - 15.05.2010 Initial Release. Works on Showthread only What's Next? This is an early beta release to gauge the interest in Open Graph/Facebook type stuff. [s]I intend to add the tags to other pages,[/s] 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. Download Now
Screenshots
Show Your Support
|
Comments |
#72
|
|||
|
|||
![]()
thanks kall...does it works only in the navbar template? would be nice to be able to place the button at the bottom for example.
|
#73
|
|||
|
|||
![]() Quote:
![]() I have to say tho i took it of i "Think" and this is a Think facebook was slowing my site down alot seem to improve tons after i clicked the off part :/ shame because i love this idea |
#74
|
||||
|
||||
![]() Quote:
If you take out this bit and place it manually somewhere in headinclude, does it make a difference? PHP Code:
|
#75
|
|||
|
|||
![]() Quote:
Anyways i turned it back on and it was fine. Must of been a bad day i guess It still working awesome <3 |
#76
|
||||
|
||||
![]()
Phew!
![]() That code really should be placed immediately after <body> to help it load in synch with the rest of the page, but where it is, shouldn't do any harm. |
#77
|
|||
|
|||
![]()
Yo Kall
![]() I tryed to get it working on my 4.0.1 forum and give me Code:
Parse error: syntax error, unexpected '[' in /home/**/includes/class_core.php(4029) : eval()'d code on line 12 Warning: Cannot modify header information - headers already sent by (output started at [path]/includes/class_core.php(4029) : eval()'d code:12) in [path]/includes/functions.php on line 3742 Thanks (still running fine on my other one :up ![]() |
#78
|
|||
|
|||
![]()
Meh god dam Error now lol
Code:
The page at http://www.myanimeisland.com/threads/89-Some-changes-) could not be reached. ![]() |
#79
|
||||
|
||||
![]()
Hmm.
Quote:
![]() |
#80
|
|||
|
|||
![]()
I got similar problems. I guess there are some changes on FB's side
![]() |
#81
|
|||
|
|||
![]()
Should i remove it than mate? *wishes he knew code like Kall*
![]() Quote:
![]() |
![]() |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|