Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Twitter BBCode Details »»
Twitter BBCode
Version: 0.0.2, by kirby14 kirby14 is offline
Developer Last Online: Jan 2014 Show Printable Version Email this Page

Category: New Posting Features - Version: 4.x.x Rating:
Released: 08-31-2012 Last Update: 09-01-2012 Installs: 62
Uses Plugins Template Edits
Re-useable Code Additional Files Translations Is in Beta Stage  
No support by the author.

Information:
  • Allows you to embed a Tweet in a post using only the ID.
  • You can reply, retweet, follow, etc. directly from inside the post.
  • Uses Twitter's oEmbed endpoint.

Usage:
[tweet]<id>[/tweet]

Known Bugs:
On vB4 there is currently an issue with the AJAX quick edit form while in Standard Editor mode. If you want to use the Standard Editor, you will need to do the fix listed below.

Fix For The Bug Listed Above: (vB4 only) in /clientscripts/ckeditor/ckeditor.js line 134 change:
Code:
for(command in y)q.getCommand(y[command]).setState(2);
to
Code:
for(command in y){if(!typeof y[command] === "undefined"){q.getCommand(y[command]).setState(2);}}
Install:
Read the install.txt file in the .zip. It is very simple.

Note: I changed the tag from twitter to tweet because I noticed someone already is using twitter.

github: https://github.com/kirby14/mach_bbcode_twitter

Download Now

File Type: zip mach_bbcode_twitter.zip (27.9 KB, 565 views)

Screenshots

File Type: png twitter-bbcode.png (54.4 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
burak61, daviet

Comments
  #2  
Old 09-01-2012, 02:51 PM
kirby14 kirby14 is offline
 
Join Date: Jul 2012
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Future Plans:
  • Fix the quick edit bug
  • Add twitter to the editor toolbar
  • Clean up code
Reply With Quote
  #3  
Old 09-01-2012, 08:00 PM
dawges dawges is offline
 
Join Date: May 2007
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kirby14 View Post
Future Plans:
  • Fix the quick edit bug
  • Add twitter to the editor toolbar
  • Clean up code
Cant wait to try this after bug fixes. Thanks for this.
Reply With Quote
  #4  
Old 09-01-2012, 08:27 PM
kirby14 kirby14 is offline
 
Join Date: Jul 2012
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dawges View Post
Cant wait to try this after bug fixes. Thanks for this.
Yeah, the Twitter toolbar part should be simple but I haven't done a lot of javascript work and I don't know any YUI so I am counting on someone else from the community helping out.

I'll keep working on it, though.
Reply With Quote
  #5  
Old 09-02-2012, 06:10 PM
kirby14 kirby14 is offline
 
Join Date: Jul 2012
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, I posted a temporary fix. I'll try to pinpoint why there is an undefined object being added to teh array, but for now this should fix it.
Reply With Quote
  #6  
Old 09-04-2012, 01:20 PM
Cybnext Cybnext is offline
 
Join Date: Nov 2002
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works on 3.8 as well. Not sure if the strip_bbcode hook does anything, but everything else is functional.
Reply With Quote
  #7  
Old 09-04-2012, 08:53 PM
SpikeSaunders SpikeSaunders is offline
 
Join Date: Oct 2011
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Lovely, but for some reason on 4.2 it won't give your fancy look like in the screenshot. Works nicely, just no formatting, acts like indented text in the post
==

Just testing a new feature!
— E (@REDACTED) September 4, 2012
Reply With Quote
  #8  
Old 09-04-2012, 09:01 PM
kirby14 kirby14 is offline
 
Join Date: Jul 2012
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you include the javascript line that is in the install.txt file? Just need to put it at the bottom of your headinclude file.
Reply With Quote
  #9  
Old 09-04-2012, 09:14 PM
SpikeSaunders SpikeSaunders is offline
 
Join Date: Oct 2011
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Indeed! However, mine had a slight edit from a previous mod long removed. Replaced that with the new one, fixed. Heh. Thanks man!
Reply With Quote
  #10  
Old 09-04-2012, 09:26 PM
kirby14 kirby14 is offline
 
Join Date: Jul 2012
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SpikeSaunders View Post
Indeed! However, mine had a slight edit from a previous mod long removed. Replaced that with the new one, fixed. Heh. Thanks man!
No problem. I was honestly surprised someone hadn't already written it. It seems like something that could work out pretty well on a lot of installs.
Reply With Quote
Reply


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 11:31 PM.


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.18359 seconds
  • Memory Usage 2,327KB
  • 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
  • (10)post_thanks_box
  • (2)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (2)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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