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.
![]() 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 |
#52
|
||||
|
||||
![]()
Thanks for the reply, but I guess my question is why would I only want to show the comment box to guests? I think I'm missing something because wouldn't everyone want a comment to be entered by anyone, member or guest alike? If I don't show the comment box to registered users, like you originally coded, then how would registered users leave comments- is there some other way for them?
![]() |
#53
|
||||
|
||||
![]()
You say:
Quote:
Code:
<br /> <!-- Facebook Comment --> <if condition="in_array($bbuserinfo[usergroupid],array(1))"><div align="center"> <fb:comments numposts="3" width="800"></fb:comments> </div></if> <!-- / Facebook Comment --> I'm starting to think this is something different then the box where users enter a comment to be posted to their page- maybe this is where comments are left for the thread it's showing? EDIT- I see this is a completely different thing then simply the 'Like' button... OK, not sure if I need it but will try. One more thing- I tried this in IE, FF, Chrome, Safari, and Opera- and it worked in all of them but Opera- in Opera I just get the 'loading' graphic and the comment box never appears- but I don't care about Opera anyway- just an FYI. |
#54
|
||||
|
||||
![]() Quote:
You may not need it, others may. Personally, i would recommend it, why force someone to register if he/she is only going to post once and never come back? You may "lose" that one registration but in return you will get 3 more to replace him/her. Let visitors drive you more traffic. ![]() |
#55
|
||||
|
||||
![]() Quote:
Quote:
Thanks for noticing ![]() |
#56
|
||||
|
||||
![]() Quote:
Also I agree with your logic of showing it only to guests but I would suggest also at least the admin, if not mods, in case there is a comment that needs to be removed- I don't usually visit my board as a guest and I may not even be aware of a 'bad' comment otherwise. |
#57
|
||||
|
||||
![]()
OK, I made a comment with the comment box, it showed up on Facebook but after I left the page and returned to it the comment on the page was gone.
|
#58
|
|||
|
|||
![]()
can u give the procedure to use navbit area like in the screen shot and also can i use this one for this version 3.7.3?
|
#59
|
||||
|
||||
![]() Quote:
|
#60
|
||||
|
||||
![]() Quote:
Navbar template located in Navigation / Breadcrumb Templates Find: PHP Code:
Replace with: PHP Code:
|
#61
|
||||
|
||||
![]()
Actually, I just installed the Wibiya toolbar, so I'm think going with the Like button on that. Thanks, though.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|