Sound BBCode tags

User avatar
Nauru Dolan
Ninja
Posts: 13069
Joined: Sep 17, 2015

Sound BBCode tags

Post by Dolan »

I know it's possible. Could be useful to embed Soundcloud music links. Or mp3s hosted on other sites.

Each browser already has a built-in interface for them, you just have to provide a wrapper tag for them to become embeddable.
User avatar
United States of America musketeer925
Retired Contributor
Donator 01
Posts: 2484
Joined: Mar 28, 2015
ESO: musketeer925

Re: Sound BBCode tags

Post by musketeer925 »

Seems unnecessary, but wasn't too difficult:

.OGG:


Code: Select all

[audio=ogg]https://upload.wikimedia.org/wikipedia/commons/8/8a/Bass_drum.ogg[/audio]


Change to audio=mpeg for a .mp3

I'm not sure you can get a direct link to soundcloud items though.
User avatar
Poland pecelot
Retired Contributor
Donator 03
Posts: 10459
Joined: Mar 25, 2015
ESO: Pezet

Re: Sound BBCode tags

Post by pecelot »

It doesn't work for me.
User avatar
United States of America musketeer925
Retired Contributor
Donator 01
Posts: 2484
Joined: Mar 28, 2015
ESO: musketeer925

Re: Sound BBCode tags

Post by musketeer925 »

pecelot wrote:It doesn't work for me.

What browser?
User avatar
Poland pecelot
Retired Contributor
Donator 03
Posts: 10459
Joined: Mar 25, 2015
ESO: Pezet

Re: Sound BBCode tags

Post by pecelot »

Microsoft Edge LOL
edit: yeah in Mozilla it works
Netherlands momuuu
Ninja
Posts: 14237
Joined: Jun 7, 2015
ESO: Jerom_

Re: Sound BBCode tags

  • Quote

Post by momuuu »

So now we add all the taunts and custom taunts to the database and implement them like this.

Taunt 48
User avatar
Nauru Dolan
Ninja
Posts: 13069
Joined: Sep 17, 2015

Re: Sound BBCode tags

Post by Dolan »

musketeer925 wrote:Seems unnecessary, but wasn't too difficult:
I'm not sure you can get a direct link to soundcloud items though.

Thanks. It's not unnecessary because we have a music thread where we can now post links to soundfiles directly, no need to have to post videos anymore.

And embedding sound files doesn't cost the site any resource, since it's all rendered on the client-side.

Can you also add a button in the post editor UI for it? It should be trivial.

Also, there might be a way to embed Soundcloud links, by wrapping their player in an iframe. Or there might be some phpBB3 add-ons that can parse links and render the player. Still, at least we have an extra option now.

User avatar
United States of America musketeer925
Retired Contributor
Donator 01
Posts: 2484
Joined: Mar 28, 2015
ESO: musketeer925

Re: Sound BBCode tags

  • Quote

Post by musketeer925 »

Dolan wrote:Can you also add a button in the post editor UI for it? It should be trivial.

Done.

Also, there might be a way to embed Soundcloud links, by wrapping their player in an iframe. Or there might be some phpBB3 add-ons that can parse links and render the player. Still, at least we have an extra option now.

Starting to sound a bit less trivial.
Palestine Mimsy for President
Jaeger
Posts: 3680
Joined: Feb 21, 2015

Re: Sound BBCode tags

Post by Mimsy for President »

Tesht

Who is online

Users browsing this forum: No registered users and 4 guests

Which top 10 players do you wish to see listed?

All-time

Active last two weeks

Active last month

Supremacy

Treaty

Official

ESOC Patch

Treaty Patch

1v1 Elo

2v2 Elo

3v3 Elo

Power Rating

Which streams do you wish to see listed?

Twitch

Age of Empires III

Age of Empires IV