View Full Version : Integration with vBulletin - Add New Facebook "Like" Button and Social Plugins (and OpenGraph to Headinclude)
This modification will add OpenGraph tags to all pages, adding your Content pages to the Open Graph, along with the Facebook 'Like Button (http://developers.facebook.com/docs/reference/plugins/like)' 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 (http://opengraphprotocol.org/) :
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/".
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 whichever Templates you wish to have all Features (OpenGraph), you need to add the xmlns to the head.
ie:, find:
<html xmlns="http://www.w3.org/1999/xhtml"<vb:if condition="$vboptions['enablefacebookconnect']"> xmlns:fb="http://www.facebook.com/2008/fbml"</vb:if> dir="{vb:stylevar textdirection}"
Replace with:
<html xmlns="http://www.w3.org/1999/xhtml"<vb:if condition="$vboptions['enablefacebookconnect'] || $vboptions['ogfb_onoff']"> xmlns:fb="http://www.facebook.com/2008/fbml"</vb:if><vb:if condition="$vboptions['ogfb_onoff']"> xmlns:og="http://opengraphprotocol.org/schema/"</vb:if> dir="{vb:stylevar textdirection}"
(If there is a way to do this with plugins that wont cause major issues, someone tell me so I can make it happen that way. :) )
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:
{vb:raw headinclude}
Add under:
<meta property="og:title" content="{vb:raw thread.title}" />
in FORUMDISPLAY, find:
{vb:raw headinclude}
Add under:
<meta property="og:title" content="{vb:raw foruminfo.title}" />
in MEMBERINFO, find:
{vb:raw headinclude}
Add under:
{vb:raw headinclude}
<meta property="og:title" content="{vb:raw prepared.username}'s Profile"/>
<meta property="og:description" content="{vb:raw prepared.username}'s Profile "/>
<meta property="og:image" content="<vb:if condition="$vboptions['profilepicenabled']"><vb:if condition="$prepared['profilepicurl']">http://www.nzboards.com/{vb:raw prepared.profilepicurl}<vb:else />http://www.nzboards.com/{vb:stylevar imgdir_misc}/unknown.gif</vb:if></vb:if>"/>
To add the Like Button, in navbar, find:
{vb:raw ad_location.global_below_navbar}
add under:
<vb:if condition="THIS_SCRIPT != 'login' AND THIS_SCRIPT != 'private' AND THIS_SCRIPT != 'register' AND THIS_SCRIPT != 'usercp' AND THIS_SCRIPT != 'faq' AND THIS_SCRIPT != 'search' AND THIS_SCRIPT != 'newreply' AND THIS_SCRIPT != 'newthread' AND THIS_SCRIPT != 'sendmessage' AND THIS_SCRIPT != 'payments'">{vb:raw fbog_likebutton}</vb:if>
For sites running any form of Facebook Connect - You must use iFrame
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:
<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>
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 - API Key - The API Key of your Facebook Application (http://www.facebook.com/developers/apps.php).
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 -
The Activity Feed plugin displays the most interesting recent activity taking place on your site. Since the content is hosted by Facebook, the plugin can display personalized content whether or not the user has logged into your site. The activity feed displays stories both when users like content on your site and when users share content from your site back to Facebook. If a user is logged into Facebook, the plugin will be personalized to highlight content from their friends. If the user is logged out, the activity feed will show recommendations from your site, and give the user the option to log in to Facebook.
The plugin is filled with activity from the user's friends. If there isn't enough friend activity to fill the plugin, it is backfilled with recommendations. If you set the recommendations param to true, the plugin is split in half, showing friends activity in the top half, and recommendations in the bottom half. If there is not enough friends activity to fill half of the plugin, it will include more recommendations.
Recommendations Box -
The Recommendations plugin shows personalized recommendations to your users. Since the content is hosted by Facebook, the plugin can display personalized recommendations whether or not the user has logged into your site. To generate the recommendations, the plugin considers all the social interactions with URLs from your site. For a logged in Facebook user, the plugin will give preference to and highlight objects her friends have interacted with.
You specify a site for which to show recommendations for. The domain is matched exactly, so a plugin with site=facebook.com would not include URLs from developers.facebook.com. You cannot currently aggregate across multiple domains.
Both of these options have an on/off toggle in the main FB/OG Options, and are currently manual template placements in postbit or postbit legacy.
Find:
<vb:if condition="$post['isfirstshown']">
{vb:raw ad_location.ad_showthread_firstpost_start}
{vb:raw ad_location.thread_first_post_content}
</vb:if>
<vb:if condition="$post['islastshown']">
{vb:raw ad_location.thread_last_post_content}
</vb:if>
Replace with:
<vb:if condition="$post['isfirstshown']">
{vb:raw ad_location.ad_showthread_firstpost_start}
{vb:raw ad_location.thread_first_post_content}{vb:raw ogfb_activity}
</vb:if>
<vb:if condition="$post['islastshown']">
{vb:raw ad_location.thread_last_post_content}
{vb:raw ogfb_recommendations}
</vb:if>
Demo of how they will look: http://www.nzboards.com/the-lounge/rwc-tickets-are-on-sale-90544/
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.
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 (http://www.nzboards.com/members/kall/) - Like for Member Profiles
http://www.nzboards.com/the-lounge/rwc-tickets-are-on-sale-90544/ - Activity and Recommendation Streams in first and last post.
vBSEO Owners - there's a small issue with the standard version of this Modification. I will release a vBSEO compatible version over at vBSEO.com later. :)
Delifed
05-15-2010, 12:17 AM
Wow this is a mod you must have. Thanks.
Hornstar
05-15-2010, 12:21 AM
It this not going to be default in vb4.0.4?
thanks for taking the time, but I just feel it will be here in less then a month.
It this not going to be default in vb4.0.4?
thanks for taking the time, but I just feel it will be here in less then a month.
Yeah? Source? :)
Mastergumble
05-15-2010, 01:51 AM
It this not going to be default in vb4.0.4?
thanks for taking the time, but I just feel it will be here in less then a month.
With the introduction of the Facebook Connect in vBulletin was announced new features would come later, nothing was pointed about those changes so far, i believe few tweaks like this may be added but so far there is no info about that or any other change.
TimberFloorAu
05-15-2010, 02:07 AM
Downloaded and Installed.
Working apart from ( dont really understand how it appears ) the Activity and Recommendation Streams in first and last post
Brandon Sheley
05-15-2010, 02:20 AM
I like the comment part, otherwise I don't see much difference in the other version. (example here (http://www.general-forums.com/t661/))
It's good to see new releases Kall :)
TimberFloorAu
05-15-2010, 02:24 AM
In fact we had Facebook connect disabled.
Soon as I re-enabled it, this modification stopped working
In fact we had Facebook connect disabled.
Soon as I re-enabled it, this modification stopped working
YAFB or the default one?
@comments about the activity streams - They're under the 'What's Next' for a reason.. ;)
I like the comment part, otherwise I don't see much difference in the other version. (example here (http://www.general-forums.com/t661/))
It's good to see new releases Kall :)
Well, for starters, I'm not seeing any OpenGraph meta tags at all on your page.
(That, and the fact that this is an Options-controlled automatic template insertion..and at last look, the other one was the iframe version. :P )
Brandon Sheley
05-15-2010, 03:24 AM
Well, for starters, I'm not seeing any OpenGraph meta tags at all on your page.
(That, and the fact that this is an Options-controlled automatic template insertion..and at last look, the other one was the iframe version. :P )
I didn't notice this was for 4.0 either..lol do you have a 3.8 version by chance :)
I suppose I could make one, for you.
Taurus1
05-15-2010, 06:03 AM
This is awesome! I am with Loco.M on a request for a 3.8 version please!
Well. Not quite 'popular' demand, but 2 is enough for me.
https://vborg.vbsupport.ru/showthread.php?t=242536 :) 3.8.4 version. I really just whipped it up quickly, so please advise of any issues.
saadessa
05-15-2010, 08:22 AM
thank you
TimberFloorAu
05-16-2010, 03:01 AM
Hi Kall, sorry havent responded sooner.
Working away at the coast this weekend, and on laptop.
Users report:
1. we are getting stack over flow ( possibly unrelated )
2. yep using stock vb facebook integration.
3. i have disabled all hooks for time being.
4. we are actually having some weird occurences.
All usergroups now see ads lol.
Plus when we click a link, chrome or firefox try to download the page !!
Reported this on vb , i think it is a mysql error on our site
Will try again later, but GREAT hack.
daveaite
05-16-2010, 04:11 AM
creates serious lag issues
Xencored
05-16-2010, 04:35 AM
Awesome
is there anyway to get this to work on Album images and blogs?
i have a working CMS one
Thanks again
Awesome
is there anyway to get this to work on Album images and blogs?
i have a working CMS one
Thanks again
There is, I'm working on that. :)
Early warning: If you are using Standard URLs, you're going to end up pulling your hair out. FB will treat all the different URLs as different pages, so the Like figures wont show right at all.
@TFAu: It will be related to the xmlns stuff in the head, I would guess. YAFB has the same problem.
Xencored
05-16-2010, 05:31 AM
There is, I'm working on that. :)
Early warning: If you are using Standard URLs, you're going to end up pulling your hair out. FB will treat all the different URLs as different pages, so the Like figures wont show right at all.
@TFAu: It will be related to the xmlns stuff in the head, I would guess. YAFB has the same problem.
Indeed ive been trying to do this for days gettting it work on albums and blogs am sure you can do it :)
How can i move the Button /box mate. I have i place am after adding it
Thanks again
P.S also Kall on your site when looking at a profile i see "Two" Like buttons :D thought you should know if you didnt :)
How can i move the Button /box mate. I have i place am after adding it
P.S also Kall on your site when looking at a profile i see "Two" Like buttons :D thought you should know if you didnt :)
Those 2 things would be related... I'm about to release a version that just goes in the navbar and shows on all 'content' pages. I've restricted it with the standard THIS_SCRIPT conditionals that one should use for Ads. (but not removed the old one from the MEMBERINFO template ;) )
I have the vBSEO version ready to go, but now I have to work on the non-vBSEO'd one.
TimberFloorAu
05-16-2010, 07:12 AM
Cheers Kall.
I have never had the YAFB , but .. I know couple of weeks ago, we did a php rollback, to get ioncube working. We have now re-upgraded to latest php.
I will give this hack another go.
Cheers. Ste
TimberFloorAu
05-16-2010, 07:18 AM
Ok done some digging the file that keeps being downloaded, when we are on webpages is receiver.php
Which is the facebook file.
Why on earth.... grrrr ( gonna have to submit support ticket with vb )
Cheers Kall.
I have never had the YAFB , but .. I know couple of weeks ago, we did a php rollback, to get ioncube working. We have now re-upgraded to latest php.
I will give this hack another go.
Cheers. Ste
If it's not working, check the source of a page, look in the very top part. If what I am guessing is true, there'll be a double-up/screwup in there somewhere.
*edit* This modification *does* mess with that stuff in the header.. I have tried to make it non-breaking using conditionals, but yeah.. (it's been a while since I made anything.)
Version 0.4 uploaded - to uninstall, remove the like code from SHOWTHREAD and import the 0.4 product.
This one works on all 'content' pages, comes in the navbar (you need to add the code. :) )
ellinofatsa
05-16-2010, 08:15 AM
thanks its working good on my forum vb4,3
mediax
05-16-2010, 12:38 PM
is there a sollution for vbseo users?
I can't see the like button there is a empty container without the like button
Xencored
05-16-2010, 02:11 PM
Awesome Kall!
Is it ok to add the code
<vb:if condition="THIS_SCRIPT != 'login' AND THIS_SCRIPT != 'private' AND THIS_SCRIPT != 'register' AND THIS_SCRIPT != 'usercp' AND THIS_SCRIPT != 'faq' AND THIS_SCRIPT != 'search' AND THIS_SCRIPT != 'newreply' AND THIS_SCRIPT != 'newthread' AND THIS_SCRIPT != 'sendmessage' AND THIS_SCRIPT != 'payments'">{vb:raw fbog_likebutton}</vb:if>
on the pages i want and it will work fine?
Thanks
dam so close to what i was after added that code to album and blog pages didnt work :(
Awesome Kall!
Is it ok to add the code
<vb:if condition="THIS_SCRIPT != 'login' AND THIS_SCRIPT != 'private' AND THIS_SCRIPT != 'register' AND THIS_SCRIPT != 'usercp' AND THIS_SCRIPT != 'faq' AND THIS_SCRIPT != 'search' AND THIS_SCRIPT != 'newreply' AND THIS_SCRIPT != 'newthread' AND THIS_SCRIPT != 'sendmessage' AND THIS_SCRIPT != 'payments'">{vb:raw fbog_likebutton}</vb:if>
on the pages i want and it will work fine?
Thanks
dam so close to what i was after added that code to album and blog pages didnt work :(
That was the plan.. how 'doesnt it work'?
*edit* You do have to put the code in the navbar template at the moment...
Xencored
05-16-2010, 07:17 PM
That was the plan.. how 'doesnt it work'?
*edit* You do have to put the code in the navbar template at the moment...
Dam i dont want it in the navbar :/
thats why its not working than
It doesn't really *look* like it's in the navbar, not in the traditional sense like a button..
http://www.nzboards.com/the-lounge/rwc-tickets-are-on-sale-90544/ - see it there? That's not cool? :(
Where did you want it exactly? I'm in the beginnings of a nasty head cold, so I'll try to see how to explain it. (Basically, you should be able to get it to display in any template by adding that template to the PreRegister stuff in the plugins.)
Xencored
05-16-2010, 07:44 PM
It doesn't really *look* like it's in the navbar, not in the traditional sense like a button..
http://www.nzboards.com/the-lounge/rwc-tickets-are-on-sale-90544/ - see it there? That's not cool? :(
Where did you want it exactly? I'm in the beginnings of a nasty head cold, so I'll try to see how to explain it. (Basically, you should be able to get it to display in any template by adding that template to the PreRegister stuff in the plugins.)
Ah i see
well am trying to add it in
Template: blog_show_entry (id: 1924)
Template: album_pictureview (id: 1926
Template: postbit_legacy (id: 1809)
Template: vbcms_content_article_page (id: 1925)
Template: 8WR_media_details (id: 2407)
Sorry about your head
Tho my head has been killing me all this week trying to get this to work also
So i feel your pain lol
Thanks again
Kall
If you could give me a example of one of those am sure will pick it up ok / or maybe not :D
postbit_legacy? *sigh* That other mod has totally corrupted everyone. It's not supposed to be for the post.. unless it's showpost.php, it's supposed to be for the page. (If you wanted it on every post, it can't.. because it would show the same 'page' for every post and the click would give the Like to that page, not the individual post.)
Having said that..
Under this line in the Navbar and Metatag plugins:
vB_Template::preRegister('blog_entry',array('faceb ook_liked_url' => $facebook_liked_url));
Try adding:
vB_Template::preRegister('blog_show_entry',array(' facebook_liked_url' => $facebook_liked_url));
(adding whatever template you want it to show in.)
Xencored
05-16-2010, 08:03 PM
postbit_legacy? *sigh* That other mod has totally corrupted everyone. It's not supposed to be for the post.. unless it's showpost.php, it's supposed to be for the page. (If you wanted it on every post, it can't.. because it would show the same 'page' for every post and the click would give the Like to that page, not the individual post.)
Having said that..
Under this line in the Navbar and Metatag plugins:
vB_Template::preRegister('blog_entry',array('faceb ook_liked_url' => $facebook_liked_url));
Try adding:
vB_Template::preRegister('blog_show_entry',array(' facebook_liked_url' => $facebook_liked_url));
(adding whatever template you want it to show in.)
Awesome and sorry about the postbit_legacy it worked so didnt think anything was wrong :o
Thanks for the code above, Now i just want to see if i got this right :D
Lets say am doing this one "8WR_media_details"
vB_Template::preRegister('8WR_media_details',array ('facebook_liked_url' => $facebook_liked_url));
Just add that same as you just said?
Thanks again Kall <3
Awesome and sorry about the postbit_legacy it worked so didnt think anything was wrong :o
Thanks for the code above, Now i just want to see if i got this right :D
Lets say am doing this one "8WR_media_details"
vB_Template::preRegister('8WR_media_details',array ('facebook_liked_url' => $facebook_liked_url));
Just add that same as you just said?
Thanks again Kall <3
That should do it.. I'm not entirely happy with the way I have coded it, it's all probably doubled-up and not needed in both, but hey.. it's Beta, and as long as it works, right? :)
It this not going to be default in vb4.0.4?
thanks for taking the time, but I just feel it will be here in less then a month.
Here's the source - Adrian's blog:
Open Graph and Social Plug-ins
Facebook has come up with a protocol that allows external webpages to fit into their social graph model using meta tags. The basic idea behind Open Graph is that web publishers can add certain meta tags to their webpages that will classify the page according to FB's graph schema. Then, the publisher can add a social plug-in, like the "Like Button" to this web page. The web page then becomes a part of Facebook's social graph, and user's can "Like" your webpage, and it will show up in the user's "About Me" section classified by the meta tags from the page. There are many ways we can leverage this functionality with vBulletin, but off the top of my head I believe we can classify threads, blog posts, and articles with dynamic meta data about the content, add a plug-in (configurable from admincp of course), and allow users to share and discuss vB content from within Facebook. While this may seem like we lose traffic to Facebook, it will actually make vBulletin activity more visible, and should increase participation on the vBulletin boards.
http://developers.facebook.com/docs/opengraph
http://developers.facebook.com/docs/...e/plugins/like
Xencored
05-16-2010, 08:38 PM
That should do it.. I'm not entirely happy with the way I have coded it, it's all probably doubled-up and not needed in both, but hey.. it's Beta, and as long as it works, right? :)
Dont work mate :/ tryed all the templates i listed using
Just dont show the button
<vb:if condition="THIS_SCRIPT != 'login' AND THIS_SCRIPT != 'private' AND THIS_SCRIPT != 'register' AND THIS_SCRIPT != 'usercp' AND THIS_SCRIPT != 'faq' AND THIS_SCRIPT != 'search' AND THIS_SCRIPT != 'newreply' AND THIS_SCRIPT != 'newthread' AND THIS_SCRIPT != 'sendmessage' AND THIS_SCRIPT != 'payments'">{vb:raw fbog_likebutton}</vb:if>
Too add the button
Try just {vb:raw fbog_likebutton} (the conditional is because it's in navbar).
Did you add the new line for the template to both plugins?
Xencored
05-16-2010, 08:53 PM
Try just {vb:raw fbog_likebutton} (the conditional is because it's in navbar).
Did you add the new line for the template to both plugins?
Yea i added them to both mate and that didnt work also :(
Lets say am doing this one "8WR_media_details"
vB_Template::preRegister('8WR_media_details',array ('facebook_liked_url' => $facebook_liked_url));
Just add that same as you just said?
Thanks again Kall <3
Hang on.. is this the only one you are having issues with, or was that also for the likes of show_entry etc as well?
Xencored
05-17-2010, 06:06 PM
Hang on.. is this the only one you are having issues with, or was that also for the likes of show_entry etc as well?
All ones mate i posted above :(
All ones mate i posted above :(
Oh.. dude, I am so sorry. Remember the whole "I am getting a horrid flu" thing?
Long story short, I told you to copy/paste/change the wrong line.
vB_Template::preRegister('blog_show_entry', $templatevalues);
vB_Template::preRegister('album_pictureview', $templatevalues);
vB_Template::preRegister('postbit_legacy', $templatevalues);
vB_Template::preRegister('vbcms_content_article_pa ge', $templatevalues);
vB_Template::preRegister('8WR_media_details', $templatevalues);
Xencored
05-17-2010, 07:19 PM
Oh.. dude, I am so sorry. Remember the whole "I am getting a horrid flu" thing?
Long story short, I told you to copy/paste/change the wrong line.
vB_Template::preRegister('blog_show_entry', $templatevalues);
vB_Template::preRegister('album_pictureview', $templatevalues);
vB_Template::preRegister('postbit_legacy', $templatevalues);
vB_Template::preRegister('vbcms_content_article_pa ge', $templatevalues);
vB_Template::preRegister('8WR_media_details', $templatevalues);
All right mate hehe
Add in both again?
Umm. Nope. I realised where the doubleup was. :)
Pretty sure it's this one: Facebook/OpenGraph Integration - Navbar (and I will have to remember to rename that plugin to 'Button Insert' or something.)
Xencored
05-17-2010, 07:32 PM
Umm. Nope. I realised where the doubleup was. :)
Pretty sure it's this one: Facebook/OpenGraph Integration - Navbar (and I will have to remember to rename that plugin to 'Button Insert' or something.)
All right still not working :/ maybe what am trying to do just cant be done
mediax
05-17-2010, 07:40 PM
hi it's not working :( i can't get the like box on the forums, only a emty box...
www.mforum.nl
hi it's not working :( i can't get the like box on the forums, only a emty box...
www.mforum.nl
That's odd.. the code looks fine..
Try this. Change everything within fbog_like_showthread to this:
<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>
Oh and.. it would have been really sensible to point out that your site is vSBEOd, and which version you are using.
mediax
05-17-2010, 07:57 PM
hi i'm using vbseo 3.5
Indeed. Which version of this modification are you using? The vBSEO one would be an assumption on my part, so I need to clarify.
mediax
05-17-2010, 08:03 PM
yes i'm using the vbseo version
Did using the iframe code instead of the FBML one make any difference?
daveaite
05-17-2010, 08:22 PM
All right still not working :/ maybe what am trying to do just cant be done
Doesn't work either. Uninstalled.
mediax
05-17-2010, 08:23 PM
yes it's working but the location is strange
http://www.mforum.nl/magento-installatie-upgrade-configuratie-vragen/407-extensie-installeren-met-magento-connect-manager.html
Xencored
05-17-2010, 08:34 PM
Doesn't work either. Uninstalled.
I was trying something else
This mod does indeed work the normal way as in "Like under Navbar"
Hey dave, you realise I really don't care whether anything works on your site, right?
I guess it's good, because otherwise we'd soon see this released as a Clone addon.
yes it's working but the location is strange
http://www.mforum.nl/magento-installatie-upgrade-configuratie-vragen/407-extensie-installeren-met-magento-connect-manager.html
I can see the other one still there.. did you replace the code in the existing _showthread template?
I'm going to take a massive leap here and guess that everyone saying 'it doesnt show' has Facebook Connect or YAFB turned on.
Stretching the guesswork further, it doesn't like getting the FB js called twice. Best use the iframe version if you dont want to turn off FB connect for the time being.
*edit* or try removing portions of the .js that's in the _showthread template.
Xencored
05-17-2010, 10:31 PM
I'm going to take a massive leap here and guess that everyone saying 'it doesnt show' has Facebook Connect or YAFB turned on.
Stretching the guesswork further, it doesn't like getting the FB js called twice. Best use the iframe version if you dont want to turn off FB connect for the time being.
*edit* or try removing portions of the .js that's in the _showthread template.
I had none of them but like i said it works fine for me :)
i was trying something else :D with the button;)
EDIT!:
dude no idea what the hell is going on BUT!
Its working lol it seems to be working the button is everywhere ive but it :D
Only one problem is left
it said on facebook "User Likes myanimeisland on myanimeisland :D
Getting there! :D
Heh, you'll probably figure it out soon. I was surprised to find that the current rendition of Connect doesn't play nicely with the Javascript SDK that makes the full-featured Like button.
Xencored
05-19-2010, 08:42 AM
Heh, you'll probably figure it out soon. I was surprised to find that the current rendition of Connect doesn't play nicely with the Javascript SDK that makes the full-featured Like button.
:) thanks again kall awesome work :D
Xencored
05-19-2010, 06:44 PM
All-so lol sorry XD is there a easy way to change it to just the button without the heads/avys showing in the box :D
Yup.
In fbog_like_showthread, find:
show_faces=true
Replace with:
show_faces=false
Xencored
05-19-2010, 06:56 PM
Yup.
In fbog_like_showthread, find:
show_faces=true
Replace with:
show_faces=false
Thanks :D
elemoum
05-20-2010, 03:05 PM
is there a way to show the like button only in the showthread site?
is there a way to show the like button only in the showthread site?
Yes indeed. In the conditional that surrounds it in the navbar template, take out everything and change it to:
<vb:if condition="THIS_SCRIPT == 'showthread'">
thanks nice info..
Thanks, nice spam.
TimberFloorAu
05-21-2010, 07:01 AM
Thanks, nice spam.
FPMSL
I trawl our boards looking for comments like his !
FPMSL
I trawl our boards looking for comments like his !
They are all over the place here, on almost every thread in my 'New Posts' search, and the rather inappropriate ones over at .com.
Hopefully he'll have his signature removed/have all his posts deleted/be banned soon.
elemoum
05-21-2010, 11:45 AM
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.
Xencored
05-21-2010, 01:50 PM
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.
look at the last 3 pages that what i did all the info is there :)
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
look at the last 3 pages that what i did all the info is there :)
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
That is weird.. the only thing that should be slow is the Like Button itself, it shouldn't cause the rest of the page to hang.
If you take out this bit and place it manually somewhere in headinclude, does it make a difference?
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '{vb:raw vboptions.ogfb_appid}',
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
};
(function() {
var e = document.createElement('script');
e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
e.async = true;
document.getElementById('fb-root').appendChild(e);
}());
</script>
Xencored
05-26-2010, 04:18 PM
That is weird.. the only thing that should be slow is the Like Button itself, it shouldn't cause the rest of the page to hang.
If you take out this bit and place it manually somewhere in headinclude, does it make a difference?
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '{vb:raw vboptions.ogfb_appid}',
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
};
(function() {
var e = document.createElement('script');
e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
e.async = true;
document.getElementById('fb-root').appendChild(e);
}());
</script>
Hey Kall sorry been busy mate
Anyways i turned it back on and it was fine. Must of been a bad day i guess
It still working awesome <3
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.
Xencored
05-30-2010, 01:14 AM
Yo Kall :D
I tryed to get it working on my 4.0.1 forum and give me
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
Am guessing its a no no than
Thanks (still running fine on my other one :up:)
Xencored
06-01-2010, 06:56 PM
Meh god dam Error now lol
The page at http://www.myanimeisland.com/threads/89-Some-changes-) could not be reached. on the main site :D
Hmm.
<meta property="og:url" content="http://www.myanimeisland.com/threads/89-Some-changes-?" />
That session id must be what is causing the problem. :(
Gargi
06-01-2010, 07:33 PM
I got similar problems. I guess there are some changes on FB's side :confused:
Xencored
06-01-2010, 07:39 PM
Hmm.
That session id must be what is causing the problem. :(
Should i remove it than mate? *wishes he knew code like Kall* :D
I got similar problems. I guess there are some changes on FB's side :confused:
There allways seem to be pissing about with it :(
Maybe don't touch anything for a while.. hopefully it is indeed on the FB side, and will come right by itself.
Xencored
06-01-2010, 08:13 PM
Maybe don't touch anything for a while.. hopefully it is indeed on the FB side, and will come right by itself.
All right mate cheers ;)
Gargi
06-02-2010, 03:37 AM
it seems to work again here. Hope it will keep this way for a while :) I guess they are working a lot on the FB code so there will be some glitches from time to time :)
Xencored
06-02-2010, 09:28 AM
it seems to work again here. Hope it will keep this way for a while :) I guess they are working a lot on the FB code so there will be some glitches from time to time :)
Yea all working again :D
Alphaforums.com
06-02-2010, 10:29 PM
I got quite an awkward issue. When I click "like" on anything after a successful-looking install, I get an error message telling me that the page could not be reached. Then it shows me the name of the page it can't reach, and that seems to be a page without the trailing slash right after the ".com". It says:
The page at http://alphaforums.comforum.php/ could not be reached.
that slash between the .com and the forum.php, how do I add it?
dezzy94
06-05-2010, 04:40 AM
Works a treat :)
Chase
02-25-2011, 08:38 PM
What's the difference between this? http://developers.facebook.com/docs/reference/plugins/like/
8thos
07-21-2011, 09:42 PM
What's the difference between this? http://developers.facebook.com/docs/reference/plugins/like/
Simply adding a like button will not install the open graph tags for you.
vbulletin facebook connect does not install the open graph tags for you either.
So we've gotta use this for now.
8thos
07-22-2011, 02:44 AM
This mod doesn't work on the latest vbulletins.
coolankur49
11-01-2011, 04:55 PM
well this plugin is not complete. i have to manually edit this to get it work on my latest vB 4.1.7
To get it work,
open fbog_like_metadata, add <meta property="og:locale" content="en_US" />
remove <meta property="og:url" content="{vb:raw vboptions.bburl}{vb:raw facebook_liked_url}" /> as it is already there in vB.
remove <meta property="og:image" content="{vb:stylevar titleimage}" /> if you want the facebook to list all images on that particular thread, you can choose any image at the time of posting the thread on facebook.
open SHOWTHREAD, add <meta property="og:description" content="{vb:raw thread.meta_description}" />
To test, try posting this link to facebook http://www.helpline3d.com/industry-updates/3291-kung-fu-panda-show-premiere-nickelodeon-nov-7-a
my opengraph here (https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.helpline3d.com%2Findustr y-updates%2F3291-kung-fu-panda-show-premiere-nickelodeon-nov-7-a)
i have to tune the code a little bit more to make it works
thanks to coolankur49 for his working tips ^^
Termure
02-20-2012, 06:01 PM
i like it!
one question: Where to modify the code to get white text on black or grey background cause i have a dark template.
thanks
edit:
i also get this when like and cancel for post !
The page failed to provide a valid list of administrators. It needs to specify the administrators using either a "fb:app_id" meta tag, or using a "fb:admins" meta tag to specify a comma-delimited list of Facebook users.
Facebook ©2012
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.