Go Back   vb.org Archive > vBulletin Modifications > vBulletin 5.x Modifications > vBulletin 5.x Products & Extensions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Embed Tweets from Twitter BB Code Details »»
Embed Tweets from Twitter BB Code
Version: 1.00, by BirdOPrey5 (Senior Member) BirdOPrey5 is offline
Developer Last Online: Aug 2023 Show Printable Version Email this Page

Category: BB Code Enhancements - Version: 5.1.x Rating:
Released: 09-09-2015 Last Update: Never Installs: 32
Re-useable Code Translations  
No support by the author.

As with most BB Codes this should work on all versions of vBulletin including vBCloud.

Will embed tweets as you see here.

Log into your Admin CP go to Custom BB Codes on the side menu, expand it, and choose Add New Bb Code.

On the next page enter the following:

Title: Tweet
BB Code Tag Name: tweet
Replacement:
Code:
<blockquote class="twitter-tweet" lang="en"><p lang="en" dir="ltr"><a href="https://twitter.com/abc/status/{param}">Embedded Tweet</a></blockquote>
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
Example: [tweet]642036152850083841[/tweet]
Description: Embeds a Tweet
Use Option: No
Button Image: (Leave blank or find your own icon image)
Remove Tag If Empty: YES
All remaining Yes/No questions - also YES.

And save the BB Code.

Now in a post you can post something like

[tweet]642036152850083841[/tweet]

to embed a tweet.

You find the number by finding the link to the tweet on twitter and taking the number from the link.

For example the link to a tweet might be:
Code:
https://twitter.com/fox5ny/status/642037356162256896
So in this case use:

[tweet]642037356162256896[/tweet]

To embed the tweet.

Show Your Support

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

Comments
  #12  
Old 12-26-2016, 12:39 PM
Cem01 Cem01 is offline
 
Join Date: Nov 2016
Location: Istanbul, Turkey
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It has worked on vb 4.2.3 too.

Thanks!
Reply With Quote
Благодарность от:
BirdOPrey5
  #13  
Old 05-20-2018, 06:54 AM
dany_danay dany_danay is offline
 
Join Date: Jul 2009
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works great. Would be perfect a automatically embed code withot BBCode
Reply With Quote
  #14  
Old 06-03-2018, 08:21 PM
Drucifer's Avatar
Drucifer Drucifer is offline
 
Join Date: Feb 2010
Location: NY Hudson Valley
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

:up: Works great in the forum but if you have to edit the post, it does get tricky.

:down: You must click the stay on page in order to perform an edit function.

:down: Also, the tweet seems reloads itself every few seconds sometimes when posting it in vBShout v6.
Reply With Quote
  #15  
Old 06-12-2018, 10:28 PM
Drucifer's Avatar
Drucifer Drucifer is offline
 
Join Date: Feb 2010
Location: NY Hudson Valley
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by shimei View Post
This is odd. The mod works great, except one bug. When I try to edit a thread's title that has a tweet embedded ..... the pop up asking me if I want to navigate away from the page displays each time I click on the Thread Title input box.

Can someone verify this? I am using VB 5.1.9
Same thing happens when you try to QUOTE the Tweet in a new post.
Reply With Quote
  #16  
Old 06-27-2018, 04:21 PM
liishh liishh is offline
 
Join Date: Jun 2018
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This does the same thing for me. It loads the tweet but no one can quote the post with the tweet in it.
Reply With Quote
  #17  
Old 06-30-2018, 12:17 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does the issue happen when using the Standard Editor as opposed to the WYSIWYG (Advanced) Editor?
Reply With Quote
  #18  
Old 09-06-2018, 01:40 AM
Josh789 Josh789 is offline
 
Join Date: Apr 2015
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
Does the issue happen when using the Standard Editor as opposed to the WYSIWYG (Advanced) Editor?
Yes it does.

Anyone's help with this would be great. The mod works very well but the posts cannot be quoted!
Reply With Quote
  #19  
Old 07-12-2019, 04:27 AM
charlesr charlesr is offline
 
Join Date: Aug 2009
Posts: 177
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tried this and it works great for the tweet, but any text after the tweet gets hyperlinked. Any ideas?
Reply With Quote
  #20  
Old 07-12-2019, 04:56 AM
Drucifer's Avatar
Drucifer Drucifer is offline
 
Join Date: Feb 2010
Location: NY Hudson Valley
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by charlesr View Post
Tried this and it works great for the tweet, but any text after the tweet gets hyperlinked. Any ideas?
Have same issue
Reply With Quote
  #21  
Old 07-16-2019, 05:35 PM
charlesr charlesr is offline
 
Join Date: Aug 2009
Posts: 177
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Drucifer View Post
Have same issue
See post #10 for the solution. The A tag wasn't closed off in the original post for some reason.
https://vborg.vbsupport.ru/showpost....6&postcount=10
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 09:19 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.05104 seconds
  • Memory Usage 2,325KB
  • 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
  • (4)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
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete