0
hi germi,
can you tell me that where is the jw player and its code in mc ?
i want to change its skin with this one : http://www.longtailvideo.com/addons/skins/59/modieus-%28stylish%29-slim?q=
can you tell me that where is the jw player and its code in mc ?
i want to change its skin with this one : http://www.longtailvideo.com/addons/skins/59/modieus-%28stylish%29-slim?q=
Responses (7)
-
Accepted Answer
0hello
I'm afraid there's no parameter for changing the skin on the current version of JW Player, so you'll have to do it manually, entering on the code.
the code is printed on
plugins/muscolplayers/jwplayer.php
you'll have to add the skin adding the correct line of code on the correct places:
s".$unique_id.".addVariable('skin','skinfile.swf');
around lines 97 and 117
do it only if you know what you're doing.
place the skin file on the folder
/plugins/muscolplayers/jwplayer/
if it does not load, try to write the absolute path (including the "
/plugins/muscolplayers/jwplayer/") when calling the skin
again: Do this only if you understand what you're doing, DONT MESS with code you dont understand.
good luck -
Accepted Answer
0so nothing changed
there re two of jw player codes in jwplayer.php
i tried :
-adding code to all lines one by one
-adding full path of skin,
-another skin file,
-adding the code 2 of jw player codes in the same time,
-also i cleaned cache...
what can i try else ?
thanks for your kind help...
if($multi){
$playlist_url = urlencode($playlist_url);
$player = $uri->base() . "plugins/muscolplayers/jwplayer/player.swf" ;
$unique_id = time();
$object = "The player will show in this paragraph
var s".$unique_id." = new SWFObject('".$player."','album_player','".$width."','".$height."','9');
s".$unique_id.".addParam('allowfullscreen','true');
s".$unique_id.".addParam('allowscriptaccess','always');
s".$unique_id.".addParam('flashvars','file=".$playlist_url. $string_params . "&autostart=false&repeat=list');
s".$unique_id.".write('album_player_".$unique_id."');
var album_player = document.getElementById('album_player');
";
} else {
$player = $uri->base() . "plugins/muscolplayers/jwplayer/player.swf" ;
if($params->get('working_mode') || $options["force_show_player"] ){
$unique_id = $song->id;
$object = "The player will show in this paragraph
var s".$unique_id." = new SWFObject('".$player."','player','".$width."','".$height."','9');
s".$unique_id.".addVariable('skin','stylish_slim.swf');
s".$unique_id.".addParam('allowfullscreen','true');
s".$unique_id.".addParam('allowscriptaccess','always');
s".$unique_id.".addParam('flashvars','file=".$song->filename."&duration=".$song->length . $string_params . "&autostart=false');
s".$unique_id.".write('single_player_".$unique_id."');
";
}
else{ -
Accepted Answer
-
Accepted Answer
0yes i did it before,
now again tried but not working,
added the jwplayer.php to zip file, pls take a look it [file name=jwplayer.zip size=1873]http://www.joomlamusicsolutions.com/images/fbfiles/files/jwplayer.zip[/file] -
Accepted Answer
0well, I found out what I told you wrong :lol:
the skin must be added in the flashvar param, not outside it (like I told you). My mistake
so the code should look like:
s".$unique_id.".addParam('flashvars','file=".$playlist_url. $string_params . "&autostart=false&repeat=list&skin=".$uri->base()."plugins/muscolplayers/jwplayer/stylish_slim.swf');
by the way, that will change the skin on the PLUGIN, but not on the module. if you want to change to the module too, you'll have to do the same on the module file:
/modules/mod_muscol_jwplayer/helper.php
hope it works this time! -
Accepted Answer
-
Accepted Answer
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 »