MyBB Community Forums

Full Version: Facebook Like Button 1.0
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Author: Pratik Unadkat (crazy4cs)
Author site: -
License: Attached inside zip.
Description: Allows you to add a Facebook like button in header on your website.

Presenting you with my first public plugin. Its called Facebook Like Button.

It is very simple and powerful way to add a facebook like button of your website in header.

Installation Instructions:

1. Unzip the archive.
2. Upload FB_like.php inside the inc/plugins/ folder which we just extracted now to (root)./inc/plugins directory of your website's server.
3. Go to ACP > Plugins and find Facebook Like Button setting and activate it.
4. Next, proceed to ACP > Settings > Configuration and find Facebook Like Button settings and add the URL of your Facebook page in the texbox and click save settings.
5. Done, you should now have a like button in header, enjoy.

Previews:

[attachment=24262][attachment=24263][attachment=24264][attachment=24261]

Legal Terms & License:

1. Not distribute under GNU/GPL.
2. You may modify the codes or plugin for your personal use but cannot claim it to be own or remodify and sell or reproduce under any cirumstances.
3. Free to edit for personal use but not distributing to plugin by modifying any codes.

Download:

http://mods.mybb.com/view/facebook-like-button-1-0

Enjoy.
Love this idea. Would really like to see one that has the potential to like each thread, or post, etc instead of just the site as a whole.

Nice work.
I guess the facebook like per each thread and post already exists. Smile
Thanks.
Really? I have searched for a facebook like button and have been unsuccessful in finding one. I don't want to hijack your thread here, but if someone has a link I would greatly appreciate it.
Good Plugin & Good work
Thanks.
This is kinda pointless, the plugin has no functionality, its just a plain template edit.

Just use this and insert it were ever you want:
<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) {return;}
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

<div class="fb-like" data-href="[b]http://test.com[/b]" data-send="true" data-width="450" data-show-faces="true"></div>

Just change the url "http://test.com" to your own url.
(2011-09-29, 08:37 PM)Frank.Barry Wrote: [ -> ]This is kinda pointless, the plugin has no functionality, its just a plain template edit.

Just use this and insert it were ever you want:
<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) {return;}
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

<div class="fb-like" data-href="[b]http://test.com[/b]" data-send="true" data-width="450" data-show-faces="true"></div>

Just change the url "http://test.com" to your own url.
You know that there are lots of newbies and un-advanced users, so its for them, "pro" guys like you shouldn't even bother downloading it. Already 17 downloads in past 25 hours, so not bad and shows how "useless" this plugin is as per your opinion.

Pages: 1 2 3