Customizing SMF > Tips and Tricks

[TIP/TRICK] Adding Twitter and Facebook "Share/Like" Button To Posts

<< < (3/12) > >>

Thanks for increase my knowledge ,it such a wonderful idea for sharing.

Can someone please explain how I can use the following from  or something similar to place the Google +1 button along side the Twitter and Facebook icons?  I have tried myself, but can't get it to work.   :-\

Also as a side note.  My forum is set to a fixed width of 1024px.  Any title with more than a few words causes the twitter button to vanish, but the Facebook like button remains.

--- Code: --- if ($message['id'] == $context['topic_first_message'] )
echo '<g:plusone href="' . $scripturl . '?topic=' . $context['current_topic'] . '" size="small"></g:plusone>
<script type="text/javascript" src=""></script>';

--- End code ---

I have SMF 1.1 and the Display Template looks a little different than this one does. Can this code be modified to work with 1.1?

Thank you!

Hello friend, thank you very much for any modification, but it happens that when I give a twitter, will not be adding the counter. How I can do to make this go adding the twitter done?

Thank you very much for the help

Sorry for my bad english

How to modify to make this work in 1.1.14 or is there some ready TIP to add Facebook Like button in 1.1.4..


[0] Message Index

[#] Next page

[*] Previous page

Go to full version