MyBB Community Forums

Full Version: AddToAny Social Sharing Buttons on the subject wiews
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
admincp-> Go Templates and Style-> Templates-> Themes -> Postbit Templates ->


postbit_classic  Find Template

{$post['button_delete_pm']}




Add this code right below

<!-- AddToAny BEGIN -->
<a class="a2a_dd" href="https://www.addtoany.com/share"> <i class="fa fa-heart"style="color: fuchsia;"> </i> Share
<script>
var a2a_config = a2a_config || {};
a2a_config.linkname = "share";
a2a_config.locale = "us";
</script>
<script async src="https://static.addtoany.com/menu/page.js"></script>
	<!-- AddToAny END -->

view

[Image: aE56jR.jpg]

Left Share Button code  

showthread Templates

<div class="a2a_kit a2a_kit_size_32 a2a_floating_style a2a_vertical_style" style="left:0px; top:150px;">
    <a class="a2a_button_facebook"></a>
    <a class="a2a_button_twitter"></a>
    <a class="a2a_button_google_plus"></a>
    <a class="a2a_button_pinterest"></a>
    <a class="a2a_dd" href="https://www.addtoany.com/share"></a>
</div>
<script async src="https://static.addtoany.com/menu/page.js"></script>
Not working...
Tested moment ago and this is my version.

Doesn't matter either in postbit or postbit_classic

After

{$post['button_delete_pm']}


Add

<!-- AddToAny BEGIN -->
<a class="a2a_dd" href="https://www.addtoany.com/share?linkurl={$mybb->setting['bburl']}/{$post['postlink']}#pid{$post['pid']}">Share</a>
<script>
var a2a_config = a2a_config || {};
a2a_config.linkurl = "{$mybb->settings['bburl']}/{$post['postlink']}#pid{$post['pid']}";
</script>
<script async src="https://static.addtoany.com/menu/page.js"></script>
<!-- AddToAny END -->
working Great thanks dude
(2016-08-24, 03:58 PM)Michael_vx Wrote: [ -> ]working Great thanks dude
Well I will always prefer Addthis buttons, they provide great stats without any extra cost.
topic updated (08.01.2021)