1

Topic: [Extension] Mp3

Allow user to embedded MP3 with BB Code tag.

Dependency

  • Pun BBcode

Download

2

Re: [Extension] Mp3

screenshot

http://s7.postimage.org/z1gx9533f/Capture.png

Re: [Extension] Mp3

demo please.

**********
www.ekushay.com
bangla entertainment forum

4

Re: [Extension] Mp3

Oh... you have screenshot. It is a normal player.

Re: [Extension] Mp3

Demo please ? smile

6

Re: [Extension] Mp3

Yeah, it just a normal mp3 player but still need some improved coz' some mp3 file from site like 4shared still failed to stream. And sorry for my bad, I forgot to include the demo.

7

Re: [Extension] Mp3

Check this demo site

8

Re: [Extension] Mp3

@Trace, I have installed tried to use this extension but it is not working.

9

Re: [Extension] Mp3

It won't work, while the mp3 hook from omed-online tag extension still exist on it manifest. Before install this extension, you should find and remove this hook below from the omed-online tag manifest.

<hook id="ps_parse_message_post_merge"><![CDATA[
            // Mod: Flash MP3 Player (8 new lines follow)
            $player_url     = $ext_info['path'].'/dewplayer.swf';
            $player_bgcolor = 'ffffff';
            $player_width   = 240;
            $player_height  = 20;
            $player_param   = '?bgcolor='.$player_bgcolor.'&amp;mp3=$2';  // Bo Helbjardnî şêwazî Dîkey Wegerxer Serdanî "http://www.alsacreations.fr/?dewplayer" Bke .
            $player_alternative = '<strong>Flaş Bûnî Nye</strong>';
            $player_code = "\n\t\t\t\t\t<object type=\"application/x-shockwave-flash\" data=\"".$player_url.$player_param."\" width=\"".$player_width."\" height=\"".$player_height."\">\n\t\t\t\t\t  <param name=\"movie\" value=\"".$player_url.$player_param."\" />\n\t\t\t\t\t  <param name=\"bgcolor\" value=\"#".$player_bgcolor."\" />\n\t\t\t\t\t  ".$player_alternative."\n\t\t\t\t\t</object>\n\t\t\t\t\t";
            $text = preg_replace("/\[mp3 url=(&quot;|\"|'|)(.*?)\\1\]/", $player_code, $text);
    ]]></hook>



$this->add_button(array('name'    => 'mp3', 'weight' => 90, 'image' => true));

$pattern[] = '#\[mp3\]([^\[]*?)\[/mp3\]#ms';

$replace[] = '<object width="200" height="20"><param name="movie" value="dewplayer.swf?mp3=$1" /><param name="wmode" value="transparent" /><embed src="extensions/omedonlie_tags/dewplayer.swf?mp3=$1" type="application/x-shockwave-flash" wmode="transparent" width="200" height="20"></embed></object>';
        

for optional, you can remove the video hook too, and substitute it with fancy video extension from Dimka.

10

Re: [Extension] Mp3

Or for instant, just download and install this barebone Omed-online tag (without video tag and mp3 tag).
https://dl.dropbox.com/s/sc3hhawmfvk1mh … e_tags.zip

And then install this mp3 extensions and fancy video tag by Dimka.

11

Re: [Extension] Mp3

@Delta, thanks. The repair works fine: https://dl.dropbox.com/s/rtr2501hfw0a1jz/more_tags.zip