vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=320191

Embed Tweets from Twitter BB Code
by BirdOPrey5
10 Sep 2015 19:31

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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

So in this case use:

[tweet]642037356162256896[/tweet]

To embed the tweet.

friendlymela 13 Oct 2015 09:11

any screenshot?

BirdOPrey5 13 Oct 2015 23:56

The demo link is better than a screenshot- http://sedona.vbulletin.net/forum/te...299-test-topic

Madekozu 17 Oct 2015 21:05

yes ... demo link is much better ;)

another "demo" you can find on my homepage, just - the twitter-code is modified for german language

shimei 13 Nov 2015 17:41

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

BirdOPrey5 14 Nov 2015 10:47

Quote:

Originally Posted by shimei (Post 2558728)
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

I can confirm this does happen. If I click the button to not leave the page I am able to edit the title and re-save without a problem.

Unfortunately not likely I can do anything about it, can't really modify Twitter's code.

It is weird though.

Also only happens when a Tweet is in the first post of a topic.

sylv1 31 Jan 2016 20:51

hi

great

have you intend to to make automatic import of any tweet of an tweetter account?


:up:

BirdOPrey5 02 Feb 2016 10:43

No that would be beyond the scope a BB Code. Sorry.

beansbaxter 09 Jul 2016 01:46

This works great on any threads in forums that are publicly accessible. However, nothing displays when the post is in a forum that's private and can only been seen by specific usergroups. Is there a way to make this work in private forums?

Thanks!

BirdOPrey5 09 Jul 2016 10:39

This is the replacement code I literally just used on a post on a private site without issue-


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Virtually identical, but does that help at all?

Cem01 26 Dec 2016 14:39

It has worked on vb 4.2.3 too.

Thanks!

dany_danay 20 May 2018 09:54

Works great. Would be perfect a automatically embed code withot BBCode

Drucifer 03 Jun 2018 23:21

: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.

Drucifer 13 Jun 2018 01:28

Quote:

Originally Posted by shimei (Post 2558728)
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.

liishh 27 Jun 2018 19:21

This does the same thing for me. It loads the tweet but no one can quote the post with the tweet in it.


All times are GMT. The time now is 02:10.

Powered by vBulletin® Version 3.8.13
Copyright © 2019, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.