Add Twitter button with tweet count into your topics.
Open:
Themes/default/Index.template.php
Find:
// Here comes the JavaScript bits!
echo '
Add after:
<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
Open:
Themes/default/Display.template.php
Find:
// Maybe they want to report this post to the moderator(s)?
Add after:
if ($message['id'] == $context['topic_first_message'])
echo'
<br/>
<span style="float:left;">
<a href="http://twitter.com/share" class="twitter-share-button" data-count="vertical">Tweet</a></span>';
That's it! Have fun! ;)
Or you can use this:
http://custom.simplemachines.org/mods/index.php?mod=2111 (http://custom.simplemachines.org/mods/index.php?mod=2111)
Hey don't spoil BDs fun.
He gets grouchy ya know.
;D
Sorry. I think everyone should know that there is a mod that can do this.
I didn't know there was a mod for that. ;)
This topic should be moved to the this (http://www.simplemachines.org/community/index.php?board=115.0) board.
hello,
it's the same technique for smf 1.1.13 ?
But, it's very easy to add it on SMF 1.1.13. I will show you when I will have more time.
Zitat von: Masterd in März 14, 2011, 12:44:19 NACHMITTAGS
But, it's very easy to add it on SMF 1.1.13. I will show you when I will have more time.
heh, not trying to be a pain, but bump -
I wanna know this to. ;)
Code is almost the same. :)
Index.template.php
Find this.
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/script.js?fin11"></script>
Add this after.
<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
Display.template.php
Find this.
// Maybe they want to report this post to the moderator(s)?
Add this after.
if ($message['id'] == $context['topic_first_message'])
echo'
<br/>
<span>
<a href="http://twitter.com/share" class="twitter-share-button" data-count="vertical">Tweet</a></span>';
Is there any way I can just click click to ad this to my forum? I'm afraid I don't understand codes and html and all that stuff.
Thanks, I'm gonna use this on my new site.
Zitat von: kosher nostra in März 27, 2011, 03:28:36 NACHMITTAGS
Is there any way I can just click click to ad this to my forum? I'm afraid I don't understand codes and html and all that stuff.
Take a look at what I posted.
Zitat von: Masterd in Dezember 07, 2010, 03:58:07 NACHMITTAGS
Or you can use this:
http://custom.simplemachines.org/mods/index.php?mod=2111 (http://custom.simplemachines.org/mods/index.php?mod=2111)
My site is pretty much a twitter based site, so this is super helpful. Thanks!
Zitat von: pearpandas in März 31, 2011, 01:32:57 NACHMITTAGS
My site is pretty much a twitter based site, so this is super helpful. Thanks!
You're most welcome.
I have a twitter update mod in the cue being reviewed at the moment.
When ever you post on twitter, it will show below the SMF menu. Very simple. I use it for announcement, web findings etc. Click my signature and you can see the demo.