Advertisement:

Author Topic: mp3 Flash Player BBC Tag (XHTML_Compliant)  (Read 62783 times)

Offline Pierre29200

  • Semi-Newbie
  • *
  • Posts: 35
  • Gender: Male
    • Fréquence Bonheur : Forum de psychologie de la motivation et de la réussite
mp3 Flash Player BBC Tag (XHTML_Compliant)
« on: June 02, 2007, 10:57:05 PM »
Link to Mod
Rate this mod

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.
« Last Edit: June 07, 2007, 06:15:34 PM by Pierre29200 »
Pierre/Brest/Bretagne/France
PowerBook G4 1,5 Ghz/1 Go/160 Mo/Mac OS 10.4.8
NeoOffice 2.1
OpenOffice 2.1
Microsoft Word X Release 1
Seamonkey 1.1.1

Offline nitins60

  • Sr. Member
  • ****
  • Posts: 838
  • Gender: Male
  • LoVE mAKeS lIFe bEauTIfUL
    • Simple Mobile Forum - SMF
Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
« Reply #1 on: June 03, 2007, 04:26:03 AM »
Something interesting.:)

Offline Pierre29200

  • Semi-Newbie
  • *
  • Posts: 35
  • Gender: Male
    • Fréquence Bonheur : Forum de psychologie de la motivation et de la réussite
Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
« Reply #2 on: June 04, 2007, 12:26:44 PM »
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
Pierre/Brest/Bretagne/France
PowerBook G4 1,5 Ghz/1 Go/160 Mo/Mac OS 10.4.8
NeoOffice 2.1
OpenOffice 2.1
Microsoft Word X Release 1
Seamonkey 1.1.1

Offline shadow82x

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 11,278
  • Gender: Male
    • cmblaber on LinkedIn
Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
« Reply #3 on: June 04, 2007, 04:38:06 PM »
A very nice mod! I will use it
Colin B
Former Spammer, Customize, & Support Team Member

Offline qtime

  • Full Member
  • ***
  • Posts: 501
Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
« Reply #4 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...

Offline Pierre29200

  • Semi-Newbie
  • *
  • Posts: 35
  • Gender: Male
    • Fréquence Bonheur : Forum de psychologie de la motivation et de la réussite
Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
« Reply #5 on: June 07, 2007, 07:31:16 AM »
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
Pierre/Brest/Bretagne/France
PowerBook G4 1,5 Ghz/1 Go/160 Mo/Mac OS 10.4.8
NeoOffice 2.1
OpenOffice 2.1
Microsoft Word X Release 1
Seamonkey 1.1.1

Offline Smith Online

  • Semi-Newbie
  • *
  • Posts: 67
  • Gender: Male
    • The Smith Online UK Sea Fishing Forum
Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
« Reply #6 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
« Last Edit: June 10, 2007, 06:49:47 AM by Smith Online »


Offline Smith Online

  • Semi-Newbie
  • *
  • Posts: 67
  • Gender: Male
    • The Smith Online UK Sea Fishing Forum
Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
« Reply #7 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


Offline Pierre29200

  • Semi-Newbie
  • *
  • Posts: 35
  • Gender: Male
    • Fréquence Bonheur : Forum de psychologie de la motivation et de la réussite
Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
« Reply #8 on: June 10, 2007, 12:37:17 PM »
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
Pierre/Brest/Bretagne/France
PowerBook G4 1,5 Ghz/1 Go/160 Mo/Mac OS 10.4.8
NeoOffice 2.1
OpenOffice 2.1
Microsoft Word X Release 1
Seamonkey 1.1.1

Offline locomotion182

  • Semi-Newbie
  • *
  • Posts: 71
Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
« Reply #9 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?

Offline gangsta

  • Semi-Newbie
  • *
  • Posts: 41
Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
« Reply #10 on: June 10, 2007, 10:06:02 PM »
I have the same problem as you.



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

Offline locomotion182

  • Semi-Newbie
  • *
  • Posts: 71
Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
« Reply #11 on: June 10, 2007, 10:18:44 PM »
yeah i also get that exact same image

Offline gangsta

  • Semi-Newbie
  • *
  • Posts: 41
Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
« Reply #12 on: June 10, 2007, 10:25:38 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.

Offline locomotion182

  • Semi-Newbie
  • *
  • Posts: 71
Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
« Reply #13 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

Offline gangsta

  • Semi-Newbie
  • *
  • Posts: 41
Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
« Reply #14 on: June 10, 2007, 10:43:57 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 :)

Offline Pierre29200

  • Semi-Newbie
  • *
  • Posts: 35
  • Gender: Male
    • Fréquence Bonheur : Forum de psychologie de la motivation et de la réussite
Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
« Reply #15 on: June 10, 2007, 11:04:28 PM »
I have the same problem as you.



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
Pierre/Brest/Bretagne/France
PowerBook G4 1,5 Ghz/1 Go/160 Mo/Mac OS 10.4.8
NeoOffice 2.1
OpenOffice 2.1
Microsoft Word X Release 1
Seamonkey 1.1.1

Offline locomotion182

  • Semi-Newbie
  • *
  • Posts: 71
Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
« Reply #16 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.

Code: [Select]
<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')" />


Offline Pierre29200

  • Semi-Newbie
  • *
  • Posts: 35
  • Gender: Male
    • Fréquence Bonheur : Forum de psychologie de la motivation et de la réussite
Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
« Reply #17 on: June 11, 2007, 01:35:35 AM »
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.

Code: [Select]
<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

« Last Edit: June 11, 2007, 01:54:37 AM by Pierre29200 »
Pierre/Brest/Bretagne/France
PowerBook G4 1,5 Ghz/1 Go/160 Mo/Mac OS 10.4.8
NeoOffice 2.1
OpenOffice 2.1
Microsoft Word X Release 1
Seamonkey 1.1.1

Offline locomotion182

  • Semi-Newbie
  • *
  • Posts: 71
Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
« Reply #18 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
Code: [Select]
<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>

Offline Pierre29200

  • Semi-Newbie
  • *
  • Posts: 35
  • Gender: Male
    • Fréquence Bonheur : Forum de psychologie de la motivation et de la réussite
Re: mp3 Flash Player BBC Tag (XHTML_Compliant)
« Reply #19 on: June 11, 2007, 02:16:24 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
Code: [Select]
<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
« Last Edit: June 11, 2007, 02:42:00 AM by Pierre29200 »
Pierre/Brest/Bretagne/France
PowerBook G4 1,5 Ghz/1 Go/160 Mo/Mac OS 10.4.8
NeoOffice 2.1
OpenOffice 2.1
Microsoft Word X Release 1
Seamonkey 1.1.1