MyBB Community Forums

Full Version: Embed Twitter Tweet MyCode
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I made a MyCode that will embed a Twitter Tweet in a post.

Title: Embed Twitter Status
Short Description: Embeds any public Twitter status in a post.

Regular Expression:

<blockquote class="twitter-tweet" data-lang="en"><p lang="en" dir="ltr"><a href="$1"></a></blockquote>
<script async src="//" charset="utf-8"></script>

A working example can be found on my forum here: << snip - domain expired >>
Works fine, thanks mate Smile
cool idea, works fine thanks so much
Thank you very much!

And i have to permit html in posts for work, right?

BTW, the <script> </script> tags don't work, i have to remove every time i post a tweet in my Forum.

And after the embed tweet, always show a ".>" 

Is a bug?
@palhanow nope you only have to create a MyCode with teh code and replacement given.

Then go to a post and use your

[twitter]url to tweet[/twitter]

On a post i think i dunno how twitter works but mycode works in that sense.
neat thank you, it' works fine for me Smile
After you set up the code like in the op, how do you use it in the reply?
Hi all,

While this does work for posting tweets to my board there is no sound on videos. Any fix for that?

Also, how does mybb not have a simpler way of embedding tweets yet?
I noticed this breaks something in forum.

I will try to explain
You see there's #9 in this message, if I send link of it to another user that user would directly see #9 message.
Same applies to going to Last Post.

It works okay normally,
But if in that page any particular comment has this twitter code, then user goes to -2# message, therefore when last post is #9, user sees #7.
Pages: 1 2