Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications

Reply
 
Thread Tools
retweet thread Details »»
retweet thread
Version: 1.00, by wolfstream wolfstream is offline
Developer Last Online: Sep 2009 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.8.3 Rating:
Released: 08-21-2009 Last Update: Never Installs: 18
Re-useable Code Translations  
No support by the author.

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]
and after, add
Code:
<if condition="!$GLOBALS['FIRSTPOSTID']">
<br /><script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script>
</if>
This will put this directly UNDER the username, which should work for most.

Demo of how this works? See this page. Look right under the username.

Updated to show under only the first post!

Screenshots

File Type: jpg retweet.jpg (105.8 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 08-27-2009, 03:04 AM
mikeo9043 mikeo9043 is offline
 
Join Date: Mar 2008
Location: MI
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do I put it into the Signature like you did on the demo site?
Reply With Quote
  #13  
Old 08-29-2009, 12:25 AM
ArnyVee's Avatar
ArnyVee ArnyVee is offline
 
Join Date: Mar 2008
Posts: 944
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TheLastSuperman View Post
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
PM sent! :up:
Reply With Quote
  #14  
Old 08-29-2009, 12:35 AM
wolfstream wolfstream is offline
 
Join Date: Jan 2003
Location: Iowa
Posts: 382
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mikeo9043 View Post
How do I put it into the Signature like you did on the demo site?
I'll have the code updated for that in a bit. I'm still trying to work through some bugs.
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.
Reply With Quote
  #15  
Old 08-29-2009, 01:37 PM
rockinaway rockinaway is offline
 
Join Date: Jun 2005
Posts: 211
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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).
Reply With Quote
  #16  
Old 08-29-2009, 03:05 PM
wolfstream wolfstream is offline
 
Join Date: Jan 2003
Location: Iowa
Posts: 382
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #17  
Old 09-20-2009, 06:36 PM
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Location: Google Kansas
Posts: 4,678
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #18  
Old 10-09-2009, 08:37 AM
jamhind jamhind is offline
 
Join Date: Sep 2009
Location: Australia
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #19  
Old 10-11-2009, 09:47 AM
jamhind jamhind is offline
 
Join Date: Sep 2009
Location: Australia
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
in postbit (and postbit_legacy), look for

Block Disabled: (Update License Status)

Suspended or Unlicensed Members Cannot View Code.


and after, add

Block Disabled: (Update License Status)

Suspended or Unlicensed Members Cannot View Code.
Where would I find postbit to add this text?

thanks
Julie-Ann
Reply With Quote
  #20  
Old 10-27-2009, 04:52 AM
jamhind jamhind is offline
 
Join Date: Sep 2009
Location: Australia
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #21  
Old 01-13-2010, 09:09 AM
hydn hydn is offline
 
Join Date: Oct 2005
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works great but cant get it working on vbadvanced front page.

Anyone else have this working with vbadvanced?
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:46 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06806 seconds
  • Memory Usage 2,324KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete