Posted on 8 Comments

Adding social share buttons in MyBB

Social sharing can increase overall traffic for your forums and in MyBB forums, there is no default option of adding share buttons. I wrote this tutorial about social share buttons in MyBB to help everyone add share buttons easily and gain traffic without use of custom plugins. I am using showthread page as an example, however you can add social buttons to any page using below tutorial.

It is very easy to do, just follow this tutorial on adding the social sharing buttons. I am using font-awesome based icons, you can use anything you want ie image or text or even any other type of icons. Follow the steps below :-

  • Go to your admin CP and your theme template. You will find showthread template.
  • Find {$usersbrowsing} and add the below code above it
    Share this:
    <a href="#" title="Facebook"><span class="fb"><i class="fa fa-facebook"></i></span></a>
    <a href="#" title="Google+"><span class="google"><i class="fa fa-google-plus"></i></span></a>
    <a href="#" title="Twitter"><span class="twitter"><i class="fa fa-twitter"></i></span></a>
    <a href="#" title="RSS"><span class="rss"><i class="fa fa-rss"></i></span></a>

    You can style it in any way your want, just like a text. It is very simple.That’s it, you now have social share buttons in your MyBB forums. I hope you like this tutorial. You can also use addthis social sharing button to even measure statistics of sharing platforms. 😉Demo: You can check following Adding share button mybb link.

    In case of any queries, let me know.


8 thoughts on “Adding social share buttons in MyBB

  1. Thanks for this tutorial, Can I also use it for MyBB 1.6 version ?

    1. Hey, yes sure. It can be used for both MyBB 1.8 and 1.6 series 🙂
      Let me know if you get any issues.


  2. Pls Put Your Codes In Textarea Form To Allow Proper Copy And To Allow Errors.


    1. It is already in proper textarea 🙂

  3. I tried to add this to my index page but it doesn’t appear.
    There wasn’t a {$usersbrowsing} to post above.

    1. Hey Kimmy,
      It is possible that in your theme, $usersbrowsing is not present.
      Can you try adding it above {$quickreply} ?


  4. HI I am adding the code above in the above usersbrowsing and nothing changes

    1. Hello Kelly,
      Which theme are you using, it is possible that some javascript might be conflicting on your website.


Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.