The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Add "LIKE" button and other Facebook plugins to threads. Details »» | |||||||||||||||||||||||||||||||||||||||
Add "LIKE" button and other Facebook plugins to threads.
Developer Last Online: Apr 2011
UPDATED: 7/4/10
What's new? Facebook Comment Box I recently added the new facebook "Like" button to my forum and I want to share with everyone! Yes, this is IE,Firefox, Opera, Safari compatible. Yes, this will also show a "comment" box when hover over. First thing's first: 1. Go to http://www.facebook.com/developers/createapp.php (Facebook account required) 2. Enter your site name in the "Application Name" field... "agree" - "Create new app" 3. Click the Website tab 4: Enter your site URL in the "Connect URL" field. i.e. http://www.DOMAIN.com/ (Don't forget the SLASH). 5. Enter DOMAIN.com in the "Base Domain" field and save. 6. In the next page you will see an "Application ID" number. (you'll need it later... keep the window open for now) Template Edits: headinclude: Under: PHP Code:
PHP Code:
* Replace IMAGEPATH with the actual path to the image you want to be displayed on people's facebook wall. (You can use your site logo) *YOUR PROFILE ID = http://www.facebook.com/profile.php?id=randomnumbers ++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++ SHOWTHREAD Find: PHP Code:
PHP Code:
under: PHP Code:
PHP Code:
*Save and upload fb.js to root/images ++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++ Find: PHP Code:
PHP Code:
*The comment box will only be shown to guests. ++++++++++++++++++++++++++++++++++++++ Now we need to place the "LIKE" button somewhere visible. I use postbit_legacy so, this is what I did: Find: PHP Code:
PHP Code:
* you may change the table color to suit your needs. --------------------------------------------------------------------------- Thanks to BirdOPrey5 for pointing out some mistakes. Mark as Installed if you use this modification. DONE! =] Download Now
Screenshots
Show Your Support
|
Comments |
#42
|
||||
|
||||
For what it's worth, I've been having problems installing the Like button even before I found this mod. I pretty much did everything they instructed at Facebook before I read the install instructions here, and it appears to be the same problem. "Like" does not like vBulletin threads. At least not vB3 threads.
|
#43
|
||||
|
||||
Quote:
Code:
<iframe src="http://www.facebook.com/plugins/like.php?href=http://www.YOURDOMAIN/forums/showthread.php$session[sessionurl]?t=$threadid" &show_faces=false&width=350&action=like&colorscheme=dark&height=30" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:350px; height:30px;" allowTransparency="true"></iframe> Additionally I put it in an if tag: Code:
<if condition="!in_array($GLOBALS[forumid], array(2, 3, 6, 15, 24, 45))"> -iframe code- </if> Finally I moved this to under where the page navigation menu would show if it was a multiple page thread on the showthread template... I moved the <td></td> tags out of the built in <if> statement so the table will be there regardless of whether the page nav menu is displayed... the code for everything now looks like: Code:
<td align="$stylevar[right]"><if condition="$show['pagenav']">$pagenav</if> <if condition="!in_array($GLOBALS[forumid], array(2, 3, 6, 15, 24, 45))"> <iframe src="http://www.facebook.com/plugins/like.php?href=http://www.YOURDOMAIN/forums/showthread.php$session[sessionurl]?t=$threadid" &show_faces=false&width=350&action=like&colorscheme=dark&height=30" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:350px; height:30px;" allowTransparency="true"></iframe> </if> </td> http://www.juot.net/forums/showthread.php?t=41185 No login required. |
#44
|
||||
|
||||
MOD has been updated, enjoy!
|
#45
|
||||
|
||||
Okay, made the updated changes. Still giving me the iframe error, even though I'm not using an iframe. Really, I don't see any reason why this shouldn't be working. Everything is as Facebook says it should be done.
|
#46
|
||||
|
||||
Quote:
|
#47
|
||||
|
||||
Quote:
I've implemented facebook plugins in dozens of sites and they all seem to be working great. I believe some javascript on your site is interfering with facebook plugins. |
#48
|
|||
|
|||
can u give the procedure to use navbit area like in this screen shot and also can i use this one for this version 3.7.3?
|
#49
|
||||
|
||||
Quote:
|
#50
|
||||
|
||||
Quote:
|
#51
|
||||
|
||||
Quote:
If you have assigned your profile a custom "name", please read this: http://www.ehow.com/how_5753004_facebook-id.html Quote:
PHP Code:
PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|