The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
retweet thread Details »» | |||||||||||||||||||||||||||
I'm not sure this would be a "mod", more of a howto, as it is incredibly easy to do. If it's thought of as more of a howto, one of the mods can move it to the appropriate section.
This "mod" will allow your members to retweet your threads without leaving the forum page itself, and show a count of how many times the thread has been "tweeted" . It involves adding one line to 2 templates, that's it. in postbit (and postbit_legacy), look for Code:
$template_hook[postbit_userinfo_left] Code:
<if condition="!$GLOBALS['FIRSTPOSTID']"> <br /><script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script> </if> Demo of how this works? See this page. Look right under the username. Updated to show under only the first post! Screenshots
Show Your Support
|
Comments |
#2
|
||||
|
||||
great mod!
is there any way we can change the @tweetme username or own as the forum owner? thanks, installing ps.. you can wrap the code with this condition to show on the first post only Code:
<if condition="!$GLOBALS['FIRSTPOSTID']"></if> |
#3
|
|||
|
|||
There are a number of options you can add to the button, but I don't see anything allowing you to change the username. My bet is that it is done this way deliberately to track the tweets through tweetmeme.com
|
#4
|
||||
|
||||
Quote:
As for not being able to change the @tweetme, I know their wordpress plugin allows it, that what I use on TopekaTweetup It also allows you to use other URL shortners, bit.ly, cli.gs and a few others I'll play around with the link, thanks for the info Once I added this to our blog, I've wanted to add it to the form but never took the time to look for the code |
#5
|
||||
|
||||
Nice mod,
thanks |
#6
|
||||
|
||||
Specifying a different source
By default the retweet button will be in the format of “RT @tweetmeme <title> <link>”. You can, however change the button to retweet your user account. By specifying the ‘tweetmeme_source’ parameter in the JavaScript you can change the format to “RT @yourname <title> <link>”. Code:
<script type="text/javascript"> tweetmeme_url = 'http://yoururl.com'; tweetmeme_source = 'TheWDBoards'; </script> <script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script> The example above would retweet in the format of “RT @TheWDBoards <title> <link>”. :up: Edited: I decided to use the compact version of the button to save space on my already busy postbit. Simply went with "tweetmeme_source = 'TheWDBoards'; and then "tweetmeme_style = 'compact';" to show the smaller version of the button and my own source Twitter username. Example: http://www.waltdisneyboards.com/othe...l-orlando.html |
#7
|
||||
|
||||
Here's what I did (with some help from a friend over at vBulletinsetup.com :up: ) to have it shown to the right of the title portion of the message area rather than the postbit....
Code:
<span style="float: right;" class="smallfont"><script type="text/javascript"> tweetmeme_style = 'compact'; tweetmeme_source = 'TheWDBoards'; </script> <script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script></span> ....I like the way that it displays in the message area with the compact button! |
#8
|
||||
|
||||
I've been getting some white screens after someone replies to a thread. Anyone experience this and, more importantly, were you able to fix it?
|
#9
|
||||
|
||||
Quote:
If that is the case make sure Arny you don't have ANY old style codes that your browsers might not like AND update your Java, been a few problems with some forums I work and help on since updating to 3.8.3 then to 3.8.4. Also was it just Firefox users or Internet Explorer or Both? PM me if I don't make it back to this thread anytime soon, I had the white pages after posting and it was some old code in a template, it was fine before the update to 3.8.3 but after that white pages and 9+ hours hunting it down S-MAN |
#10
|
|||
|
|||
This shouldn't really be caused by this mod, the mod is pretty basic, and only calls one thing.
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|