Simple Machines Community Forum

Customizing SMF => Tips and Tricks => Topic started by: ivytony on March 11, 2005, 05:47:22 PM

Title: does SMF support online reaplayer??
Post by: ivytony on March 11, 2005, 05:47:22 PM
Hi,

I am thingking about allowing users to listen to music or news online in the forum. I want to insert  realplayer. does the forum support realplayer?

thanks
Title: Re: does SMF support online reaplayer??
Post by: [Unknown] on March 11, 2005, 05:48:58 PM
If it's just HTML to be put in the layout, SMF won't even know anything is different.

-[Unknown]
Title: Re: does SMF support online reaplayer??
Post by: Louis (CSpotkill) on March 11, 2005, 11:28:07 PM
If you want to be able to use a Real Player BBCode tag, like [real]url-to-file.ram[/real], try adding this to subs.php just before the comment, // An email address they just typed in.

// Real [real]example.ram[/real]
'~\[real\](?:<br />)*(.+?)(?:<br />)*\[/real\]~i' => isset($disabled['real']) ? 'Real: $1' : '<object type="audio/x-pn-realaudio-plugin" height="60" width="300" data="$1"><param name="src" value="$1" /><param name="controls" value="default" /><param name="autostart" value="false" /></object>',

Example at: http://www.cszen.com/testforum/index.php?topic=1.msg6#msg6
Title: Re: does SMF support online reaplayer??
Post by: ivytony on March 13, 2005, 03:54:51 PM
how to add new BBC codes in the SMF?

hi, I have added the scripts that support insertion of realplayer and wma files in the SMF post. Bud I don't know how to add new bbc codes in the editor (jus like the flash, picture, quote Bulletin board code icon above).

somebody can help me?

thanks
Title: Re: does SMF support online reaplayer??
Post by: Hellen on March 13, 2005, 05:16:43 PM
Quote from: ivytony on March 13, 2005, 03:54:51 PM
how to add new BBC codes in the SMF?

hi, I have added the scripts that support insertion of realplayer and wma files in the SMF post. Bud I don't know how to add new bbc codes in the editor (jus like the flash, picture, quote Bulletin board code icon above).

somebody can help me?

thanks


Hi, here!

http://www.simplemachines.org/community/index.php?topic=30343.0
Title: Re: does SMF support online reaplayer??
Post by: Louis (CSpotkill) on March 13, 2005, 08:01:09 PM
Thanks, Hellen. (Sorry, ivytony, I forgot to link to that after I posted it for Hellen.)
Title: Re: does SMF support online reaplayer??
Post by: Oldiesmann on March 16, 2005, 01:17:34 PM
Louis, thanks for this. I added it and the wma tag to my board at http://www.christianindieforums.com (relatively new - haven't really mentioned it here). I also added tags for MP3, streaming MP3 (.m3u, .pls) and streaming Windows Media Audio (.asx)
Title: Re: does SMF support online reaplayer??
Post by: Louis (CSpotkill) on March 16, 2005, 10:31:08 PM
Quote from: Oldiesmann on March 16, 2005, 01:17:34 PM
Louis, thanks for this. I added it and the wma tag to my board at http://www.christianindieforums.com (relatively new - haven't really mentioned it here). I also added tags for MP3, streaming MP3 (.m3u, .pls) and streaming Windows Media Audio (.asx)
For the other audio formats, if you modified my wma code to fit the mp3 code, etc., I hope you remembered to change type="audio/x-ms-wma" to a player-specific type or something like type="audio/mpeg3" for MP3, as it's possible that someone might want to play an MP3 file but doesn't have a WMA player like Windows Media Player installed. Of course, because you never can predict what software people may have, it's always hard to make sure it works for everybody, but at least you won't be breaking web standards (and potentially confusing a badly written player) by sending an MP3 but calling it a WMA file. ::)
Title: Re: does SMF support online reaplayer??
Post by: CapriSkye on March 27, 2005, 08:58:03 PM
anybody know how to make it work with wmv file? i tried to change type to video/x-ms-wmv but doesn't work. thanks
Title: Re: does SMF support online reaplayer??
Post by: CapriSkye on March 29, 2005, 01:40:43 AM
Quote from: CapriSkye on March 27, 2005, 08:58:03 PM
anybody know how to make it work with wmv file? i tried to change type to video/x-ms-wmv but doesn't work. thanks

nm, it does work
Title: Re: does SMF support online reaplayer??
Post by: Dr.Tech on April 05, 2005, 03:50:41 PM
I have quicktime player working to play audio and video attachments inline under pnPHPBB2.  If anyone knows how to translate it to work properly in SMF, I'd be eternally grateful!

I  could post the lines here, if it would help.
Title: Re: does SMF support online reaplayer??
Post by: 1948Pal on April 12, 2005, 09:38:12 PM
check this http://www.simplemachines.org/community/index.php?topic=32951.0