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
  #52  
Old 06-22-2015, 12:16 PM
alex33_2 alex33_2 is offline
 
Join Date: Jun 2015
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by z3r0 View Post
Probably because it's simple enough just to make your own bbcode from the twitter embed code.

Title: Tweet
BB Code Tag Name: tweet
Replacement:
Code:
<script type="text/javascript">
function loadx(data) {
  document.write(data.html);
}
</script>
<script type="text/javascript" src="https://api.twitter.com/1/statuses/oembed.json?id={param}&callback=loadx"></script>
<div class="twitter" onLoad="loadx().html"/>
Example:[tweet]429641515728527360[/tweet]

Description: use the last number bit from the end of a tweet url and put between tweet tags.
[tweet]429641515728527360[/tweet]

Use {option}: no
Remove Tag If Empty: Yes
Disable BB Code Within This BB Code: Yes
Disable Smilies Within This BB Code: Yes
Disable Word Wrapping Within This BB Code: Yes
Disable Automatic Link Parsing Within This BB Code: Yes

You do need to refresh the page before it shows after posting, but that's no biggie.
Its worked. But if i press "edit" button in the post..post and all buttons from posts buttom like (edit, flag, vote and so on) disappear.

seems like edit button's iframe loads and conflicts with twitters iframe..

need help, thanks.

Vb5
Reply With Quote
  #53  
Old 06-22-2015, 01:44 PM
e24h e24h is offline
 
Join Date: Apr 2010
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorted and uninstalled with help from the support forum.
Reply With Quote
  #54  
Old 01-12-2020, 07:26 PM
Abominus Abominus is offline
 
Join Date: Apr 2007
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by z3r0 View Post
Probably because it's simple enough just to make your own bbcode from the twitter embed code.

Title: Tweet
BB Code Tag Name: tweet
Replacement:
Code:
<script type="text/javascript">
function loadx(data) {
  document.write(data.html);
}
</script>
<script type="text/javascript" src="https://api.twitter.com/1/statuses/oembed.json?id={param}&callback=loadx"></script>
<div class="twitter" onLoad="loadx().html"/>
Example:[tweet]429641515728527360[/tweet]

Description: use the last number bit from the end of a tweet url and put between tweet tags.
[tweet]429641515728527360[/tweet]

Use {option}: no
Remove Tag If Empty: Yes
Disable BB Code Within This BB Code: Yes
Disable Smilies Within This BB Code: Yes
Disable Word Wrapping Within This BB Code: Yes
Disable Automatic Link Parsing Within This BB Code: Yes

You do need to refresh the page before it shows after posting, but that's no biggie.
Thank you, that worked.
Reply With Quote
  #55  
Old 02-09-2023, 05:31 PM
kerry oki kerry oki is offline
 
Join Date: Nov 2009
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this crashed my forum.

I am able to reach the forum's main page but when I click on posts in the forum, I get a 500 Internal Error. So I deleted the modification and everything works okay again.
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 02:02 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.04297 seconds
  • Memory Usage 2,283KB
  • Queries Executed 20 (?)
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
  • (4)bbcode_code
  • (2)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
  • (5)post_thanks_box
  • (2)post_thanks_box_bit
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (2)postbit_attachment
  • (5)postbit_onlinestatus
  • (5)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
  • 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