MyBB Community Forums

Full Version: Facebook Like Button
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Well.. i don't know how to make mybb plugin, so i just edit and add a few lines on mybb templates.

1. login to your admin panel
2. Go to Templates & Styles
3. Click Template and expands your current templates
4. Click on Show Thread Templates >> showthread
5. Fine {$multipage}, edit and add like below
	<div align="left">
	<div class="float_left">
	<iframe src="{$mybb->settings['bburl']}/showthread.php?tid={$tid}&amp;layout=button_count&amp;show_faces=false&amp;width=450&amp;action=like&amp;font=tahoma&amp;colorscheme=light&amp;height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:23px;" allowTransparency="true"></iframe>
	<div style="float: right;">{$ratethread}</div>

6. Save and Continue Editing, edit until you comfort with the layout

If you want to display the name who click the like button and also some message to click, better you edit the..




Some screenshots using layout=standard:

before clicked
[Image: 16gls0k.jpg]

after clicked
[Image: s275eq.jpg]

on facebook news feed
[Image: 15goy88.jpg]

Note: The Facebook Like Button code is the code inside tag <iframe> and </iframe>
You don't need an iframe for this.
How can you do it without an iframe?
dokumentasi ada disini

Maybe this is the documentation Wink

But, the code place inside showthread_classic_header for MyBB Friendly URL enabled.
<td class="tcat"><iframe src="{$mybb->settings['bburl']}/thread-{$tid}.html&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;font&amp;colorscheme=light&amp;height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:23px;" allowTransparency="true"></iframe></td>

But, I dont know how long Facebook received between first likes and another likes for one person?