This guide is going to learn you how to put "share facebook" button on your board ,it is really simple.
First Step: Creating a new Share Facebook button
Navigate to AdminCP » LOOK & FEEL tab » Select your desired skin » Edit Replacement Macros » Click "Add Macro".
Replacement:<script>function fbs_click() {u=location.href;t=document.title;window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');return false;}</script><style> html .fb_share_button { display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; height:15px; border:1px solid #d8dfea; background:url(
no-repeat top right; } html .fb_share_button:hover { color:#fff; border-color:#295582; background:#3b5998 url(
no-repeat top right; text-decoration:none; } </style> <a href="http://www.facebook.com/share.php?u=<url>" class="fb_share_button" onclick="return fbs_click()" target="_blank" style="text-decoration:none;">Share</a>
Variable: FACEBOOK
Second Step: Put Share Facebook button on your forums
Navigate to AdminCP » LOOK & FEEL tab » Select your desired skin » Edit Template HTML » Topic View » RenderRow and Find:
<{P_QUOTE}></a>
Add Below:
<{FACEBOOK}>
Save Template Bit and make those edits on each skin.
Enjoy! You can even change the "share" word to whatever else.
© Made by Jean. Wyświetl pełny artykuł