Sound BBCode tags
Sound BBCode tags
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.
Each browser already has a built-in interface for them, you just have to provide a wrapper tag for them to become embeddable.
- musketeer925
- Retired Contributor
- Posts: 2484
- Joined: Mar 28, 2015
- ESO: musketeer925
Re: Sound BBCode tags
Seems unnecessary, but wasn't too difficult:
.OGG:
Change to audio=mpeg for a .mp3
I'm not sure you can get a direct link to soundcloud items though.
.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.
Re: Sound BBCode tags
It doesn't work for me.
- musketeer925
- Retired Contributor
- Posts: 2484
- Joined: Mar 28, 2015
- ESO: musketeer925
Re: Sound BBCode tags
pecelot wrote:It doesn't work for me.
What browser?
Re: Sound BBCode tags
Microsoft Edge LOL
edit: yeah in Mozilla it works
edit: yeah in Mozilla it works
Re: Sound BBCode tags
So now we add all the taunts and custom taunts to the database and implement them like this.
Taunt 48
Taunt 48
Re: Sound BBCode tags
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.
- musketeer925
- Retired Contributor
- Posts: 2484
- Joined: Mar 28, 2015
- ESO: musketeer925
Re: Sound BBCode tags
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.
Who is online
Users browsing this forum: No registered users and 7 guests