Blog Moved

Blog Moved to: www.techwn.com

Saturday 29 October 2011

phpBB adding "AddThis" Social sharing button

Sharing on social networking sites are very good and traffic generating. There are many plugins that adds social sharing button in wordpress but its a bit hard to add social sharing buttons in phpBB bulletin board. Well, Here everything explained how to add these buttons to your forums.

1. Login to your hosting account and open file manager.
2. Navigate to Forums > Styles > Your current Style > Template > Viewtopic_body.html
3. Open viewtopicbody.html and edit it.
4. Press CTRL+F and find the code below:

</span><br />{postrow.SIGNATURE}</div>
5. Add the code below right after the above code:
<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style ">
<a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
<a class="addthis_button_tweet"></a>
<a class="addthis_button_google_plusone" g:plusone:size="medium"></a>
<a class="addthis_counter addthis_pill_style"></a>
</div>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4eac6d5c6431ec66"></script>
<!-- AddThis Button END --> 

6. Login to your phpBB admin account and Purge the Cache under General tab.

That's all, You are done!

See the result below:


If you have questions, please let me know. :)




2 comments:

Blogmaster said...

Thanks for the code it is much appriciated

pslvseo a8 said...

Filament
In a single WordPress plugin, Filament contains a group of useful features including Flare, a social share button plugin that makes it easy for others to share your blogpost on Twitter, Facebook, Buffer, and more—even spots like Hacker News and Reddit. Other Filament apps include: MailChimp subscribe form, Google Analytics tracking, all-in-one profiles, code management, and share highlighter.

Post a Comment