The player will show in this paragraph

P
P
Offline
0
I noticed this error when viewing any songs where the name contains either " ' " (apostrophe), accent egu or some French characters..

Any fix for this?

Thanks
Responses (15)
  • Accepted Answer

    Sunday, September 20 2009, 08:12 AM - #Permalink
    0
    mmm I though this was solved by a "addslashes" function in the plugin...

    but you mean when the song name contains " ' " or the FILENAME contains it? if its the filename, that makes more sense... (filenames should NEVER contain this characters!!

    can you post a link to your site? I'll take a look at the page code..
    The reply is currently minimized Show
  • Accepted Answer

    P
    P
    Offline
    Sunday, September 20 2009, 02:24 PM - #Permalink
    0
    Hi Germi,

    Here's an example

    Click on the song L'Humanite (file name is also the same spelling L'Humanite
    .mp3)

    Thanks,
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, September 20 2009, 02:31 PM - #Permalink
    0
    ok

    no doubt about it, the problem is the "'" on the file name. you have to change it I'm afraid...

    filenames should NEVER contain characters out ot A-Z, 0-9 and underscore "_" .... and blankspaces are not so recommended too, but I think they work

    in fact, if you use the MC uploader, it filters and renames filenames to avoid this. So I asume you uploaded byt FTP, wich is fine, but you'll have to rename those files containing '

    :)
    The reply is currently minimized Show
  • Accepted Answer

    P
    P
    Offline
    Sunday, September 20 2009, 05:42 PM - #Permalink
    0
    Alright...
    I think I have a couple hundred files like that.

    Thank you..
    The reply is currently minimized Show
  • Accepted Answer

    J. Lukass
    J. Lukass
    Offline
    Friday, March 05 2010, 08:29 PM - #Permalink
    0
    Hi Germi!

    i have the same (error) message if the new module "mod_muscol_featured_albums" (version 2.0.0) is acivated :(

    if i disable "mod_muscol_featured_albums" the player is correct showing.

    what can I do about that?

    Thank you!
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, March 06 2010, 09:17 PM - #Permalink
    0
    Finwick wrote:
    Hi Germi,

    Here's an example

    Click on the song L'Humanite (file name is also the same spelling L'Humanite
    .mp3)

    Thanks,


    I've solved this problem with utf8_jwstr trick. This will allow you to play any file that has valid UTF8 filenames. The solution can be found here:

    http://www.joomlamusicsolutions.com/en/forum/version-2/music-with-utf8-characters-album-download.html

    Only works for version 2 as fas as I know though.
    The reply is currently minimized Show
  • Accepted Answer

    P
    P
    Offline
    Sunday, March 07 2010, 01:25 AM - #Permalink
    0
    Gomakeit,

    which view.feed.php file? Muscol has 4 of them.


    Thanks,
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, March 07 2010, 03:14 AM - #Permalink
    0
    You'll need to modify all the relevant ones, namely in album, search and songs

    Also remember to apply the utf8_jwstr trick to plugins/muscolplayer/jwplayer.php. That will allow individual song to play correctly.
    The reply is currently minimized Show
  • Accepted Answer

    P
    P
    Offline
    Sunday, March 07 2010, 02:09 PM - #Permalink
    0
    Sorry, no luck. I've changed them just like this:

    $song_path_complet = urlencode(MusColHelper::getSongFileURL($song)) ;
    $song_path_complet = str_replace('%2F','/',$song_path_complet);
    $song_path_complet = str_replace('%3A',':',$song_path_complet);
    $song_path_complet = str_replace('+',' ',$song_path_complet);

    and player still doesn't show.
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, March 07 2010, 08:49 PM - #Permalink
    0
    @ Finwick,

    This method only allows you to play files with UTF8 characters in their file path but doesn't solve the problem with player showing up (is that your problem?).

    As far as I can tell this has to do with having jwplayer module or random/featured module enabled for MusCol. For that part I haven't found a solution yet. I'll dig around a bit to see if I can find a solution to that.
    The reply is currently minimized Show
  • Accepted Answer

    P
    P
    Offline
    Sunday, March 07 2010, 08:59 PM - #Permalink
    0
    My problem is that mp3 file that contains any characters besides a-z doesn't play, I get this message: The player will show in this paragraph.
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, March 07 2010, 09:03 PM - #Permalink
    0
    Do you have any other module installed for your MusCol? (e.g. Random album, Recently added Album etc) Try disable all of them and see if your player shows up.

    And for which view are you having this problem? Individual song or album?
    The reply is currently minimized Show
  • Accepted Answer

    P
    P
    Offline
    Sunday, March 07 2010, 09:09 PM - #Permalink
    0
    individual songs, jwplayer plugin doesn't like files with weird characters. The file name is the same as in the name in the picture "Panama'm Tombe"http://www.joomlamusicsolutions.com/images/fbfiles/images/example.jpg
    Attachments:
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, March 07 2010, 09:19 PM - #Permalink
    0
    For individual song the fix is different. You need to use another fix due to how jwplayer treats encoding

    Download this file and unzip it under plugins/muscolplayer/. This will create a file called jwplayer_helper.php file.

    Then go to jwplayer.php in the same directory and change line 127 to

    s".$unique_id.".addParam('flashvars','file=" .utf8_jwstr($song->filename)."&duration=".$song->length . $string_params . "&autostart=false');

    Basically utf8_jwstr function is an encoding function I wrote that handles jwplayer encoding. See if that works. [file name=jwplayer_helper.zip size=430]http://www.joomlamusicsolutions.com/images/fbfiles/files/jwplayer_helper.zip[/file]
    Attachments:
    The reply is currently minimized Show
  • Accepted Answer

    P
    P
    Offline
    Sunday, March 07 2010, 11:40 PM - #Permalink
    0
    I did exactly as you suggested but no I get a blank page when click on the song name.
    I replaced line 127 with this : s".$unique_id.".addParam('flashvars','file=" .utf8_jwstr($song->filename)."&duration=".$song->length . $string_params . "&autostart=false');
    And Jwplayer_help.php was copied into the plugin folder.
    The reply is currently minimized Show
Your Reply