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]

User avatar
M.O.B.
Registered User
Posts: 883
Joined: Tue Jan 04, 2005 1:07 am
Location: San Diego CA USA
Contact:

Re: Twitter bbcode - embed tweet for phpbb 3.0.12

Post by M.O.B. » Sat Apr 08, 2017 4:02 am

@JustinDW, seems to also work for phpBB 3.1.x :)
Image

nametaken33
Registered User
Posts: 9
Joined: Thu Aug 23, 2012 9:39 pm

Re: Twitter bbcode - embed tweet for phpbb 3.0.12

Post by nametaken33 » Wed May 10, 2017 4:42 pm

Just adding in for anyone who stumbles upon this thread like I did. This also still works for 3.2

User avatar
larryl9797
Registered User
Posts: 22
Joined: Thu Feb 15, 2007 2:07 pm

Re: Twitter bbcode - embed tweet for phpbb 3.0.12

Post by larryl9797 » Wed May 17, 2017 12:32 pm

Works great on 3.2!!!!! Easy to add this functionality!

User avatar
KevC
Support Team Member
Support Team Member
Posts: 67019
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK
Contact:

Re: Twitter bbcode - embed tweet for phpbb 3.0.12

Post by KevC » Wed May 17, 2017 12:37 pm

larryl9797 wrote:
Wed May 17, 2017 12:32 pm
Works great on 3.2!!!!! Easy to add this functionality!
Easier still
viewtopic.php?f=456&t=2272431
Although it's a beta it seems to work fine and means you don't need BBcode for most popular media links, except images.
-:|:- Support Request Template -:|:-
Image
Cheap UK Hosting
"In the land of the blind the little green bloke with no pupils is king - init!"

User avatar
larryl9797
Registered User
Posts: 22
Joined: Thu Feb 15, 2007 2:07 pm

Re: Twitter bbcode - embed tweet for phpbb 3.0.12

Post by larryl9797 » Wed May 24, 2017 6:40 pm

thx.. Ill give it a rip

Post Reply

Return to “Custom BBCode Development and Requests”

Who is online

Users browsing this forum: No registered users and 11 guests