Customizing SMF > Tips and Tricks
[TIP/TRICK] Adding Twitter and Facebook "Share/Like" Button To Posts
Mbravo:
Thanks for increase my knowledge ,it such a wonderful idea for sharing.
MarcusJ:
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="http://apis.google.com/js/plusone.js"></script>';
}
--- End code ---
8hoursale:
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!
aelmiger:
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
mijo:
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..
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version