Tweetely-Di-Poop

More fun than a liquid sodium enema
Locked
Aneris
.
.
Posts: 3198
Joined: Mon Mar 04, 2013 5:36 am
Location: /°\

Tweetely-Di-Poop

#1

Post by Aneris »

Dear grandmaster Lsuoma,
To embedd tweets, could add this little snipped to the board? Would make them appear as intended, and make them searchable (as opposed to having to post screenshots).
Hiya, you need to go to your admin panel > posting > BBcodes.
Then add a new BBcode. You’ll see the two fields to complete: “bbcode” and “html replacement”. Fill those in and save. :)

BBCode Usage

Code: Select all

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

HTML replacement

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'/>
Here is all:
http://punyweakling.com/add-a-tweet-bbc ... pbb-forum/

Aneris
.
.
Posts: 3198
Joined: Mon Mar 04, 2013 5:36 am
Location: /°\

Re: Tweetely-Di-Poop

#2

Post by Aneris »

Test Example:

Lsuoma
Fascist Tit
Posts: 11692
Joined: Tue Jul 03, 2012 5:58 pm
Location: Punggye-ri

Re: Tweetely-Di-Poop

#3

Post by Lsuoma »

Done - please pay special attention to the help text you get when you hover.

Aneris
.
.
Posts: 3198
Joined: Mon Mar 04, 2013 5:36 am
Location: /°\

Re: Tweetely-Di-Poop

#4

Post by Aneris »

Awesome! You are my hero and favorite brit in the USA for today :D

Locked