2017-01-08, 12:29 PM
add font awesome in header include templete
add this code in Posbit template and postbit classic templete after {$post['subject_extra']}
For Facebook
into postbit classic and posbit
for twitter
add this code to global.css
Google+ sharing button css
for twitter
preview
![[Image: QVvZ9cg.png]](https://camo.mybb.com/276f8f9785572e213626c61786131490a1849962/687474703a2f2f692e696d6775722e636f6d2f5156765a3963672e706e67)
BR
Mujeeb
<link rel="stylesheet" href="https://use.fontawesome.com/b57b7189ce.css">
add this code in Posbit template and postbit classic templete after {$post['subject_extra']}
For Facebook
<a href="https://www.facebook.com/sharer/sharer.php?u={$mybb->settings['bburl']}/{$post['postlink']}" class="fb-share-button" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;"><i class="fa fa-facebook-square" style="font-size:18px;color:#3B5998"></i></a>
for google + add after above code into postbit classic and posbit
<a href="https://plus.google.com/share?url={$mybb->settings['bburl']}/{$post['postlink']}" onclick="javascript:window.open(this.href,
'', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;"><span class="g-share-button"><i class="fa fa-google-plus-square" style="font-size:18px;color:#d34836"></i></span></a>
for twitter
<a href="https://twitter.com/intent/tweet?text={$thread['subject']} &url={$mybb->settings['bburl']}/{$post['postlink']}"onclick="javascript:window.open(this.href,'', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;"><span class= "t-share-btn"><i class="fa fa-twitter-square" style="font-size:18px;color:#0084b4"></i></span></a>
add this code to global.css
.fb-share-button {
float:right;
margin-right:10px;
}
Google+ sharing button css
.g-share-button {
float:right;
margin-right:5px;
}
for twitter
.t-share-btn {
float:right;
margin-right:5px;}
preview
BR
Mujeeb