Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Pierre29200 on June 02, 2007, 10:57:05 PM

Title: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: Pierre29200 on June 02, 2007, 10:57:05 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=829)
Rate this mod (http://mods.simplemachines.org/index.php?action=review;sa=add;mod=829)

This mod allows a poster the option to embed a mp3 file in a post through the use of the [mp3=200,20,0,center][/mp3] BBC (bulletin board code) tags.  The code it uses is XHTML compliant, this keeping with the forum's XHTML validity.

Its use is easy: simply plug the complete url of the mp3 file between the [mp3=200,20,0,center]http://your_url.com/your_mp3_file.mp3[/mp3] tags.

Syntax: [mp3=width,height,autostart,position]http://your_url.com/your_mp3_file.mp3[/mp3]
autostart : 0|1
position :  left|center|right

Typical sizes for the player
- single mp3 : width = 10 x height
for example width=200, height=20
- Multi player : width = 12 x height
for example width=240, height=20
if width is too low, navigation buttons are hidden.

Examples:
- single mp3
[mp3=200,20,1,center]http://pierrebrest.free.fr/biosynergie/audio/Coue/01-1.Introduction.mp3[/mp3]
- multi-mp3
[mp3=240,20,1,center]http://pierrebrest.free.fr/biosynergie/audio/Coue/01-1.Introduction.mp3|
http://pierrebrest.free.fr/biosynergie/audio/Coue/02-2.AutosuggestionConsciente.mp3|
http://pierrebrest.free.fr/biosynergie/audio/Coue/03-3.SuggestionEmileCoue.mp3[/mp3]

You can write on one or several lignes the url for mp3 files.


Demo: http://forum.frequencebonheur.fr/index.php?topic=282.0


Language Integration

To make the mod work with your language, simply open Modifications.*.php, where * is the language you wish to integrate the mod into, and add $txt['mp3'] = 'mp3 insert full url'; to its own line in the file.
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: nitins60 on June 03, 2007, 04:26:03 AM
Something interesting.:)
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: Pierre29200 on June 04, 2007, 12:26:44 PM
Quote from: dannbass on June 04, 2007, 11:38:56 AM
Wonderful!! Thanks a lot! Very simple and quite nice!!!
Just a question... if I want to remove the podcast function, should I just remove it from the Subs.php?

Once again... thank you very much!!

First solution is to add this caracter at the end of the full URL : "|"
and to adjust width to 200.

So the system "thinks" you want to use multi-mp3 and it doesn't display the podcast function !
With width=200, the navigation buttons are hidden...

If you have already installed this mod it's not a good idea to modify Subs.php manually, because after, you can't uninstall automatically the mod because the file is not in the waited state.

Instead, you can install all manually following instructions here :
http://modparser.dev.dansoftaustralia.net/

Just download the mod and tell the path of the zip file and you can see every file to modify manually and how to do that.

It's easy to use.

If you prefer, you can find in joined file modified version without podcast function.
In this case, uninstall previous mod, erase it from administrative part of smf
Download new version (joined file) again and install it.

Tell me if all is good now.

Pierre
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: shadow82x on June 04, 2007, 04:38:06 PM
A very nice mod! I will use it
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: qtime on June 06, 2007, 05:50:20 PM
Looks very nice, thx for adding!
Only a pain in the ass is the copyright problems of mp3's, if members will post mp3's...
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: Pierre29200 on June 07, 2007, 07:31:16 AM
Quote from: qtime on June 06, 2007, 05:50:20 PM
Looks very nice, thx for adding!
Only a pain in the ass is the copyright problems of mp3's, if members will post mp3's...
Perhaps you can insert some instructions about it in the text used for the inscription on the forum.
Or in special topic about using the forum.

Pierre
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: Smith Online on June 10, 2007, 06:45:05 AM
Great Mods Thanks ;D

Just one question in your demo the player plays automaticaly as soon as the post is opened you dont have to press play which is great but on my site you have to press play before the music will start is there a way to change this so its plays automatically when the post is loaded.

Regards

Smith Online
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: Smith Online on June 10, 2007, 06:59:05 AM
Worked it out :D use the following:-

[mp3=240,20,1,center]http://pierrebrest.free.fr/biosynergie/audio/Coue/01-1.Introduction.mp3|
http://pierrebrest.free.fr/biosynergie/audio/Coue/02-2.AutosuggestionConsciente.mp3|
http://pierrebrest.free.fr/biosynergie/audio/Coue/03-3.SuggestionEmileCoue.mp3[/mp3]

Thanks

Regards

Smith Online
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: Pierre29200 on June 10, 2007, 12:37:17 PM
Quote from: Smith Online on June 10, 2007, 06:45:05 AM
Great Mods Thanks ;D

Just one question in your demo the player plays automaticaly as soon as the post is opened you dont have to press play which is great but on my site you have to press play before the music will start is there a way to change this so its plays automatically when the post is loaded.

Regards

Smith Online
See explanations here :
http://custom.simplemachines.org/mods/index.php?mod=829

Description:

This mod allows a poster the option to embed a mp3 file in a post through the use of the [mp3=200,20,0,center][/mp3] BBC (bulletin board code) tags.  The code it uses is XHTML compliant, this keeping with the forum's XHTML validity.

Its use is easy: simply plug the complete url of the mp3 file between the [mp3=200,20,0,center]http://your_url.com/your_mp3_file.mp3[/mp3] tags.

Syntax : [mp3=width,height,autostart,position]http://your_url.com/your_mp3_file.mp3[/mp3]
autostart : 0|1
position :  left|center|right

Typical sizes for the player
- single mp3 : width = 10 x height
for example width=200, height=20
- Multi player : width = 12 x height
for example width=240, height=20
if width is too low, navigation buttons are hidden.

Examples :
- single mp3
[mp3=200,20,1,center]http://pierrebrest.free.fr/biosynergie/audio/Coue/01-1.Introduction.mp3[/mp3]
- multi-mp3
[mp3=240,20,1,center]http://pierrebrest.free.fr/biosynergie/audio/Coue/01-1.Introduction.mp3|
http://pierrebrest.free.fr/biosynergie/audio/Coue/02-2.AutosuggestionConsciente.mp3|
http://pierrebrest.free.fr/biosynergie/audio/Coue/03-3.SuggestionEmileCoue.mp3[/mp3]

You can write on one or several lignes the url for mp3 files.


Demo : http://forum.frequencebonheur.fr/index.php?topic=282.0


Language Integration

To make the mod work with your language, simply open Modifications.*.php, where * is the language you wish to integrate the mod into, and add $txt['mp3'] = 'mp3 insert full url'; to its own line in the file.

------


Let notice the parameters for the tag :
[mp3=200,20,1,center]http://pierrebrest.free.fr/biosynergie/audio/Coue/01-1.Introduction.mp3[/mp3]
Third parameter works like this :
Syntax: [mp3=width,height,autostart,position]http://your_url.com/your_mp3_file.mp3[/mp3]
Third parameter : autostart : 0|1 (Values : 0 or 1. 1= autostart)
Example for autostart :
[mp3=200,20,1,center]http://pierrebrest.free.fr/biosynergie/audio/Coue/01-1.Introduction.mp3[/mp3]

Best regards,
Pierre
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: locomotion182 on June 10, 2007, 09:26:54 PM
hey its not working for me, well sorta.
I had no issues with the installation or what so ever.
I used the mp3 tag, i clicked on "preview" and it worked and the song played and all.
once i actually made the post i onlky got a white bar, where the player is supposed to be and it stays like that.I tried posting again but i get the same results
i can play the song on previeew but not in the actual post.

any suggestions?
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: gangsta on June 10, 2007, 10:06:02 PM
I have the same problem as you.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg295.imageshack.us%2Fimg295%2F1543%2Ferrorve6.jpg&hash=98202dca14d1ebcc50b00f02947142037cd0ae62)

Don't know what's wrong with it either.
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: locomotion182 on June 10, 2007, 10:18:44 PM
yeah i also get that exact same image
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: gangsta on June 10, 2007, 10:25:38 PM
Quote from: locomotion182 on June 10, 2007, 10:18:44 PM
yeah i also get that exact same image

I know why, the directory for the image once refreshed the page changes to something like: index.php/Themes/default/images/podcast.gif

Same with the flash, since these URLs are not decleared as absolute links.

But I don't know how to fix it, I already tried making it direct link from Subs.php...

Sigh.
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: locomotion182 on June 10, 2007, 10:41:17 PM
yeah i did the sme because the problem is not with the post.template
it has to be the subs.php

i guess it could be a mod we have installed
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: gangsta on June 10, 2007, 10:43:57 PM
Quote from: locomotion182 on June 10, 2007, 10:41:17 PM
yeah i did the sme because the problem is not with the post.template
it has to be the subs.php

i guess it could be a mod we have installed

It has nothing to do with other mods, its this mod that is the problem. Just waiting on Pierre29200's reply for a resolution :)
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: Pierre29200 on June 10, 2007, 11:04:28 PM
Quote from: gangsta on June 10, 2007, 10:06:02 PM
I have the same problem as you.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg295.imageshack.us%2Fimg295%2F1543%2Ferrorve6.jpg&hash=98202dca14d1ebcc50b00f02947142037cd0ae62)

Don't know what's wrong with it either.

To understand what it happens for you i need the smf version, the name of your theme and the full url of page with the problem.

Waiting a better solution, it seems you have to download the mod, to install it and to finish manually as it :
1)  expand the zip file of the mod

2 ) upload by Ftp these two files at the root of your smf forum :
dewplayer.swf
dewplayer-multi.swf

3) upload podcast.gif in Themes/default/images

If it's not enough to work, you have to localize in source of the wrong page the code for path for dewplayer.swf
or give me the link of the url of the page with problem and i watch what is wrong.

Regards,
Pierre
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: locomotion182 on June 10, 2007, 11:36:59 PM
ok i have version 1.1.2
I tried installing it manually, same issue.

I dont use the default theme,but i have it installed for admin use only.
I have 3 custom themes.

An example of the problem can be found here. you dont have to register.
http://www.kenotiafans.com/forum/index.php/topic,93.msg1517.html#new

I searched in the source and this is the code of the flash file.

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="200" height="20" id="dewplayer"
align="middle"><param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="dewplayer.swf?son=http://kenotiafans.com/Photogragh.mp3&autostart=0&bgcolor=FFFFFF" />
<param name="quality" value="high" /><param name="bgcolor" value="FFFFFF" />
<embed src="dewplayer.swf?son=http://kenotiafans.com/Photogragh.mp3&autostart=0&bgcolor=FFFFFF" quality="high" bgcolor="FFFFFF" width="200"
height="20" name="dewplayer" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object></p></div>
<img src="http://www.kenotiafans.com/forum/Themes/green/images/icons/modify_inline.gif" alt="" align="right" id="modify_button_1510" style="cursor: pointer; display: none;" onclick="modify_msg('1510', '9d6920f4b6afb13860e7d60f07a846ca')" />


Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: Pierre29200 on June 11, 2007, 01:35:35 AM
Quote from: locomotion182 on June 10, 2007, 11:36:59 PM
ok i have version 1.1.2
I tried installing it manually, same issue.

I dont use the default theme,but i have it installed for admin use only.
I have 3 custom themes.

An example of the problem can be found here. you dont have to register.
http://www.kenotiafans.com/forum/index.php/topic,93.msg1517.html#new

I searched in the source and this is the code of the flash file.

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="200" height="20" id="dewplayer"
align="middle"><param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="dewplayer.swf?son=http://kenotiafans.com/Photogragh.mp3&autostart=0&bgcolor=FFFFFF" />
<param name="quality" value="high" /><param name="bgcolor" value="FFFFFF" />
<embed src="dewplayer.swf?son=http://kenotiafans.com/Photogragh.mp3&autostart=0&bgcolor=FFFFFF" quality="high" bgcolor="FFFFFF" width="200"
height="20" name="dewplayer" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object></p></div>
<img src="http://www.kenotiafans.com/forum/Themes/green/images/icons/modify_inline.gif" alt="" align="right" id="modify_button_1510" style="cursor: pointer; display: none;" onclick="modify_msg('1510', '9d6920f4b6afb13860e7d60f07a846ca')" />



Ah OK !
dewplayer.swf is at the good place :
http://www.kenotiafans.com/forum/dewplayer.swf?son=http://kenotiafans.com/Photogragh.mp3
works...
the origin of the problem is :
simple urls for search engine (Apache only)
If you suppress this option, it works.
So i fix it adding a / before the file dewplayer.swf and before the picture podcast.gif and it works now.

In fact actually
http://www.kenotiafans.com/forum/index.php?topic=93.msg1510.html#msg1510
works
and before modification
the simplified url :
http://www.kenotiafans.com/forum/index.php/topic,93.msg1510.html#msg1510
doesn't work...

Now, it works. You can use joined file.

Go in your smf forum administration.
Uninstall you mp3 Flash Player BBC mod
Erase it on the server
Download updated version
Install again

Enjoy !

Pierre

Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: locomotion182 on June 11, 2007, 01:50:37 AM
still nothing man = /
I uninsstalled the one i had, no problems

i uploaded the new one. installed it
now it doesnt even work on the preview

link of a post with the mp3 player
http://www.kenotiafans.com/forum/index.php/topic,93.new.html#new

here the code from the source
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="200" height="20" id="dewplayer" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="/dewplayer.swf?son=http://kenotiafans.com/Photogragh.mp3&autostart=0&bgcolor=FFFFFF" /><param name="quality" value="high" /><param name="bgcolor" value="FFFFFF" /><embed src="/dewplayer.swf?son=http://kenotiafans.com/Photogragh.mp3&autostart=0&bgcolor=FFFFFF" quality="high" bgcolor="FFFFFF" width="200" height="20" name="dewplayer" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object> <a href="http://kenotiafans.com/Photogragh.mp3"><img align="absbottom" style="text-decoration: none;border: none;" src="/Themes/default/images/podcast.gif" alt="Podcast"></a>
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: Pierre29200 on June 11, 2007, 02:16:24 AM
Quote from: locomotion182 on June 11, 2007, 01:50:37 AM
still nothing man = /
I uninsstalled the one i had, no problems

i uploaded the new one. installed it
now it doesnt even work on the preview

link of a post with the mp3 player
http://www.kenotiafans.com/forum/index.php/topic,93.new.html#new

here the code from the source
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="200" height="20" id="dewplayer" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="/dewplayer.swf?son=http://kenotiafans.com/Photogragh.mp3&autostart=0&bgcolor=FFFFFF" /><param name="quality" value="high" /><param name="bgcolor" value="FFFFFF" /><embed src="/dewplayer.swf?son=http://kenotiafans.com/Photogragh.mp3&autostart=0&bgcolor=FFFFFF" quality="high" bgcolor="FFFFFF" width="200" height="20" name="dewplayer" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object> <a href="http://kenotiafans.com/Photogragh.mp3"><img align="absbottom" style="text-decoration: none;border: none;" src="/Themes/default/images/podcast.gif" alt="Podcast"></a>
Sorry !
I try that new version on two servers :
http://forum.frequencebonheur.fr/index.php/topic,282.0.html
http://forumpsycho.ovh.org/index.php/topic,282.0.html
with simplified url and here it works.
Unfortunately you server don't works with the same way.

So in this part of the code :
Quote<file name="$sourcedir/Subs.php">
      <operation>
         <search position="before"><![CDATA[
         array(
            'tag' => 'hr',
            'type' => 'closed',
            'content' => '<hr />',
            'block_level' => true,
         ),
]]></search>
         <add><![CDATA[
         array(            
         'tag' => 'mp3',            
         'type' => 'unparsed_commas_content',            
         'test' => '\d+,\d+,0|1,center|left|right\]',            
         'content' => '$1',            
         'validate' => create_function('&$tag, &$data, $disabled', '                        
         if (!isset($disabled[\'mp3\'])) {            
         if (strpos($data[0], \'|\') === false)
         {            
         $data[0] = "<p style=\"color: #000000;font-family: Arial, sans-serif;font-size: 11px;font-weight: normal;text-align: $5;text-decoration: none;\"><object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"$2\" height=\"$3\" id=\"dewplayer\" align=\"middle\"><param name=\"allowScriptAccess\" value=\"sameDomain\" /><param name=\"movie\" value=\"/dewplayer.swf?son=".strtr($data[0], array(\'<br />\' => \'\'))."&autostart=$4&bgcolor=FFFFFF\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"FFFFFF\" /><embed src=\"/dewplayer.swf?son=".strtr($data[0], array(\'<br />\' => \'\'))."&autostart=$4&bgcolor=FFFFFF\" quality=\"high\" bgcolor=\"FFFFFF\" width=\"$2\" height=\"$3\" name=\"dewplayer\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\"></embed></object> <a href=\"".strtr($data[0], array(\'<br />\' => \'\'))."\"><img align=\"absbottom\" style=\"text-decoration: none;border: none;\" src=\"/Themes/default/images/podcast.gif\" alt=\"Podcast\"></a><br></p>";
         } else {
         $data[0] = "<p style=\"color: #000000;font-family: Arial, sans-serif;font-size: 11px;font-weight: normal;text-align: $5;text-decoration: none;\"><object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"$2\" height=\"$3\" id=\"dewplayer\" align=\"middle\"><param name=\"wmode\" value=\"transparent\"><param name=\"allowScriptAccess\" value=\"sameDomain\" /><param name=\"movie\" value=\"/dewplayer-multi.swf?mp3=".strtr($data[0], array(\'<br />\' => \'\'))."&autostart=$4&showtime=1&bgcolor=FFFFFF\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"FFFFFF\" /><embed src=\"/dewplayer-multi.swf?mp3=".strtr($data[0], array(\'<br />\' => \'\'))."&autostart=$4&showtime=1&bgcolor=FFFFFF\" quality=\"high\" bgcolor=\"FFFFFF\" width=\"$2\" height=\"$3\" name=\"dewplayer\" wmode=\"transparent\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\"></embed></object></p>";            
         }
         } else {
         $tag[\'content\'] = \'$1\';
         }            
         '),            
         'block_level' => true,            
         'disabled_content' => '<a href="$1" target="_blank">$1</a>',         
         ),
]]></add>
      </operation>
   </file>

If adding / before files does not work anywhere, it is necessary to add the variable $boarddir before files.
Unfortunately, it doesn't work
.
Does somebody knows what is the right syntax or what is the way to introduce the full path name before files ?

Actually in red in the code, we have :
/dewplayer.swf
We can think that with $boarddir/dewplayer.swf
the problem is solved, but it is not.

Actually i have no idea to fix it :-[

Who know how to do ?

Waiting solution, it is possible to install manually writing your full absolute url before code in red color in the&nbsp; mp3_flash_player_bbc_xhtml_1.0.xml file.
For example for my site i have to write :
Quote<file name="$sourcedir/Subs.php">
      <operation>
         <search position="before"><![CDATA[
         array(
            'tag' => 'hr',
            'type' => 'closed',
            'content' => '<hr />',
            'block_level' => true,
         ),
]]></search>
         <add><![CDATA[
         array(            
         'tag' => 'mp3',            
         'type' => 'unparsed_commas_content',            
         'test' => '\d+,\d+,0|1,center|left|right\]',            
         'content' => '$1',            
         'validate' => create_function('&$tag, &$data, $disabled', '                        
         if (!isset($disabled[\'mp3\'])) {            
         if (strpos($data[0], \'|\') === false)
         {            
         $data[0] = "<p style=\"color: #000000;font-family: Arial, sans-serif;font-size: 11px;font-weight: normal;text-align: $5;text-decoration: none;\"><object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"$2\" height=\"$3\" id=\"dewplayer\" align=\"middle\"><param name=\"allowScriptAccess\" value=\"sameDomain\" /><param name=\"movie\" value=\"http://forum.frequencebonheur.fr/dewplayer.swf?son=".strtr($data[0], array(\'<br />\' => \'\'))."&autostart=$4&bgcolor=FFFFFF\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"FFFFFF\" /><embed src=\"http://forum.frequencebonheur.fr/dewplayer.swf?son=".strtr($data[0], array(\'<br />\' => \'\'))."&autostart=$4&bgcolor=FFFFFF\" quality=\"high\" bgcolor=\"FFFFFF\" width=\"$2\" height=\"$3\" name=\"dewplayer\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\"></embed></object> <a href=\"".strtr($data[0], array(\'<br />\' => \'\'))."\"><img align=\"absbottom\" style=\"text-decoration: none;border: none;\" src=\"http://forum.frequencebonheur.fr/Themes/default/images/podcast.gif\" alt=\"Podcast\"></a><br></p>";
         } else {
         $data[0] = "<p style=\"color: #000000;font-family: Arial, sans-serif;font-size: 11px;font-weight: normal;text-align: $5;text-decoration: none;\"><object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"$2\" height=\"$3\" id=\"dewplayer\" align=\"middle\"><param name=\"wmode\" value=\"transparent\"><param name=\"allowScriptAccess\" value=\"sameDomain\" /><param name=\"movie\" value=\"http://forum.frequencebonheur.fr/dewplayer-multi.swf?mp3=".strtr($data[0], array(\'<br />\' => \'\'))."&autostart=$4&showtime=1&bgcolor=FFFFFF\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"FFFFFF\" /><embed src=\"http://forum.frequencebonheur.fr/dewplayer-multi.swf?mp3=".strtr($data[0], array(\'<br />\' => \'\'))."&autostart=$4&showtime=1&bgcolor=FFFFFF\" quality=\"high\" bgcolor=\"FFFFFF\" width=\"$2\" height=\"$3\" name=\"dewplayer\" wmode=\"transparent\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\"></embed></object></p>";            
         }
         } else {
         $tag[\'content\'] = \'$1\';
         }            
         '),            
         'block_level' => true,            
         'disabled_content' => '<a href="$1" target="_blank">$1</a>',         
         ),
]]></add>
      </operation>
   </file>

In joined file a special customised version for locomotion182 only. I put in the mod his absolute url.

Pierre
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: kat on June 11, 2007, 08:04:42 AM
I wonder how we'd stand, legally, if people start posting mp3 files that are copyright protected, with this...?
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: locomotion182 on June 11, 2007, 10:11:27 AM
Quote from: Pierre29200

In joined file a special customised version for locomotion182 only. I put in the mod his absolute url.

Pierre


thanks man!!
it works =)
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: Pierre29200 on June 11, 2007, 09:34:55 PM
Quote from: gangsta on June 10, 2007, 10:43:57 PM
Quote from: locomotion182 on June 10, 2007, 10:41:17 PM
yeah i did the sme because the problem is not with the post.template
it has to be the subs.php

i guess it could be a mod we have installed

It has nothing to do with other mods, its this mod that is the problem. Just waiting on Pierre29200's reply for a resolution :)

Now it's fixed. There is an updated mod. See joined file.

Tell me it works for you now.

Regards,

Pierre
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: Chuck on June 11, 2007, 10:21:04 PM
Hi, I tryied to install the mod.  It installed sucessfully except that the font size on my entire site got bigger.  There was a stray $txt['mp3'= 'mp3';  at the top of my board index page.
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: Pierre29200 on June 12, 2007, 04:38:05 AM
Quote from: Chuck on June 11, 2007, 10:21:04 PM
Hi, I tryied to install the mod.&nbsp; It installed sucessfully except that the font size on my entire site got bigger.&nbsp; There was a stray $txt['mp3'= 'mp3';&nbsp; at the top of my board index page.
$txt['mp3'= 'mp3'&nbsp; at the top of your board index page means a problem with carriage return in
Themes/languages/Modifications.<YourLang>.php
for example :
Themes/languages/Modifications.english.php

This file must be something like this :
<?php
// Version: 1.1; Modifications

$txt['myvideo'] = 'MyVideo insert Number';

$txt['youtube'] = 'YouTube';

$txt['dailymotion'] = 'DailyMotion';

$txt['mp3'] = 'mp3';

?>



So you can fix it unstalling mod, then editing this file and verifying there is at least these lignes :
<?php
// Version: 1.1; Modifications

?>



Let notice each ligne begins with :
$txt...

And then install again the mod.

Regards,

Pierre

Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: nitsua on June 19, 2007, 03:06:59 PM
i love this mod it works fine but, above avery page of my forum it displays this: $txt['mp3'] = 'mp3'; 
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: Pierre29200 on June 19, 2007, 07:02:26 PM
Quote from: nitsua on June 19, 2007, 03:06:59 PM
i love this mod it works fine but, above avery page of my forum it displays this: $txt['mp3'] = 'mp3';&nbsp;
As explained above it's only for one thing. The code of the file Themes/languages/Modifications.english.php if you are in english langage has a problem and it's very easy to correct. Please post this file here and i can correct it and post back.
But you can correct by yourself with an editor.
Be sure that the carriage return are in right place.
You must have something on that model :
<?php
// Version: 1.1; Modifications

$txt['myvideo'] = 'MyVideo insert Number';

$txt['youtube'] = 'YouTube';

$txt['dailymotion'] = 'DailyMotion';

$txt['mp3'] = 'mp3';

?>


Obvioulsy some lignes can be not present for your file and you can have some extra. But remember each lign must begin with
$txt[
and the three first lignes of this file are :
<?php
// Version: 1.1; Modifications

and the last lignes of this file is :

?>

Nothing else on this last line only two characters : ?>

This problem comes from your previous mod installations.

And with that you are sure to resolve it !

Here is an picture of the file Modifications.english.php :
(https://www.simplemachines.org/community/index.php?action=dlattach;topic=174907.0;attach=35160;image)
Is english your language ?

Pierre
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: Pierre29200 on June 19, 2007, 07:22:14 PM
Quote from: nitsua on June 19, 2007, 03:06:59 PM
i love this mod it works fine but, above avery page of my forum it displays this: $txt['mp3'] = 'mp3'; 
Type this adress in semaonkey or firefox navigator :
view-source:http://rpgamer.auntlizzy.com/forum/Themes/default/languages/Modifications.english.php

And it's displayed :
$txt['mp3'] = 'mp3';

It means it miss :
at the beginning of your file Themes/default/languages/Modifications.english.php :
<?php
// Version: 1.1; Modifications

at the and of your file Themes/default/languages/Modifications.english.php

?>

If it's good you will have the same result that for my own forum :
view-source:http://forum.frequencebonheur.fr/Themes/default/languages/Modifications.english.php
displays nothing because there is no instruction for display in this file !

Pierre
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: AllMassive on June 22, 2007, 09:49:42 AM
Hi - i'm using your MOD and its working fine so far.
Is there any chance that you modify the Flash-File to remove the 'Direct Download'-Podcast Button and would it be possible for you to 'scramble' the URL of the Mp3-Files in the Page-Source-Code?


Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: gangsta on June 24, 2007, 08:42:00 AM
Thanks Pierre29200, it now works :)
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: BigGunn on June 25, 2007, 10:01:37 PM
Quote from: AllMassive on June 22, 2007, 09:49:42 AM
Hi - i'm using your MOD and its working fine so far.
Is there any chance that you modify the Flash-File to remove the 'Direct Download'-Podcast Button and would it be possible for you to 'scramble' the URL of the Mp3-Files in the Page-Source-Code?

I would also like to know if the Podcast option can be removed. My forum is a music discussion forum and we want to just be able to provide short snippets of songs so people can preview before they buy. We don't want them to be able to download anything
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: Pierre29200 on June 26, 2007, 04:10:35 AM
Try this customized version (without podcast) in joined file with this post :
http://www.simplemachines.org/community/index.php?topic=174907.msg1116110#msg1116110

Tell me if it works for you.


Pierre
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: BigGunn on June 26, 2007, 10:47:26 AM
I had to use one of the later versions because I was getting this:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg295.imageshack.us%2Fimg295%2F1543%2Ferrorve6.jpg&hash=98202dca14d1ebcc50b00f02947142037cd0ae62)

So that file without the podcast option, would then make me have that error again.


This is the one I had to use to get the image to show up correctly:

Quote from: Pierre29200 on June 11, 2007, 02:16:24 AM
Quote from: locomotion182 on June 11, 2007, 01:50:37 AM
still nothing man = /
I uninsstalled the one i had, no problems

i uploaded the new one. installed it
now it doesnt even work on the preview

link of a post with the mp3 player
http://www.kenotiafans.com/forum/index.php/topic,93.new.html#new

here the code from the source
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="200" height="20" id="dewplayer" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="/dewplayer.swf?son=http://kenotiafans.com/Photogragh.mp3&autostart=0&bgcolor=FFFFFF" /><param name="quality" value="high" /><param name="bgcolor" value="FFFFFF" /><embed src="/dewplayer.swf?son=http://kenotiafans.com/Photogragh.mp3&autostart=0&bgcolor=FFFFFF" quality="high" bgcolor="FFFFFF" width="200" height="20" name="dewplayer" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object> <a href="http://kenotiafans.com/Photogragh.mp3"><img align="absbottom" style="text-decoration: none;border: none;" src="/Themes/default/images/podcast.gif" alt="Podcast"></a>
Sorry !
I try that new version on two servers :
http://forum.frequencebonheur.fr/index.php/topic,282.0.html
http://forumpsycho.ovh.org/index.php/topic,282.0.html
with simplified url and here it works.
Unfortunately you server don't works with the same way.

So in this part of the code :
Quote<file name="$sourcedir/Subs.php">
      <operation>
         <search position="before"><![CDATA[
         array(
            'tag' => 'hr',
            'type' => 'closed',
            'content' => '<hr />',
            'block_level' => true,
         ),
]]></search>
         <add><![CDATA[
         array(            
         'tag' => 'mp3',            
         'type' => 'unparsed_commas_content',            
         'test' => '\d+,\d+,0|1,center|left|right\]',            
         'content' => '$1',            
         'validate' => create_function('&$tag, &$data, $disabled', '                        
         if (!isset($disabled[\'mp3\'])) {            
         if (strpos($data[0], \'|\') === false)
         {            
         $data[0] = "<p style=\"color: #000000;font-family: Arial, sans-serif;font-size: 11px;font-weight: normal;text-align: $5;text-decoration: none;\"><object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"$2\" height=\"$3\" id=\"dewplayer\" align=\"middle\"><param name=\"allowScriptAccess\" value=\"sameDomain\" /><param name=\"movie\" value=\"/dewplayer.swf?son=".strtr($data[0], array(\'<br />\' => \'\'))."&autostart=$4&bgcolor=FFFFFF\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"FFFFFF\" /><embed src=\"/dewplayer.swf?son=".strtr($data[0], array(\'<br />\' => \'\'))."&autostart=$4&bgcolor=FFFFFF\" quality=\"high\" bgcolor=\"FFFFFF\" width=\"$2\" height=\"$3\" name=\"dewplayer\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\"></embed></object> <a href=\"".strtr($data[0], array(\'<br />\' => \'\'))."\"><img align=\"absbottom\" style=\"text-decoration: none;border: none;\" src=\"/Themes/default/images/podcast.gif\" alt=\"Podcast\"></a><br></p>";
         } else {
         $data[0] = "<p style=\"color: #000000;font-family: Arial, sans-serif;font-size: 11px;font-weight: normal;text-align: $5;text-decoration: none;\"><object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"$2\" height=\"$3\" id=\"dewplayer\" align=\"middle\"><param name=\"wmode\" value=\"transparent\"><param name=\"allowScriptAccess\" value=\"sameDomain\" /><param name=\"movie\" value=\"/dewplayer-multi.swf?mp3=".strtr($data[0], array(\'<br />\' => \'\'))."&autostart=$4&showtime=1&bgcolor=FFFFFF\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"FFFFFF\" /><embed src=\"/dewplayer-multi.swf?mp3=".strtr($data[0], array(\'<br />\' => \'\'))."&autostart=$4&showtime=1&bgcolor=FFFFFF\" quality=\"high\" bgcolor=\"FFFFFF\" width=\"$2\" height=\"$3\" name=\"dewplayer\" wmode=\"transparent\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\"></embed></object></p>";            
         }
         } else {
         $tag[\'content\'] = \'$1\';
         }            
         '),            
         'block_level' => true,            
         'disabled_content' => '<a href="$1" target="_blank">$1</a>',         
         ),
]]></add>
      </operation>
   </file>

If adding / before files does not work anywhere, it is necessary to add the variable $boarddir before files.
Unfortunately, it doesn't work
.
Does somebody knows what is the right syntax or what is the way to introduce the full path name before files ?

Actually in red in the code, we have :
/dewplayer.swf
We can think that with $boarddir/dewplayer.swf
the problem is solved, but it is not.

Actually i have no idea to fix it :-[

Who know how to do ?

Waiting solution, it is possible to install manually writing your full absolute url before code in red color in the&nbsp; mp3_flash_player_bbc_xhtml_1.0.xml file.
For example for my site i have to write :
Quote<file name="$sourcedir/Subs.php">
      <operation>
         <search position="before"><![CDATA[
         array(
            'tag' => 'hr',
            'type' => 'closed',
            'content' => '<hr />',
            'block_level' => true,
         ),
]]></search>
         <add><![CDATA[
         array(            
         'tag' => 'mp3',            
         'type' => 'unparsed_commas_content',            
         'test' => '\d+,\d+,0|1,center|left|right\]',            
         'content' => '$1',            
         'validate' => create_function('&$tag, &$data, $disabled', '                        
         if (!isset($disabled[\'mp3\'])) {            
         if (strpos($data[0], \'|\') === false)
         {            
         $data[0] = "<p style=\"color: #000000;font-family: Arial, sans-serif;font-size: 11px;font-weight: normal;text-align: $5;text-decoration: none;\"><object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"$2\" height=\"$3\" id=\"dewplayer\" align=\"middle\"><param name=\"allowScriptAccess\" value=\"sameDomain\" /><param name=\"movie\" value=\"http://forum.frequencebonheur.fr/dewplayer.swf?son=".strtr($data[0], array(\'<br />\' => \'\'))."&autostart=$4&bgcolor=FFFFFF\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"FFFFFF\" /><embed src=\"http://forum.frequencebonheur.fr/dewplayer.swf?son=".strtr($data[0], array(\'<br />\' => \'\'))."&autostart=$4&bgcolor=FFFFFF\" quality=\"high\" bgcolor=\"FFFFFF\" width=\"$2\" height=\"$3\" name=\"dewplayer\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\"></embed></object> <a href=\"".strtr($data[0], array(\'<br />\' => \'\'))."\"><img align=\"absbottom\" style=\"text-decoration: none;border: none;\" src=\"http://forum.frequencebonheur.fr/Themes/default/images/podcast.gif\" alt=\"Podcast\"></a><br></p>";
         } else {
         $data[0] = "<p style=\"color: #000000;font-family: Arial, sans-serif;font-size: 11px;font-weight: normal;text-align: $5;text-decoration: none;\"><object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"$2\" height=\"$3\" id=\"dewplayer\" align=\"middle\"><param name=\"wmode\" value=\"transparent\"><param name=\"allowScriptAccess\" value=\"sameDomain\" /><param name=\"movie\" value=\"http://forum.frequencebonheur.fr/dewplayer-multi.swf?mp3=".strtr($data[0], array(\'<br />\' => \'\'))."&autostart=$4&showtime=1&bgcolor=FFFFFF\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"FFFFFF\" /><embed src=\"http://forum.frequencebonheur.fr/dewplayer-multi.swf?mp3=".strtr($data[0], array(\'<br />\' => \'\'))."&autostart=$4&showtime=1&bgcolor=FFFFFF\" quality=\"high\" bgcolor=\"FFFFFF\" width=\"$2\" height=\"$3\" name=\"dewplayer\" wmode=\"transparent\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\"></embed></object></p>";            
         }
         } else {
         $tag[\'content\'] = \'$1\';
         }            
         '),            
         'block_level' => true,            
         'disabled_content' => '<a href="$1" target="_blank">$1</a>',         
         ),
]]></add>
      </operation>
   </file>

In joined file a special customised version for locomotion182 only. I put in the mod his absolute url.

Pierre
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: BigGunn on June 26, 2007, 10:51:58 AM
Quote from: Pierre29200 on June 11, 2007, 02:16:24 AM
Quote from: locomotion182 on June 11, 2007, 01:50:37 AM
still nothing man = /
I uninsstalled the one i had, no problems

i uploaded the new one. installed it
now it doesnt even work on the preview

link of a post with the mp3 player
http://www.kenotiafans.com/forum/index.php/topic,93.new.html#new

here the code from the source
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="200" height="20" id="dewplayer" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="/dewplayer.swf?son=http://kenotiafans.com/Photogragh.mp3&autostart=0&bgcolor=FFFFFF" /><param name="quality" value="high" /><param name="bgcolor" value="FFFFFF" /><embed src="/dewplayer.swf?son=http://kenotiafans.com/Photogragh.mp3&autostart=0&bgcolor=FFFFFF" quality="high" bgcolor="FFFFFF" width="200" height="20" name="dewplayer" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object> <a href="http://kenotiafans.com/Photogragh.mp3"><img align="absbottom" style="text-decoration: none;border: none;" src="/Themes/default/images/podcast.gif" alt="Podcast"></a>
Sorry !
I try that new version on two servers :
http://forum.frequencebonheur.fr/index.php/topic,282.0.html
http://forumpsycho.ovh.org/index.php/topic,282.0.html
with simplified url and here it works.
Unfortunately you server don't works with the same way.

So in this part of the code :
Quote<file name="$sourcedir/Subs.php">
      <operation>
         <search position="before"><![CDATA[
         array(
            'tag' => 'hr',
            'type' => 'closed',
            'content' => '<hr />',
            'block_level' => true,
         ),
]]></search>
         <add><![CDATA[
         array(            
         'tag' => 'mp3',            
         'type' => 'unparsed_commas_content',            
         'test' => '\d+,\d+,0|1,center|left|right\]',            
         'content' => '$1',            
         'validate' => create_function('&$tag, &$data, $disabled', '                        
         if (!isset($disabled[\'mp3\'])) {            
         if (strpos($data[0], \'|\') === false)
         {            
         $data[0] = "<p style=\"color: #000000;font-family: Arial, sans-serif;font-size: 11px;font-weight: normal;text-align: $5;text-decoration: none;\"><object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"$2\" height=\"$3\" id=\"dewplayer\" align=\"middle\"><param name=\"allowScriptAccess\" value=\"sameDomain\" /><param name=\"movie\" value=\"/dewplayer.swf?son=".strtr($data[0], array(\'<br />\' => \'\'))."&autostart=$4&bgcolor=FFFFFF\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"FFFFFF\" /><embed src=\"/dewplayer.swf?son=".strtr($data[0], array(\'<br />\' => \'\'))."&autostart=$4&bgcolor=FFFFFF\" quality=\"high\" bgcolor=\"FFFFFF\" width=\"$2\" height=\"$3\" name=\"dewplayer\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\"></embed></object> <a href=\"".strtr($data[0], array(\'<br />\' => \'\'))."\"><img align=\"absbottom\" style=\"text-decoration: none;border: none;\" src=\"/Themes/default/images/podcast.gif\" alt=\"Podcast\"></a><br></p>";
         } else {
         $data[0] = "<p style=\"color: #000000;font-family: Arial, sans-serif;font-size: 11px;font-weight: normal;text-align: $5;text-decoration: none;\"><object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"$2\" height=\"$3\" id=\"dewplayer\" align=\"middle\"><param name=\"wmode\" value=\"transparent\"><param name=\"allowScriptAccess\" value=\"sameDomain\" /><param name=\"movie\" value=\"/dewplayer-multi.swf?mp3=".strtr($data[0], array(\'<br />\' => \'\'))."&autostart=$4&showtime=1&bgcolor=FFFFFF\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"FFFFFF\" /><embed src=\"/dewplayer-multi.swf?mp3=".strtr($data[0], array(\'<br />\' => \'\'))."&autostart=$4&showtime=1&bgcolor=FFFFFF\" quality=\"high\" bgcolor=\"FFFFFF\" width=\"$2\" height=\"$3\" name=\"dewplayer\" wmode=\"transparent\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\"></embed></object></p>";            
         }
         } else {
         $tag[\'content\'] = \'$1\';
         }            
         '),            
         'block_level' => true,            
         'disabled_content' => '<a href="$1" target="_blank">$1</a>',         
         ),
]]></add>
      </operation>
   </file>

If adding / before files does not work anywhere, it is necessary to add the variable $boarddir before files.
Unfortunately, it doesn't work
.
Does somebody knows what is the right syntax or what is the way to introduce the full path name before files ?

Actually in red in the code, we have :
/dewplayer.swf
We can think that with $boarddir/dewplayer.swf
the problem is solved, but it is not.

Actually i have no idea to fix it :-[

Who know how to do ?

Waiting solution, it is possible to install manually writing your full absolute url before code in red color in the&nbsp; mp3_flash_player_bbc_xhtml_1.0.xml file.
For example for my site i have to write :
Quote<file name="$sourcedir/Subs.php">
      <operation>
         <search position="before"><![CDATA[
         array(
            'tag' => 'hr',
            'type' => 'closed',
            'content' => '<hr />',
            'block_level' => true,
         ),
]]></search>
         <add><![CDATA[
         array(            
         'tag' => 'mp3',            
         'type' => 'unparsed_commas_content',            
         'test' => '\d+,\d+,0|1,center|left|right\]',            
         'content' => '$1',            
         'validate' => create_function('&$tag, &$data, $disabled', '                        
         if (!isset($disabled[\'mp3\'])) {            
         if (strpos($data[0], \'|\') === false)
         {            
         $data[0] = "<p style=\"color: #000000;font-family: Arial, sans-serif;font-size: 11px;font-weight: normal;text-align: $5;text-decoration: none;\"><object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"$2\" height=\"$3\" id=\"dewplayer\" align=\"middle\"><param name=\"allowScriptAccess\" value=\"sameDomain\" /><param name=\"movie\" value=\"http://forum.frequencebonheur.fr/dewplayer.swf?son=".strtr($data[0], array(\'<br />\' => \'\'))."&autostart=$4&bgcolor=FFFFFF\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"FFFFFF\" /><embed src=\"http://forum.frequencebonheur.fr/dewplayer.swf?son=".strtr($data[0], array(\'<br />\' => \'\'))."&autostart=$4&bgcolor=FFFFFF\" quality=\"high\" bgcolor=\"FFFFFF\" width=\"$2\" height=\"$3\" name=\"dewplayer\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\"></embed></object> <a href=\"".strtr($data[0], array(\'<br />\' => \'\'))."\"><img align=\"absbottom\" style=\"text-decoration: none;border: none;\" src=\"http://forum.frequencebonheur.fr/Themes/default/images/podcast.gif\" alt=\"Podcast\"></a><br></p>";
         } else {
         $data[0] = "<p style=\"color: #000000;font-family: Arial, sans-serif;font-size: 11px;font-weight: normal;text-align: $5;text-decoration: none;\"><object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"$2\" height=\"$3\" id=\"dewplayer\" align=\"middle\"><param name=\"wmode\" value=\"transparent\"><param name=\"allowScriptAccess\" value=\"sameDomain\" /><param name=\"movie\" value=\"http://forum.frequencebonheur.fr/dewplayer-multi.swf?mp3=".strtr($data[0], array(\'<br />\' => \'\'))."&autostart=$4&showtime=1&bgcolor=FFFFFF\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"FFFFFF\" /><embed src=\"http://forum.frequencebonheur.fr/dewplayer-multi.swf?mp3=".strtr($data[0], array(\'<br />\' => \'\'))."&autostart=$4&showtime=1&bgcolor=FFFFFF\" quality=\"high\" bgcolor=\"FFFFFF\" width=\"$2\" height=\"$3\" name=\"dewplayer\" wmode=\"transparent\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\"></embed></object></p>";            
         }
         } else {
         $tag[\'content\'] = \'$1\';
         }            
         '),            
         'block_level' => true,            
         'disabled_content' => '<a href="$1" target="_blank">$1</a>',         
         ),
]]></add>
      </operation>
   </file>

In joined file a special customised version for locomotion182 only. I put in the mod his absolute url.

Pierre

At least I think that's the one I ended up using, might have been the one you posted right after that. Maybe it was. I'm not sure.
Title: Re: mp3 Flash Player BBC Tag
Post by: Pierre29200 on June 26, 2007, 12:46:53 PM
Quote from: BigGunn on June 26, 2007, 10:51:58 AM
At least I think that's the one I ended up using, might have been the one you posted right after that. Maybe it was. I'm not sure.

Lucky man, here is mp3 Flash Player BBC Tag version with absolute url without podcast in joined file.

Enjoy !

Pierre
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: BigGunn on June 26, 2007, 01:38:33 PM
1.     Execute Modification     mp3_flash_player_bbc_xhtml_1.0.xml     Modification parse error
2.    Execute Modification    -    Modification parse error

any ideas?
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: Pierre29200 on June 26, 2007, 02:38:58 PM
Quote from: BigGunn on June 26, 2007, 01:38:33 PM
1.     Execute Modification     mp3_flash_player_bbc_xhtml_1.0.xml     Modification parse error
2.    Execute Modification    -    Modification parse error
any ideas?
Quote from: BigGunn on June 26, 2007, 01:38:33 PM
1.     Execute Modification     mp3_flash_player_bbc_xhtml_1.0.xml     Modification parse error
2.    Execute Modification    -    Modification parse error

any ideas?
I take time to verify on my own site and the installation works right.
You can see result here :
http://psychostages.org/forum/index.php?topic=7.msg9#new

So, i don't know what is problem.

How do you proceed to uninstall the previous version ?

Have you warning before uninstallation ?

Have you erased the previous version after uninstall ?

You can install manually using :

http://modparser.dev.dansoftaustralia.net/

as soon it works again...

It's very easy to use...

Pierre
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: BigGunn on June 26, 2007, 02:45:09 PM
that site is down or something, but yeah... after doing some research here on the forums, it looks like it's SMF's package manager in conflict with my php.

*sigh*

I think I'm just gonna switch back to phpBB or something. This is ridiculous.

EDIT: K... after millions of attempts I finally got it working. Turned out to be a problem with my host that has since been resolved.

Mod now works great!
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: nitsua on July 09, 2007, 10:48:51 AM
works good with 1.1.3
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: ManilaGurL on July 18, 2007, 04:30:59 AM
Help, was able to install the mod successfully, but it's not working.
When I click on play, nothing happens. All I see is a question
mark inside the player. You think it has something to do with the
link or the site wherein I uploaded the mp3? ::)


Do you know a site where I can upload my mp3s?

Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: krust on July 18, 2007, 05:10:24 AM
HEllo Pierre,

I've installed the mod (with absolute url). The mod is ok when i preview the message but not ok  when the message is sent. Any solutions ?

Thx,
D'avance merci,
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: xOraclex on July 20, 2007, 11:59:44 AM
Hi

Something very strange is happening in this mod in my forum.
I've installed some weeks ago and it was ok.
Now, when someone posts a mp3 file and when it starts, the music is played in fast forward.

Any idea why?

Thanks
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: Chuck on July 21, 2007, 03:53:03 AM
Just on your computer or everyone that listens to it?
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: xOraclex on July 23, 2007, 07:02:14 AM
Quote from: Chuck on July 21, 2007, 03:53:03 AM
Just on your computer or everyone that listens to it?

Yes, everyone is listen the same. As a matter a fact , it was my Forum Members that had alerted.
Something change. I think... probally, it's because other mod instaled after this one. Possible conflict.
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: GhoXt on July 23, 2007, 11:38:59 AM
Quote from: xOraclex on July 20, 2007, 11:59:44 AM
Hi

Something very strange is happening in this mod in my forum.
I've installed some weeks ago and it was ok.
Now, when someone posts a mp3 file and when it starts, the music is played in fast forward.

some mp3 files do that i dont know too but its rare ...

Any idea why?

Thanks

sometimes happens here the same but its rare i think the cause is the way that mp3 is encoded.


@Pierre could you send me the original flash source of player plz plz plz just to chance the colors, and thanks for the mod :D its awesome
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: leomai on July 24, 2007, 12:15:32 AM
Pierre, how would i go about making it transparents i added <param name=\"wmode\" value=\"transparent\"> and it doesnt work.. does your .swf work w/that code?? also can make the flash player w/a light color for lighter themes.. thanks for this mod..

-leo
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: smartmouse on August 19, 2007, 09:37:38 PM
Hello, i installed this great mod but i have some problems...

I converted some AMR files to MP3 and those files can't be read by the player :(
Any other mp3 files works well, except those mp3 i converted...

Why these MP3 files do not work?

@Pierre29200: can you add support for AMR files and other audio files?
Thank you.
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: nitsua on August 22, 2007, 11:48:25 AM
works with 1.1.3
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: smartmouse on August 25, 2007, 05:09:29 AM
Quote from: nitsua on August 22, 2007, 11:48:25 AM
works with 1.1.3

What do you mean?
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: Samaita on August 25, 2007, 07:09:54 PM
Quote from: xOraclex on July 20, 2007, 11:59:44 AM
Hi

Something very strange is happening in this mod in my forum.
I've installed some weeks ago and it was ok.
Now, when someone posts a mp3 file and when it starts, the music is played in fast forward.

Any idea why?

Thanks

I get that as well, but it is not with all MP3's. I am yet to figure out why though.
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: tsmalmbe on October 07, 2007, 05:32:15 PM
Playing one file works OK, if I add several files the play-buttons stops responding, and the player doesn't work.
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: taurean on October 09, 2007, 12:55:56 PM
there is an error during my installation.  i am using using TP with smf 1.1.4

./Themes/default/languages/Modifications.english-utf8.php

pls help
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: eslao on October 24, 2007, 07:00:39 PM
i have problems with sm 1.4.4 i can see the flash player with ie7 some times with opera,but not with mozilla.and at first time i see the player.later i refresh the page i cannot see the flash.it says movie not loaded. 144 version of this mod is available??
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: gasman on October 30, 2007, 06:55:57 PM
Quote from: xOraclex on July 20, 2007, 11:59:44 AM
Hi

Something very strange is happening in this mod in my forum.
I've installed some weeks ago and it was ok.
Now, when someone posts a mp3 file and when it starts, the music is played in fast forward.

Any idea why?

Thanks

Seems to depend on the bitrate that the MP3 was encoded. At 32 it doesn't play at all, at 64 it plays double speed. 128, 192 and 320 all play OK.
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: endiZ on January 24, 2008, 04:17:20 PM
1.1.4 support??
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: kat on January 24, 2008, 04:24:28 PM
I installed it on 1.1.4 and it works perfectly.
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: flickernever on January 25, 2008, 08:43:20 AM
Quote from: Kat on January 24, 2008, 04:24:28 PM
I installed it on 1.1.4 and it works perfectly.

Great! Now I have one question, is it possible to use attachements links? I mean, I would attach a MP3 and then I post the message, press modify, copy the attachment URL and then post it like this:

[mp3]attachment url[/mp3]

Would it work?
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: kat on January 25, 2008, 08:52:16 AM
I have no idea. Why not install the mod and check it out?
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: flickernever on January 25, 2008, 09:23:28 AM
Quote from: Kat on January 25, 2008, 08:52:16 AM
I have no idea. Why not install the mod and check it out?

I tried and it works great! Although now the problem is that Guests can listen to the MP3 attached files. How can I hide the MP3 flash player from guests?
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: kat on January 25, 2008, 09:34:57 AM
Apart from hiding the boards, I don't think you can.

I suspect that some php ocder might be able to sort something. But, as it stands, I don't think you can.
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: flickernever on January 25, 2008, 07:56:36 PM
Quote from: Kat on January 25, 2008, 09:34:57 AM<br />Apart from hiding the boards, I don't think you can.<br /><br />I suspect that some php ocder might be able to sort something. But, as it stands, I don't think you can.<br />

Yes, isn't there a If function on PHP? Maybe I could add something like, If user is Guest then don't display the MP3 Flash player. 

Maybe Pierre could help out on this one. Thanks for your interest on this, Kat.  ;)
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: kat on January 26, 2008, 05:28:33 AM
No sweat. It'd be kinda int'restin' to see how it'd be done, now!
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: flickernever on January 27, 2008, 07:37:44 PM
Quote

In Sources/Subs.php, you may be able to do this by finding:


if (empty($modSettings['enableEmbeddedFlash']))
$disabled['flash'] = true;


And adding after that:
    if ($context['user']['is_guest'])
$disabled['mp3'] = true;

Here it is the solution, brought up by akabugeyes.

Altough now the guests can see the attached file link. Would be great if the adress inside the flash player [mp3][/mp3] tag would be hiden from guests as well. Or maybe a MOD that would hide attachements adresses from guests always.

Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: flickernever on January 30, 2008, 03:18:22 PM
I stumbled upon problem, when the MP3 file is 32kHZ the MP3 player plays it twice as fast. In 44kHz it works fine, though.

How can I solve this?
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: myaicons on February 10, 2008, 03:04:52 PM
Quote from: flickernever on January 25, 2008, 09:23:28 AM
I tried and it works great! Although now the problem is that Guests can listen to the MP3 attached files. How can I hide the MP3 flash player from guests?

im with this one!  how can we hide the player to guests???
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: NigelW on February 13, 2008, 02:45:48 PM
SMF 1.1.4

Previewing goes perfect, as soon as I post a message I just see the familiar blank "player". This only happens with Firefox, with IE7 I can see the player just fine in the message.

Any thoughts?

Thanks.
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: NigelW on February 14, 2008, 12:28:47 AM
I guess I'm the only facing problems with this MOD ::)

Are there any other MODS where you can insert an Mp3? I allready have the Mp3tube one.

Thanks.
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: kat on March 11, 2008, 05:34:02 PM
One question, if I may...

I wonder how forum admins stand regarding copyright laws, with this?

Any ideas?
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: papapitufo77 on March 23, 2008, 06:05:57 AM
This is a call for help about this mod. I'm pretty much a novice in all things SMF, but I have managed to installed it in two different forums, run both by myself, with mixed results regarding the MP3 player.

In this one, as you can see, the flash player is working
http://elmerendero.indiopole.com/foro/index.php?topic=8.msg12#msg12

But in the other, as you can also see, I'm only getting a blank player
http://www.blogin-in-the-wind.es/elforo/smf/index.php?topic=5.msg5#msg5

In both cases I'm using SMF 1.1.4, default theme and spanish language. Both forums are hosted in my dreamhost account.

As for the mods and php version, in the first forum (the one in which the mod is working) I have
1.     Auto Embed Video Clips      2.1.5   
2.    mp3 Flash Player BBC Tag (XHTML Compliant)    1.0
3.    Ultimate Shoutbox    1.40
4.    Custom Profile Field Mod    3.17
and you can check this link
http://www.blogin-in-the-wind.es/elforo/smf/phpinfo.php

In the second forum (the one where I only got a blank player) I have the following mods and phpinfo
1.     mp3 Flash Player BBC Tag (XHTML Compliant)      1.0
2.    Auto Embed Video Clips    2.1.3
3.    Image Align Tag    0.5
4.    FavIcon    1.1
http://elmerendero.indiopole.com/foro/phpinfo.php

As for the mod, it has been installed, uninstalled and installed again several times. And I have checked that all the relevant files (dewplayer.smf, dewplayer-multi.smf, podcast.gif, mp3.gif) are in place. And I have also checked that both subs.php are identical in that tag='mp3" part. And I can't find for the life of me what is wrong.

As far as I can see, I think that we can assume that the developer of the mod has long ago given up to answer any call for help. Will anyone else be kind enough to take a look at this problem? Many thanks in advance!!
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: Manu.G on March 26, 2008, 12:56:51 PM
I had the same problem with the with image of the player.
I tried the code in the subs.php with direct links, wont work.
After I had delete the direct link and use only this
\"/dewplayer.swf?
without "$boarddir" the mod works perfect at our forum! :D

Great mod!!!
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: Peter2008 on April 10, 2008, 01:27:14 PM
Hi all,

I did install this mod on my forum (version 1.1.4)
It did work fine and I was so happy with this mod, but after I did upgrade my forum. It doesnt work. When I try to uninstall this mod.
I get the following errors:




Uninstall Actions
Uninstall Actions "mp3 Flash Player BBC Tag (XHTML Compliant)":
Installing this package will perform the following actions:  Type Action Description
1. Delete File ./Themes/default/images/bbc/mp3.gif 
2. Delete File ./Themes/default/images/podcast.gif 
3. Delete File ./dewplayer.swf 
4. Delete File ./dewplayer-multi.swf 
5. Execute Modification mp3_flash_player_bbc_xhtml_1.0.xml Modification parse error
6. Execute Modification - Modification parse error


Could you please take a look at it? Thanks, waiting for your reply. Thanks :)
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: Peter2008 on April 11, 2008, 05:48:11 AM
--------------------------------------------------------------------------------
Hey its me again,

I did try to install the mod manually using parser software. But I get while applying the mod
test failed error for subs.php
But im sure I did install it correctly. What can I do now?

Could anyone please help? Thanks in advance 
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: HughJackman on April 19, 2008, 03:07:36 PM
Quote from: flickernever on January 27, 2008, 07:37:44 PM
Altough now the guests can see the attached file link. Would be great if the adress inside the flash player [mp3][/mp3] tag would be hiden from guests as well.

In Sources/Subs.php, try changing this:


} else {
$tag[\'content\'] = \'$1\';
}


into this:


} else {
$tag[\'content\'] = \'audio track (only for registered users)\';
}


Of course, you can use any text you like instead of "audio track (only for registered users)"

Ciao!
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: kat on May 22, 2008, 04:13:32 PM
Would converting a forum to utf8 affect this mod? It used to work fine on a forum that I admin, but all I can see, now, is the podcast graphic and nothing else.

I think one of the other admins converted the place to utf8, for some reason...

EDIT: Hmmm... just checked my own forum and that's gone the same way and it's NOT utf8.

Could the upgrade to SMF v1.1.5 have caused this, somehow?
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: kat on May 24, 2008, 04:22:33 PM
We figured it.
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: xkiller213 on July 14, 2008, 04:15:22 AM
hmmm i can't get it to work...

dunno why there is this extra index.php? before the dewplayer.swf

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="200" height="20" id="dewplayer" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="http://eschorale.110mb.com/index.php/dewplayer.swf?son=http://www.fileden.com/files/2008/7/13/2001685/ESChorale/Angel.mp3&autostart=0&bgcolor=FFFFFF" /><param name="quality" value="high" /><param name="bgcolor" value="FFFFFF" /><embed src="http://eschorale.110mb.com/index.php/dewplayer.swf?son=http://www.fileden.com/files/2008/7/13/2001685/ESChorale/Angel.mp3&autostart=0&bgcolor=FFFFFF" quality="high" bgcolor="FFFFFF" width="200" height="20" name="dewplayer" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object>

should i edit subs.php? what should i edit it with?
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: eslao on September 03, 2008, 08:01:42 PM
is this mod compatible with 1.1.5 version
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: kat on September 03, 2008, 08:10:41 PM
I have it on my forum and mine's 1.1.5.
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: eslao on September 03, 2008, 08:33:55 PM
i used it with 1.1.4
it wasnt workin, i ll try again
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: baijianpeng on September 26, 2008, 08:17:29 AM
hi,  Pierre29200,

I noticed that you had not been here for a long time, hope you can receive my message.

I like this Mod: named mp3 Flash Player BBC Tag , at http://custom.simplemachines.org/mods/index.php?mod=829 .

I tried it and it can work properly on independent installed SMF 1.1.6.

My production website, http://www.joomlagate.com, has  a forum built with SMF 1.1.6 and integrated into Joomla! 1.0.15 by JSMF Bridge (http://www.joomlahacks.com) .

When I installed this Mod on my production website, it can be installed, but can't work.

Look at: http://www.joomlagate.com/component/option,com_smf/Itemid,31/topic,3687.msg14616/#msg14616

That Flash player even did not show up !

The path for podcast.gif image on above page is also wrong, it is:

http://www.joomlagate.com//Themes/default/images/podcast.gif

You can see that this URL lost the folder name of my SMF.

How to fix this problem? Will you improve this Mod to let it work smoothly on bridged SMF?

Thanks.

Update:

Ok, I solved this problemm by manually edit the code.

Now, I hope the author will upgrade this great Mod to support SMF 2.0 version.

BTW, I want to rate this Mod, but I can't find the stars. Where can I show my appreciation for it?
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: markav2 on September 27, 2008, 09:05:10 AM
Quote from: baijianpeng on September 26, 2008, 08:17:29 AM
hi,  Pierre29200,

Update:

Ok, I solved this problemm by manually edit the code.

Now, I hope the author will upgrade this great Mod to support SMF 2.0 version.

BTW, I want to rate this Mod, but I can't find the stars. Where can I show my appreciation for it?



Please let us know how you modified the code and where. I would like to get mine working also.
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: Özgür on October 04, 2008, 06:19:14 PM
the player is white. but my forum is very dark. have you other black player ? i try bgcolor=000000 but buttons are not black.

you see..

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg516.imageshack.us%2Fimg516%2F9431%2Fsdwl3.jpg&hash=888ff6fa9a18e57e29cc34da38bb752e59012f2d)
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: kizley on October 27, 2008, 05:38:07 AM
Quote from: ManilaGurL on July 18, 2007, 04:30:59 AM
Help, was able to install the mod successfully, but it's not working.
When I click on play, nothing happens. All I see is a question
mark inside the player. You think it has something to do with the
link or the site wherein I uploaded the mp3? ::)


i have the same problem,
I am using smf 1.1.6 Default.

Pls help


Do you know a site where I can upload my mp3s?


Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: Sman1400 on December 08, 2008, 04:30:03 PM
hey, great mod/bbc

i was wondering if there is anyway i can get rid of the autoplay option, i dont know where in the code its set, but id like it so my members dont have that option, maybe you can help me out, thanks
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: KCMike on April 19, 2009, 04:03:10 PM
That cured my problems too Pierre. Thanks! It was strange the way my problem happened. I had been using the mod for several months and it worked flawlessly in both the forum and SMF Gallery comments. When I started getting the blank line with a podcast link in the forum, the mod still worked fine in the gallery. Had me scratching my head. Thanks for the fix!

Quote from: Pierre29200 on June 26, 2007, 12:46:53 PM
Quote from: BigGunn on June 26, 2007, 10:51:58 AM
At least I think that's the one I ended up using, might have been the one you posted right after that. Maybe it was. I'm not sure.

Lucky man, here is mp3 Flash Player BBC Tag version with absolute url without podcast in joined file.

Enjoy !

Pierre
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: yura_mdj on April 28, 2009, 03:56:28 AM
hello, I did not install the mod package... I prescribe the code in the files ( Subs.php, Post.template.php, Modifications.<language>.php ) &
Move the file "mp3.gif" to "./Themes/default/images/bbc" & "./Themes/babilon/images/bbc"
Move the file "podcast.gif" to "./Themes/default/images" & "./Themes/babilon/images"
Move the file "dewplayer.swf" & "dewplayer-multi.swf" to "the root directory" </>.

version 1.1.8, but why is it not working?

ЗЫ: форум заработал после указания


none;\" src=\"http://forum.frequencebonheur.fr/Themes/default/images/podcast.gif\" alt=\"Podcast\"></a><br>


но хотелось бы с переменными (это ж не дело)
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: REGNARTS_ on August 04, 2009, 12:12:19 AM
So I tried to parse this code to work with SMF 2.0 RC1.2
Instead of editing the file at /Themes/default/Post.template.php,
I edited /Sources/Subs-Editor.php by adding the line:
'mp3' => array('code' => 'mp3', 'before' => '[mp3=200,20,0,center]', 'after' => '[/mp3]', 'description' => $txt['mp3']), and modify all other language files on the forum. The mod works fine, but I keep getting the error below. When I parse the files, it says to edit Post.template.php. But I wasn't able to locate the line that it said to add after. The line I was looking for was in Subs-Editor.php so I thought to myself maybe version SMF 2.0, they called it differently and probably moved some file around. I added the code and it works but with the error as I said before. Any ideas to get rid of this error?

ERROR:
8: Undefined index: mp3
File: /xxx/htdocs/forum/Sources/Subs-Editor.php
Line: 1224
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: steve51184 on February 21, 2010, 03:58:09 AM
anyway to get this to work with rc2?
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: TeaTephi on January 14, 2011, 05:54:29 PM
Quote from: REGNARTS_ on August 04, 2009, 12:12:19 AM
So I tried to parse this code to work with SMF 2.0 RC1.2
Instead of editing the file at /Themes/default/Post.template.php,
I edited /Sources/Subs-Editor.php by adding the line:
'mp3' => array('code' => 'mp3', 'before' => '[mp3=200,20,0,center]', 'after' => '[/mp3]', 'description' => $txt['mp3']), and modify all other language files on the forum. The mod works fine, but I keep getting the error below. When I parse the files, it says to edit Post.template.php. But I wasn't able to locate the line that it said to add after. The line I was looking for was in Subs-Editor.php so I thought to myself maybe version SMF 2.0, they called it differently and probably moved some file around. I added the code and it works but with the error as I said before. Any ideas to get rid of this error?

ERROR:
8: Undefined index: mp3
File: /xxx/htdocs/forum/Sources/Subs-Editor.php
Line: 1224


Should I try this?  I'm disappointed no support for 2.0 RC4......
anyone else know?
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: Phil Serna on January 18, 2011, 01:43:27 PM
would be good for RC4! Been looking for this!
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: snyperthugs on February 18, 2011, 10:59:58 PM
I am just getting a black box now.... its been working for a long time!! now it just stopped working all together
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: snyperthugs on February 19, 2011, 09:17:26 AM
Is this mod dead??
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: alpheus on February 28, 2011, 01:13:22 PM
hello friends. I want to install this mod. Manual installation is said that find this code in Post.template.php;

'flash' => array('code' => 'flash', 'before' => '[flash=200,200]', 'after' => '[/flash]', 'description' => $txt[433]),

And Add after this code;

'mp3' => array('code' => 'mp3', 'before' => '[mp3=200,20,0,center]', 'after' => '[/mp3]', 'description' => $txt['mp3']),

But post.template.php is different of this in 2.0 rc5! Where will I add that code please?
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: alpheus on March 01, 2011, 11:13:28 AM
How will I install this mod for 2.0 rc5 please!
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: Arantor on March 01, 2011, 11:19:56 AM
It need to be totally rewritten from scratch to work for 2.0...
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: alpheus on March 02, 2011, 11:56:48 AM
Quote from: Arantor on March 01, 2011, 11:19:56 AM
It need to be totally rewritten from scratch to work for 2.0...

You want to say we can't install this mod for 2.0 :)
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: Arantor on March 02, 2011, 12:17:25 PM
Fine, you can't install this mod for 2.0. Happy now?

Well, because you can't. The code changed dramatically between 1.1.x and 2.0 such that the code needs to be rewritten completely.
Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: hardir on November 10, 2011, 03:16:19 PM
Quote from: IncognitoMuse on March 02, 2011, 12:17:25 PM
Well, because you can't. The code changed dramatically between 1.1.x and 2.0 such that the code needs to be rewritten completely.
Нихрена не надо переписывать. Ты бы мозги свои включил, а потом постил.
Буквально один кусочек кода подкорректировал и всё заработало на SMF2.0.1

Примерчик (http://myserv.dyndns-ip.com:8081/forum/index.php?topic=31.0)

Трымайте хлопцы!

Title: Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
Post by: musicus on February 28, 2012, 05:33:03 PM
Quote from: hardir on November 10, 2011, 03:16:19 PM
Quote from: IncognitoMuse on March 02, 2011, 12:17:25 PM
Well, because you can't. The code changed dramatically between 1.1.x and 2.0 such that the code needs to be rewritten completely.
Нихрена не надо переписывать. Ты бы мозги свои включил, а потом постил.
Буквально один кусочек кода подкорректировал и всё заработало на SMF2.0.1

Примерчик (http://myserv.dyndns-ip.com:8081/forum/index.php?topic=31.0)

Трымайте хлопцы!



Sorry that I answer  in english, but my russian is not verry good ;D
the mp3-player don`t work, because we are a musician-forum. we need  a mp3-player

when I insert the player. I see onliy
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fs1.directupload.net%2Fimages%2F120228%2Fc2s9yq5g.png&hash=ceada85c8227c7322109eadb83588d0866ae2235) (http://www.directupload.net)