0
Hi Germi,
Once again, thank you for all your help!
Here is what I am unable to resolve at this time. I saw an earlier post about how to keep the playlist populated when an unregistered user views music. I too would like to keep the playlist with a playlist that I choose - meaning, when someone new comes to the site the music is already uploaded in the player.
Here is my code in php.
// 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 == "1") $playlist_id = 1;
if(!$playlist_id) $playlist_id = 1;
I've tried it half a dozen times so I must be missing something.
Next, I would like to remove the "show player in popup" for unregistered users. However, love the feature and will use it with registered users.
Then, I would like to remove the stars/ratings.
Next, I would like to change the font to arial and cannot seem to find the CSS files.
Finally, the pic below shows a configured player but cannot seem to control the look feel of the playlist. Actually, I would like to do away with the playlist and just have the player show up with the musical choices. Possible???
Thank you again.
Once again, thank you for all your help!
Here is what I am unable to resolve at this time. I saw an earlier post about how to keep the playlist populated when an unregistered user views music. I too would like to keep the playlist with a playlist that I choose - meaning, when someone new comes to the site the music is already uploaded in the player.
Here is my code in php.
// 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 == "1") $playlist_id = 1;
if(!$playlist_id) $playlist_id = 1;
I've tried it half a dozen times so I must be missing something.
Next, I would like to remove the "show player in popup" for unregistered users. However, love the feature and will use it with registered users.
Then, I would like to remove the stars/ratings.
Next, I would like to change the font to arial and cannot seem to find the CSS files.
Finally, the pic below shows a configured player but cannot seem to control the look feel of the playlist. Actually, I would like to do away with the playlist and just have the player show up with the musical choices. Possible???
Thank you again.

Responses (2)
-
Accepted Answer
01) try this code instead:
// 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 = 1;
2) I just point you in the right direction: on the same file, some lines below (line 103 approx) you find something like this:
$object .= "initPlayer();
current_playlist_url = \"".$playlist_url."\";
var popup_active = false;
".JHTML::image('modules/mod_muscol_jwplayer/tmpl/show_popup.png','Show player in popup', array("title" => JText::_("Show player in popup")))." ".JText::_("Show player in popup")."
".JHTML::image('modules/mod_muscol_jwplayer/tmpl/restore_player.png','Restore player', array("title" => JText::_("Restore player")))." ".JText::_("Restore player")."" ;
you have to split this code, so the part that prints out the buttons (show player in popup AND restore player) are only printed if the user is registered. how?
before that, wirte this:
$user =& JFactory::getUser();
and then you need to add and "if" sentence, to print the buttons only if the use is registered, something like..
if($user->id){
// your code here...
}
3) remove from where? the album page? go to /components/com_muscol/views/album/tmpl/default.php and find the pieces of code
(this is what prints the stars) and remove them...MusColHelper::show_stars
CSS files are in /components/com_muscol/assets/css/
4)mmm I'm not sure if I understand your question... if you dont want the big screen to appear (where a video would be played if this player plays video), then all you have to to is be sure that the HEIGHT of this player is equal to the heigh of the playlist + 20
(example: height of the playlist: 100, then height of the plyaer must be 120) on the module params... -
Accepted Answer
0Hi Germi,
I am so close to have the player look great! But still cannot seem to keep it populated. I have used this code a few times:
// 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 = 1;
and...alas, the playlist does not stay populated once I get out of the site and return.
Humm! Any other magic tricks? As always, thanks so much again!! l.
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 »