vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Embedding Twitter videos (https://vborg.vbsupport.ru/showthread.php?t=326936)

jimnyc 12-01-2018 02:45 PM

Embedding Twitter videos
 
I saw a few mods, perhaps dated or not, that allow you to post plain old tweets. I think I have that nailed on my forum, but that's barely used anyway.

What I would like, is the ability to post the videos that are hosted within one's tweets.

Is anyone aware of a mod that I am missing that allows to embed Twitter videos? Or does someone know how to add the BBCode in order to do so?

Thanks much!

-Jim

scottkoz20 12-01-2018 08:03 PM

are you looking to automate this or looking to manually do? If manually, the embed code on twitter should have a checkbox to allow for you to include the video. Not sure if this is what you are looking for

djbaxter 12-30-2018 12:50 PM

1 Attachment(s)
I can't remember where I found this to credit the source:

Create a new BBCode:

Title: Twitter Embed
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]1078420596919357440[/tweet]

Use {option}: No

Button Image (Optional): Twitter.png (see attachment)

Remove Tag If Empty: Yes
Disable BB Code Within This BB Code: No
Disable Smilies Within This BB Code: Yes
Disable Word Wrapping Within This BB Code: Yes
Disable Automatic Link Parsing Within This BB Code: Yes

Usage:
  1. locate the tweet you want to embed on twitter.com
  2. click the down arrow at the top far right
  3. Important: click Select link to Tweet (NOT Embed Tweet)
  4. select just the series of 19 numbers at the very end of the Tweet (NOT the whole URL)
  5. enter this number between the twwet open and close BBCodes as show above in the example

If I recall correctly, you won't see the embedded tweet until you submit the post and since it needs to contact Twitter it may take a few seconds to display.


All times are GMT. The time now is 04:08 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
  • Page Generation 0.00927 seconds
  • Memory Usage 1,711KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete