0
1. I love the way the playlist player on the demo site has instructions for adding songs to a playlist. How can I replicate that?
2. if an album/artist is added without an image, can a default be specified? How?
Thanks
2. if an album/artist is added without an image, can a default be specified? How?
Thanks
Responses (3)
-
Accepted Answer
-
Accepted Answer
01. Okay - I added this to default.php, and it now works conditionally only if playlist is empty
$session = &JSession::getInstance('','');
$playlist_id = $session->get('current_playlist') ; // the playlist is an array
if($playlist_id == 0) echo '<p class="muted">Click on the <i class="fa fa-lg fa-plus-circle"></i> button next to any song, audio file or video to start adding selections into this player</p>';
echo $module_jwplayer;
However, still having a problem. If I load a playlist, then go back to homepage, the jwplayer module is empty again, but loads the playlist on popup?
Also, if i close the popup window with the taskbar x, you have to click restore on the page to get it back. Any way to make the x restore, or to simply hide the popup task bar x?
2. Can you give me a code tweak hint for the default image
Thanks! -
Accepted Answer
0hello
1. in our case it was not conditional.. it's always there. also your conditional "playlist_id == 0" won't work because 0 is a valid playlist id.. you should in any case check if the playlist is empty instead..
sorry, the x does not restore...
2. well I would go to file /helpers/helpers.php and find the function createThumbnail (about line 333) and start with something like :
if (!$file) $file = ""default.png";
and of course, you must have a file called default.png on your albums folder
Your Reply
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »