Radio BBCode

A selection of BBCodes for use on your phpBB3 Forums.
Post Reply
Candyman
Forum Member
Forum Member
Posts: 12
Joined: Sun May 30, 2010 4:04 pm

Radio BBCode

Post by Candyman »

This BBcode will allow you to post internet radio stations for others to hear.

BBcode Usage:

Code: Select all

[radio]{TEXT}[/radio]
HTML Replace:

Code: Select all

<center><embed src="http://{TEXT}/" type="application/x-mplayer2" width="200" height="65" align="center" border="0"autostart="1" transparentatstart="0" animationatstart="1" showcontrols="true" showaudiocontrols="1" showpositioncontrols="0" autosize="0" showstatusbar="1" displaysize="false">
Helpline:

Code: Select all

Adds media player radio station to your posts.
Example Embed:

Code: Select all

[radio]78.129.196.65:9000[/radio]
Just place any live radio IP and port number between the tags as shown.

Demo

The radio in the example is from Raversparadise.co.uk but any station you know the IP and port number will work.
User avatar
cisco007
Staff
Staff
Posts: 501
Joined: Tue Oct 07, 2008 3:44 am

Re: Radio BBCode

Post by cisco007 »

thanks, but you either have an extre <center> or are missing the closing tag </center>, but if you are trying to keep this xhtml strict, you shouldn't use the <center></center> tags!
Candyman
Forum Member
Forum Member
Posts: 12
Joined: Sun May 30, 2010 4:04 pm

Re: Radio BBCode

Post by Candyman »

Ahhh yes, indeed you are correct. I would edit the top post but i don't seem to have an edit button? hmmm?

Remove the <center> and replace with:

Code: Select all

<div align="center">
At the very end of the code after displaysize="false"> add:

Code: Select all

</div>
User avatar
cisco007
Staff
Staff
Posts: 501
Joined: Tue Oct 07, 2008 3:44 am

Re: Radio BBCode

Post by cisco007 »

you can't use {TEXT} in the newer phpbb versions due to security risk, this is what i use!

Code: Select all

<div style="text-align: center"><embed src="http://{INTTEXT}/" type="application/x-mplayer2" width="200" height="65" align="center" border="0"autostart="1" transparentatstart="0" animationatstart="1" showcontrols="true" showaudiocontrols="1" showpositioncontrols="0" autosize="0" showstatusbar="1" displaysize="false"></div>
walsa
Forum Member
Forum Member
Posts: 3
Joined: Sat Dec 04, 2010 7:07 pm

Re: Radio BBCode

Post by walsa »

Nice bbcode thanks!
jorjamaloney
Forum Member
Forum Member
Posts: 1
Joined: Mon Oct 08, 2012 1:57 am

Re: Radio BBCode

Post by jorjamaloney »

Thanks for the codes!!!
Post Reply