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 |
#112
|
||||
|
||||
I see you have the like button on every post- does it link back to the whole thread or just the single post?
|
#113
|
|||
|
|||
Quote:
http://www.car-seat.org/showthread.php?p=1464875 Also, if you Like a post, it only applies to that post and not any of the other posts in the thread. For that reason, I opted to make it more apparent rather than limit it to the first post. Also, the comment box appeared to be somehow tied to posts before I removed it. If I was in hybrid view and clicked on a post and left a comment in the box below the thread, I could not view the comments if I clicked the threaded link to another post in the thread. Given that it could be hard to find comments so that any questions would be unlikely to be answered, I decided to remove it. Plus, we allow unregistered members to post (via moderation) questions in some forums. For another forum format, it seems like it was a very nice way to allow visitors to leave a comment. Oh, I do like how the opengraph image setting forces the Facebook Sharer app to use the forum logo, rather than a random image from the page. That was annoying some users when they posted photos and the sharer would grab them and slap them on FB. |
#114
|
|||
|
|||
I use this mod with a slight modification as my requirement is to show the LIKE button in front of the thread title for a selected forum instead of the individual post.
Managed this by adding the codes to display the like button in the threadbits template. Complete the steps given up to editing the headerinclude template. After editing the headerinclude templete follow these instructions : Template to edit : threadbits Find : Code:
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]"<if condition="$show['gotonewpost']"> style="font-weight:bold"</if>>$thread[threadtitle]</a> Code:
<!--- facebook Like button -------> <if condition="$foruminfo[forumid]==xxx"> <span id="fb-root"></span> <script src="/images/fb.js" type="text/javascript"></script> <fb:like href="$vboptions[bburl]/showthread.php$session[sessionurl]?t=$thread[realthreadid]" width="260"></fb:like></if> Thats it. It shows the FB Like button as follows : Attachment 123206 |
#115
|
|||
|
|||
This mod is not compatible with vbSEO. You will get an error every time. In order for the app to work, you must make coding changes which are available at vbSEO forums.
|
#116
|
|||
|
|||
I just went live with this mod. I did end up limiting it to the first post. I didn't realize that first post wasn't ONLY the very first post, but at least in hybrid view, it is the first post on the page you are viewing even if it isn't the first post in the thread, which is nice. It worked fine on all posts, but the resizing could take a while on a long thread and was a little annoying. Anyone head about the facebook bug issue? Is it resolved or is there any other fix aside from the custom channel mod?
|
#117
|
||||
|
||||
Quote:
|
#118
|
|||
|
|||
Thank you, works great!
But how to change language of this text: "Be the first of your friends to like this" and like button ? |
#119
|
|||
|
|||
Facebook plugins/like.php has been the top referrer (outside of search engines) for a few months now. Great mod!
|
#120
|
||||
|
||||
Quote:
I run the latest vbseo on 3.8.5 and this mod works fine for me- https://vborg.vbsupport.ru/showthrea...03#post2152203 |
#121
|
|||
|
|||
Nevermind got it to work. I put the fb.js file in forum root instead of site root.
How can I change the font color of "Be the first of your friends to like this." |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|