The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Add Facebook "Like" button to your threads [vB 3.8.x] Details »» | |||||||||||||||||||||||||||||||||||||||
Add Facebook "Like" button to your threads [vB 3.8.x]
Developer Last Online: Jun 2013
This mod is based on this, but working on vB 3.8.x.
As was said there: Facebook has just launched their latest "Like" button to developers to use on any site. What this does is utilizes the Advertising module to add the "Like" button to the first post of each thread. Please see screenshots to get an idea. DEMO IFrame Method There is two kind of "Like" button (IFrame Method): - With a smallest counter at his side * Code:
<iframe src="http://www.facebook.com/plugins/like.php?href=http://www.YOURSITE.com/showthread.php$session[sessionurl]?p=$post[postid]&layout=button_count&show_faces=true&width=&action=like&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:100px; height:20px"></iframe> - With a largest counter (and names of people who have clicked) * Code:
<iframe src="http://www.facebook.com/widgets/like.php?href=http://www.YOURSITE.com/showthread.php$session[sessionurl]?p=$post[postid]&show_faces=false& scrolling="no" frameborder="0" style="border:none; width:450px; height:25px"></iframe> Installation: Go to your Postbit/Postbit Legacy template and search for: Code:
<!-- controls --> If you want that the button only appears in first post of a thread, add this variables at the beginning and end of the code that you previously selected: Code:
<if condition="$post[postcount] == 1">YOUR CODE</if> XFBML Method (recommended) This is a richer way to send the contents of your board to Facebook, because it gives to users the possibility to add more information and also an image of your site is displayed on their FB wall (see the screenshots below). Installation: (provided by cdoyle, thanks mate :up You'll need to register your app here: http://developers.facebook.com/setup/, and get an ID to place into the code below. Code:
<if condition="$post[postcount] == 1 AND !in_array($GLOBALS[forumid], array(40, 39))"> <p><fb:like></fb:like></p> <div id="fb-root"></div> <script> window.fbAsyncInit = function() { FB.init({appId: 'yourappID', status: true, cookie: true, xfbml: true}); }; (function() { var e = document.createElement('script'); e.type = 'text/javascript'; e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js'; e.async = true; document.getElementById('fb-root').appendChild(e); }()); </script> </if> Internet Explorer browser fix: https://vborg.vbsupport.ru/showpost....5&postcount=70 ----------------------------------------------------------------------------------------------------- For additional information on this button and different parameters please visit http://developers.facebook.com/docs/...e/plugins/like Remember to click Mark as Installed if you use this modification :up: Download Now
Screenshots
Show Your Support
|
3 благодарности(ей) от: | ||
Drhago, TheLegendB, yasser4101 |
Comments |
#142
|
||||
|
||||
Coders who never update a bugged product and/or never answers questions from users should be banned from ever posting any modification again
It's so pathetic I don't know whether to cry or laugh. |
#143
|
||||
|
||||
Quote:
If programmers were never allowed to release a program with bugs we'd have no software at all- programs are too complicated to not have any bugs... Even something a simple as this has to deal with bugs that may be present in vBulletin itself or the whole of Facebook. YOU'VE NEVER EVEN POSTED IN THIS THREAD BEFORE! - So what problems are YOU having with this mod because we don't all have ESP and are able to know the problem before you post it. If you're commenting on the post made by the guy above you, I saw his post, I'm not the developer so I personally didn't want to comment, but this is what I was going to say: Either the laws of physics have ceases to work in your general vicinity, facebook is down, or YOU made a mistake somewhere. It's one of those three options... None of those are the fault of the guy who released this mod. |
#144
|
||||
|
||||
BirdOPrey5: you act like I criticised you personally. I'm posting on behalf of the many people that never got any answers here from the author, and last time I checked YOU ARE NOT THE AUTHOR OF THIS MOD!
|
#145
|
||||
|
||||
You say I have no standing to answer because I'm not the mod author... I say you have no standing to complain because you never posted in this thread before... so here we are... two people with no stake in either the start nor outcome of this argument.
Isn't that what the Internet is all about? Seriously though... while I'm not the author I have released my fair share of mods and when I see people like you complaining about bugs and lack of support for completely free mods I have to vent... You get what you pay for... You dare suggest someone not be allowed to release a mod because they don't meet your time table for replies? (not that you ever even requested help in this thread.) I say look at the 100+ people who installed and use this no problem- you think they'd prefer he not release it at all because he can't keep on top of support requests? What makes it even more annoying to me is there is nothing wrong with this mod- if you follow the instructions (and facebook is working and your vbulletin is working) it WILL work- there is no doubt it my mind it will work... IF setup correctly. |
#146
|
||||
|
||||
Quote:
Just because the mod says its supported doesn't mean it's supported every day. It's a free mod what do you expect.. jeez. If you paid for it, then you got a right to whine about it... right now you don't!! |
#147
|
|||
|
|||
Anyone know how I would make this appear on all posts but not pm's?
|
#148
|
||||
|
||||
You can put the code in a conditional:
<if condition="THIS_SCRIPT =='showthread'"> code here </if> It won't show outside of the showthread.php file. |
#149
|
|||
|
|||
Quote:
It worked! |
#150
|
|||
|
|||
Quote:
Like it is showing as "Movember Mo Grow Contest Poll VOTING!! - Silverfish Longboarding - The Longboard Skateboarding Commu on silverfishlongboarding.com." I want it to just show "Movember Mo Grow Contest Poll VOTING!! on silverfishlongboarding.com." |
#151
|
||||
|
||||
In your headinclude you should have several "og" meta lines... one of them is for title and should be :
Code:
<meta property="og:title" content="$threadinfo[title]"/> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|