Default Playlist

roverselli
roverselli
Offline
0
Hi Germi,

Now the JWPlayer works fine on my future site ... but when I open a new session on my site, no playlist is loaded and the player displays an error ... :unsure:

I didn't find any parameter about a default playlist. So I modified :

joomla/modules/mod_muscol_jwplayer/helper.php line 36 :

// we'll get the current playlist from the session
$session = &JSession::getInstance('','');
$playlist_id = $session->get('current_playlist') ; // the playlist is an array

if(!$playlist_id) $playlist_id = 2;
// echo '$playlist_id=' . $playlist_id;

Playlist 2 is my default one ...

Am I missing something ?

Is there another way to get a default playlist ?

Are there any consequences with my modification ?

Thanks for your answer ...

Best
Gino
Responses (16)
  • Accepted Answer

    Wednesday, August 01 2012, 09:44 PM - #Permalink
    0
    no problems at all, this is the modification I would have told you to do.

    this is not a parameter but we will add it. for now, this modification is just great, you won't have any trouble!
    The reply is currently minimized Show
  • Accepted Answer

    fabio
    fabio
    Offline
    Sunday, January 27 2013, 01:57 PM - #Permalink
    0
    Hi Germi.

    I have the problem to create a new playlist...
    ,
    you can help me?

    thanks,, jack
    The reply is currently minimized Show
  • Accepted Answer

    fabio
    fabio
    Offline
    Monday, January 28 2013, 09:50 PM - #Permalink
    0
    Hi Germi,
    i don't find the button to get my playlist,
    i have modified the parameter like Gino but not work....

    for me is difficult, i'm not expert in joomla and extensions,,,,

    thanks...
    The reply is currently minimized Show
  • Accepted Answer

    Monday, January 28 2013, 09:53 PM - #Permalink
    0
    hello!

    can you post a link to your page so I can see?
    The reply is currently minimized Show
  • Accepted Answer

    fabio
    fabio
    Offline
    Monday, January 28 2013, 10:00 PM - #Permalink
    0
    http://www.gothamcrew.com/index.php?option=com_content&view=article&id=16&Itemid=125

    I send you the img about the parameter...how i see in the panel,,
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, January 29 2013, 04:55 PM - #Permalink
    0
    hello!
    thanks, but in where is music collection? I clicked Music but it's not there...
    The reply is currently minimized Show
  • Accepted Answer

    fabio
    fabio
    Offline
    Tuesday, January 29 2013, 06:30 PM - #Permalink
    0
    hello,

    this is my problem,
    is impossible add the song to playlist from the parameter pannel of the
    component Music Collection..
    The reply is currently minimized Show
  • Accepted Answer

    fabio
    fabio
    Offline
    Tuesday, January 29 2013, 06:33 PM - #Permalink
    0
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, January 29 2013, 06:38 PM - #Permalink
    0
    well, you need to "add song to playlist" in some song, and then you also need a NEW menu item that points to Music Collection -> playlists to be able to create them..

    can you create it?
    The reply is currently minimized Show
  • Accepted Answer

    fabio
    fabio
    Offline
    Tuesday, January 29 2013, 07:36 PM - #Permalink
    0
    I don't know,
    I try to modified the helpher.php like Gino in the post, but nothin,,,
    The reply is currently minimized Show
  • Accepted Answer

    fabio
    fabio
    Offline
    Wednesday, January 30 2013, 03:40 PM - #Permalink
    0
    hi Germi,
    you can help me to solve this problem ?
    I really want is for my site, my band ..
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, January 30 2013, 06:19 PM - #Permalink
    0
    but, have you created any playlist to use as the default playlist?
    The reply is currently minimized Show
  • Accepted Answer

    fabio
    fabio
    Offline
    Wednesday, January 30 2013, 07:28 PM - #Permalink
    0
    I uploaded an album with two songs, but I can not create a playlist,
    I can not find the parameters of the command add music playlists or upload music,
    there is only the command deletes ...
    The reply is currently minimized Show
  • Accepted Answer

    fabio
    fabio
    Offline
    Wednesday, January 30 2013, 07:41 PM - #Permalink
    0
    http://www.joomlamusicsolutions.com/images/fbfiles/images/foto.JPG I am attaching what I see from the control panel of the component..
    thanks
    Attachments:
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, January 30 2013, 07:44 PM - #Permalink
    0
    oh..! :) it's easy..
    playlists are created on the Frontend, ONLY.
    first you need to create a new Menu Item pointing to Music Collection .> playlists.
    then start adding songs with the (+) button on the songs, and on the playlists view, this the playlist save button...
    The reply is currently minimized Show
  • Accepted Answer

    fabio
    fabio
    Offline
    Wednesday, January 30 2013, 09:25 PM - #Permalink
    0
    ok, I understand the operation ...
    Now the fun begins,
    thanks for the help and patience, congratulations for your work and good luck!
    See you soon ...
    Jack
    The reply is currently minimized Show
Your Reply