Twitter bbcode - embed tweet for phpbb 3.0.12

Get help developing custom BBCodes or request one.
Post Reply
vjmtz
Registered User
Posts: 7
Joined: Thu Dec 22, 2016 9:37 pm
Contact:

Twitter bbcode - embed tweet for phpbb 3.0.12

Post by vjmtz » Tue Dec 27, 2016 5:55 pm

I searched and tried several solutions and none of them work.

Can you give me the right twitter bbcode?

JustinDW
Registered User
Posts: 1
Joined: Sun Jan 22, 2017 6:50 am

Re: Twitter bbcode - embed tweet for phpbb 3.0.12

Post by JustinDW » Sun Jan 22, 2017 6:54 am

This one is working for me:

BB Code

Code: Select all

[tweet]{SIMPLETEXT1}://twitter.com/{SIMPLETEXT2}/status/{IDENTIFIER}[/tweet]
HTML

Code: Select all

<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={IDENTIFIER}&callback=loadx"></script>
<div class='twitter' onLoad='loadx().html'/></div>
How To Use

Code: Select all

[tweet]https://twitter.com/username/status/45645656565[/tweet]

Post Reply

Return to “Custom BBCode Development and Requests”

Who is online

Users browsing this forum: No registered users and 4 guests