![]() |
retweet thread
1 Attachment(s)
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']"> Demo of how this works? See this page. Look right under the username. Updated to show under only the first post! |
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> |
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
|
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 :rolleyes: |
Nice mod,
thanks |
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"> 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 |
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"> ....I like the way that it displays in the message area with the compact button! :) |
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?
|
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 :p S-MAN |
This shouldn't really be caused by this mod, the mod is pretty basic, and only calls one thing.
|
How do I put it into the Signature like you did on the demo site?
|
Quote:
|
Quote:
I was using the postbit for a while, but found that when ranks were added, this made it way too busy, so, I moved the button down to the thread tools (not sig), with reply, edit, etc. |
I am getting the same problem with the page going to a white screen when replying. Also, the tweets don't update (i.e. the counter doesn't change).
|
The white page issue isn't an issue with this mod, since it's just a one line addition to the template. There's something wrong with your template.
The tweet counters should update just fine, I've never had an issue with them not doing so. Perhaps there's an issue between your server and tweetmeme |
Some of my members have been asking, but does anyone know the correct condition to not show the tweetme button in pm's?
since it would be pointless to have it in pms :D |
Excuse my lack of computer knowledge but does this mod give you the little "retweet" button I saw half way down the sample page?
If so, what pages does it appear on in the forum, and where on the page does it appear? Thanks Julie-Ann www.decoratingforum.com.au |
Quote:
thanks Julie-Ann |
Hi
I installed the button on my vbulletin forum but have a button with a ? and a green box below. When you press the button I received an error message. I am the Administrator of the forum http://www.decoratingforum.com.au Can you help me to get this working. I am not a computer person so excuse my ignorance if I am doing something basic wrong |
Works great but cant get it working on vbadvanced front page.
Anyone else have this working with vbadvanced? |
if you use the following:
Code:
<if condition="!$GLOBALS['FIRSTPOSTID']"> setting "showthread.php?t=$thread[threadid]" will use the thread ID for each twitter post instead of the URL of the page being viewed. The benefits of this are that if somebody views a thread by showthread.php?p=1234 or showpost.php?p=1234 they will all get classified under the same tweet. Otherwise you will have different counts depending on which URL a user uses to view the page. |
Quote:
Code:
<if condition="!$post['forwardlink']"></if> |
thanks
|
Will this be made available for Vbulletin 4.0?
|
Quote:
|
All times are GMT. The time now is 05:50 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|