![]() |
Add New Facebook "Like" Button to Threads and OpenGraph to Headinclude Automatically
1 Attachment(s)
From The Open Graph Protocol :
Quote:
Quote:
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: PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
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: https://vborg.vbsupport.ru/showthread.php?t=242525) |
Ahh.
Issues. I need to re-upload the .xml, please hang 5. *edit* Done. |
Thanks mate....gonna give it a whirl!!
|
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 |
Dammit. That's what I was supposed to get in the edit of the xml. Do you see them in the xml?
|
Bah. Must have uploaded the wrong one. Try now. :)
|
Quote:
Just putting the little one to bed, will finish the install in 20 mins, thanks again for releasing a 3.8 version :up: one question.. I'm trying to place this in the postbit, can I enter this into the postbit template? Code:
$ogfb_like_showthread |
the templates are not cached. can you change your code?
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
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. |
Quote:
|
Quote:
|
And this is why Kall hates the 3.8 Product Creation method. Settings don't pull unless you are in Debug mode? What's up with that? :(
The settings should be back in the xml, my apologies. |
This looks very interesting. Subscribing to watch thread. :)
|
Great stuff!
Is it possible to release a vbSEO version for 3.8.4? Right now the box is just showing up with blank white space inside. |
Quote:
Could you maybe provide a link to a page where it's like that, or the source code of the area? |
Quote:
and how do we get our ID's FB - Page Admins - A comma-separated list of the Facebook IDs of the Admins of your pages on Facebook. my account is facebook.com/username/ |
Quote:
When you say postbit, do you mean every post, or are you going to conditional it to only appear in the first one (the reason it is in navbar is because the entire purpose of the Like button under current functionality is to Like the *page* that one is visiting. Putting it in a single post will result in multiple Like URLs for the resource (as that post can be visited via showpost.php or showthread.php among others), and putting it in every post won't work at all on showthread.php)? |
The ID is (as it should mention in the AdminCP bit) found by mousingover your avatar (usually, works for me anyway), or going into your Albums and looking for the common string of numbers that appears on each.
|
I understand, no rush on my part :)
I have the first post conditioned out in the postibit template (see example) This version seems to take a while to load, I may just revert back and use the small "like" button/count. thx, found my ID |
Re it being slow: Conversation here seems to indicate using the FBML makes it faster than the iframe version: http://wiki.developers.facebook.com/...Talk:Fb:iframe
It should be possible to change the button to use the iframe though, keeping all the opengraph stuff. In ogfb_like_showthread, delete everything and replace with this: Code:
<div style="padding: 5px; border: 1px solid #3F6F81; background: #ffffff; font-size: 10px; width: 300px;"> |
To make the button display on other templates
Change the hook that the OpenGraph/Facebook Integration - SHOWTHREAD variables plugin executes on to an applicable hook. (postbit - postbit_display_complete. or chuck it in global_start or something that's called on every page.) |
Thanks, checking it out now
still not working, I'll play around with this tonight thx for the help Kall |
How's it not working man? Gimme a URL.
There is the issue of 'vBSEO needs to use slightly different code' and 'Brandon made me change my plugins while I had the flu' clouding the waters somewhat. :) |
Quote:
hope you get feeling better I posted a link a few post up I'll play with it again, but I had tried placing the $ogfb_like_showthread in my postbit template along with the digg, twitter and stumble one and tried changing the hook location to the 2 you suggested and nothing showed. I moved $ogfb_like_showthread back in the showthread template, and it shows. I just about have it how I want it, thanks for the help :) |
Quote:
http://www.avrilbandaids.com/forums/...ound-site.html You can see the white box above the reply button. |
Ahh. One question - are you currently running YAFB or the default 4.0.3 Facebook Connect?
They're not compatible :( You would need to use the iframe code rather than the FBML version. |
This stopped working when I tried to isntall the vb nexius mod :(
I've removed both, re-added this mod and nothing is showing in the postbit. I'll see if I can look deeper, maybe something from the nexius mad is stalling things.. I'm bummed, it was looking great too :D |
Are you still using some form of Connect?
|
Quote:
I've since removed the opengraph mod, and tried adding it back late last night.. still not working :( I'm guessing there is something leftover from the nexius mod your mod doesn't even show ATM if I place it in the showthread template like designed. |
I tried your mod and it's working for me, thanks a lot. However it is showing a white rectangle around the button and my forum is dark. Is there any chance to adapt the look and colors etc. of the rectangle? Thanks a lot!
|
Quote:
In template ogfb_like_showthread, change the following div properties to suit. :) <div style="padding: 5px; border: 1px solid #3F6F81; background: #ffffff; font-size: 10px; width: 300px;"> |
Awesome, thanks for the quick reply!
|
1 Attachment(s)
I've downloaded this, tried it, got it working ok and experimented with moving the like button around, however the place I'd like it ideally is one of these two positions in the attached pics (blue cross marked) the first one is my preference... any ideas at all please?
|
Quote:
PHP Code:
|
Quote:
|
Is there any chance to exclude the button from private forums?
|
All times are GMT. The time now is 05:07 PM. |
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:
|