|
Advanced MP3 Player Infusion 2.2
|
| Arda |
Posted on 13-07-2009 19:05
|

Site Admin

Posts: 686
Joined: 05.01.06
|
gozoc wrote:
Hello and merhaba SoulSmasher ...
I am translating your locale in German .... (i need a little time), but i have the problem too with the error #2032.
Uploading is ok and works.
And a little approvement maybe in line 258 (mp3player_admin.php):
Codeecho '</select><br /> (<a href="http://www.longtailvideo.com/addons/skins" target="_blank">'.$locale['mp3player_103'].'</a>)</div><br />';
But i cant play ... the error 2032 makes me sadly.
AND ... i try another skin -> "snel" but looks very bad in the panel. Do you have hints to choose good and usable skins ??
You can see the mp3Panel in my DEV Portal for v7:
http://forum.wusc...7/news.php
SO, GERMAN locale added in attachment.
Merhaba :)
Thanks for the feedback, i really needed some testers around here :)
here's your playlist file which seems ok
http://forum.wusc...aylist.php
and here's the popup code (which works for me)
http://forum.wusc...rpopup.php
this means, i think i've made a possible typo in mp3player_panel.php
and by the way, can you please alter mp3player_panel.php with this and try?
Code<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright © 2002 - 2009 Nick Jones
| http://www.php-fu...
+--------------------------------------------------------+
| Filename: mp3player_panel.php
| CVS Version: 2.0
| Author: Arda Kılıçdağı (SoulSmasher)
| Web: http://www.soulsm... www.soulsmasher.com
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licen... Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (file_exists(INFUSIONS."mp3player_panel/locale/".$settings['locale'].".php")) {
include_once INFUSIONS."mp3player_panel/locale/".$settings['locale'].".php";
} else {
include_once INFUSIONS."mp3player_panel/locale/English.php";
}
include_once INFUSIONS."mp3player_panel/infusion_db.php";
$mp3settings=dbarray(dbquery("SELECT * FROM ".DB_MP3PLAYERPANEL));
openside($locale['mp3player_00']);
echo "<div style='text-align: center; margin: 0px auto'>";
if ($mp3settings['player_mode']==1) {
echo "<script type='text/javascript' src='".INFUSIONS."mp3player_panel/includes/swfobject.js'></script>
<div id='mediaspace'>Mp3 Player</div>
<script type='text/javascript'>
var s1 = new SWFObject('".INFUSIONS."mp3player_panel/includes/player.swf','ply','".$mp3settings['width']."','".($mp3settings['visualization_enabled']?($mp3settings['height']+$mp3settings['visualization_height']):$mp3settings['height'])."','9','#');
s1.addParam('allowfullscreen','false');
s1.addParam('allowscriptaccess','sameDomain');
s1.addParam('wmode','opaque');
s1.addParam('flashvars','file=".INFUSIONS."mp3player_panel/playlist.php&playlist=bottom&backcolor=".$mp3settings['backcolor']."&frontcolor=".$mp3settings['frontcolor']."&lightcolor=".$mp3settings['lightcolor']."&playlistsize=".($mp3settings['height']-20).($mp3settings['player_shuffle']?"&shuffle=true":"").($mp3settings['player_behaviour']==0?"":($mp3settings['player_behaviour']==1?"&repeat=list":"&repeat=always")).($mp3settings['visualization_enabled']?"&plugins=revolt-1":"")."&skin=".INFUSIONS."mp3player_panel/skins/".$mp3settings['skin']."');
s1.write('mediaspace');
</script>";
} else if ($mp3settings['player_mode']==0) {
add_to_head('<script type="text/javascript">
function mp3popup(url)
{
newwindow=window.open(url,\'name\',\'height='.($mp3settings['visualization_enabled']?($mp3settings['height']+$mp3settings['visualization_height']):$mp3settings['height']).',width='.$mp3settings['width'].'\');
if (window.focus) {newwindow.focus()}
}
</script>');
echo "<center>";
//echo '<form>';
echo '<input type="submit" name="mp3 player" value="'.$locale['mp3player_90'].'" class="button" onclick="mp3popup(\''.INFUSIONS.'mp3player_panel/playerpopup.php\')" />';
//echo '</form>';
echo "</center>";
}
echo "</div>";
closeside();
?>
and about the skins;
I know they don't look well, because JW player is lately turned itself to a video player more than an mp3 player, and its default layout is a bit much (which includes album arts etc.) and i didn't use the old version because of the lack of plugins/skins and possible compatibility issues etc.
Thanks again for the feedback and translation! I'll include it in the next version (which i think will be soon :))
Edited by Arda on 13-07-2009 19:14 |
| |
|
|
| gozoc |
Posted on 13-07-2009 20:21
|
Beginner

Posts: 138
Joined: 13.09.06
|
selam ve tesekkür ederim 
BUT, the new panel code, is NOT working too ... sorry.
With popup, its ok and work fine, but not as panel 
good luck for re-coding
Edited by gozoc on 13-07-2009 20:21
ZOCs Portal, Extboard, the very extended Forum.
NEW: COMBRIX |
| |
|
|
| Arda |
Posted on 13-07-2009 20:42
|

Site Admin

Posts: 686
Joined: 05.01.06
|
i need a little test by you:
can you put this on the root and run?
Code<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright © 2002 - 2009 Nick Jones
| http://www.php-fu...
+--------------------------------------------------------+
| Filename: playerpopup.php
| CVS Version: 2.0
| Author: Arda Kılıçdağı (SoulSmasher)
| Web: http://www.soulsm... www.soulsmasher.com
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licen... Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
require "maincore.php";
if (file_exists(INFUSIONS."mp3player_panel/locale/".$settings['locale'].".php")) {
include_once INFUSIONS."mp3player_panel/locale/".$settings['locale'].".php";
} else {
include_once INFUSIONS."mp3player_panel/locale/English.php";
}
include_once INFUSIONS."mp3player_panel/infusion_db.php";
$mp3settings=dbarray(dbquery("SELECT * FROM ".DB_MP3PLAYERPANEL));
echo "<html><head><style type='text/css'>
body {
margin-top: 0px;
margin-left: 0px;
}
</style>
</head><body>";
echo "<center>";
echo "<script type='text/javascript' src='".INFUSIONS."mp3player_panel/includes/swfobject.js'></script>
<div id='mediaspace'>Mp3 Player</div>
<script type='text/javascript'>
var s1 = new SWFObject('".INFUSIONS."mp3player_panel/includes/player.swf','ply','".$mp3settings['width']."','".($mp3settings['visualization_enabled']?($mp3settings['height']+$mp3settings['visualization_height']):$mp3settings['height'])."','9','#');
s1.addParam('allowfullscreen','false');
s1.addParam('allowscriptaccess','sameDomain');
s1.addParam('wmode','opaque');
s1.addParam('flashvars','file=".INFUSIONS."mp3player_panel/playlist.php&playlist=bottom&backcolor=".$mp3settings['backcolor']."&frontcolor=".$mp3settings['frontcolor']."&lightcolor=".$mp3settings['lightcolor']."&playlistsize=".($mp3settings['height']-20).($mp3settings['player_shuffle']?"&shuffle=true":"").($mp3settings['player_behaviour']==0?"":($mp3settings['player_behaviour']==1?"&repeat=list":"&repeat=always")).($mp3settings['visualization_enabled']?"&plugins=revolt-1":"")."&skin=".INFUSIONS."mp3player_panel/skins/".$mp3settings['skin']."');
s1.write('mediaspace');
</script>";
echo "</center>";
echo "</body></html>";
?>
like: yoursite.com/test.php
when you do it, do the mp3 files work ?
edit: and have you tried external links ? do they work even local mp3 files gives error?
Edited by Arda on 13-07-2009 20:43 |
| |
|
|
| gozoc |
Posted on 13-07-2009 20:52
|
Beginner

Posts: 138
Joined: 13.09.06
|
mmhh ....
no, i dont tried external mp3 files.
Your test/try can not working.
I have many subfolders, and my v7-testportal is a subfolder too.
No other way.
I tried this: http://forum.wusc...7/test.php
But more, is not possible for me. sorry.
All my cms´s are in subfolders, or in subdomains, not only in root.
Maybe this is helping you :
http://www.google...p;ie=UTF-8
Edited by gozoc on 13-07-2009 20:56
ZOCs Portal, Extboard, the very extended Forum.
NEW: COMBRIX |
| |
|
|
| Arda |
Posted on 13-07-2009 21:07
|

Site Admin

Posts: 686
Joined: 05.01.06
|
Thanks, now I get the reason of the issue (Weird by the way, I don't suffer from that on my sites)
Anyway, because the playlist.php (actually the xml file) is in not in root, and the mp3 files' urls are like "../../infusions...", the script thinks the files' url is like that:
http:// forum.wuschelkiste.de/fusion7/../../infusions/mp3player_panel/songs/blahblah.mp3
Update will come soon (probably tomorrow). I'll use $settings['siteurl'] instead of BASEDIR definition/or str_replace to delete "../" string from url and look for your tweaks. (I have to test which is more stable/faster)
Thanks again for the test and feedback,
And iyi geceler (which means good night) from Turkey!  |
| |
|
|
| gozoc |
Posted on 13-07-2009 21:22
|
Beginner

Posts: 138
Joined: 13.09.06
|
Ok .... i think so too ... a problem with pathes ....
Will keep a ey on this thread and give you than reply.
But the important work for me (i dont really want a mp3 player), was the translation for you ... a little help - no less, no more 
btw.: i will not have a discuss over the v7 cms, its buggy, not usable, not enought features, slow and so on ... sorry.
I am working on and with the BSFusion (based on v6) with silvermoon (developer from security infusion), and if you have a look in this, you will understand me 
(It faster, more stable, very bugfixed, more good features, also in details, and safer)
The url is in my footer ... have a look (english and german)
iyi geceler ....
ZOCs Portal, Extboard, the very extended Forum.
NEW: COMBRIX |
| |
|
|
| Arda |
Posted on 14-07-2009 09:20
|

Site Admin

Posts: 686
Joined: 05.01.06
|
Gozoc, can you try this as playlist.php?
If this works for you, I'll release the new version :)
Code<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright © 2002 - 2009 Nick Jones
| http://www.php-fu...
+--------------------------------------------------------+
| Filename: playlist.php
| CVS Version: 2.1
| Author: Arda Kılıçdağı (SoulSmasher)
| Web: http://www.soulsm... www.soulsmasher.com
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licen... Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
require_once "../../maincore.php";
include INFUSIONS."mp3player_panel/infusion_db.php";
header ("Content-type: application/xml");
echo '<?xml version="1.0" encoding="UTF-8"?>
<playlist version="1" xmlns="http://xspf.org/ns/0/">
<trackList>';
$directory = opendir(INFUSIONS."mp3player_panel/songs/");
while (false !== ($filename = readdir($directory))) {
if($filename!='.' && $filename!='..' && $filename!='index.php') {
echo "<track>
<title>".$filename."</title>
<location>".$settings['siteurl']."infusions/mp3player_panel/songs/".$filename."</location>
</track>";
}
}
closedir($directory);
// <image>".INFUSIONS."mp3player_panel/includes/button.png</image>
//remote mp3
$result=dbquery("SELECT remote_mp3_name, remote_mp3_url FROM ".DB_MP3PLAYERREMOTE." ORDER BY remote_mp3_id DESC");
if(dbrows($result)) {
while($data=dbarray($result)) {
echo "<track>
<title>".$data['remote_mp3_name']."</title>
<location>".$data['remote_mp3_url']."</location>
</track>";
}
}
echo "</trackList></playlist>";
?>
|
| |
|
|
| gozoc |
Posted on 14-07-2009 10:01
|
Beginner

Posts: 138
Joined: 13.09.06
|
AAaahhhh .... looks better 
Its working .... look self ...
TNX.
ZOCs Portal, Extboard, the very extended Forum.
NEW: COMBRIX |
| |
|
|
| Arda |
Posted on 14-07-2009 12:01
|

Site Admin

Posts: 686
Joined: 05.01.06
|
Infusion is updated to 2.1!
VERSION HISTORY
----------------
2.1 - A tiny bug is fixed in playlist.php
German translation added (Thanks gozoc!  )
JW FLV Media Player updated to 4.5.203
UPDATING
----------------
-From 2.0
*Go to Admin panel/System administration/Infusions and infuse Mp3 Player. It'll update itself |
| |
|
|
| gozoc |
Posted on 14-07-2009 14:33
|
Beginner

Posts: 138
Joined: 13.09.06
|
Tesekkür Ederim and many thanks ...
But i am afraid, you have to update your first post.
The attachment is the old version 2.0 ... check it please.
(The other download link is ok)
ZOCs Portal, Extboard, the very extended Forum.
NEW: COMBRIX |
| |
|
|
| Arda |
Posted on 14-07-2009 15:00
|

Site Admin

Posts: 686
Joined: 05.01.06
|
gozoc wrote:
Tesekkür Ederim and many thanks ...
But i am afraid, you have to update your first post.
The attachment is the old version 2.0 ... check it please.
(The other download link is ok)
rica ederim and you're welcome 
well, i'm afraid it's because of your browser's cache,
this is the file:
SoulSmasher attached the following file:
advanced_mp3_player_panel_2_1.zip
and when i click at the attachment, it is 2.1
Anyways, it works right, eh!  |
| |
|
|
| goudreault |
Posted on 04-08-2009 02:11
|
Newbie

Posts: 30
Joined: 11.08.08
|
is it possible to use the panel to play small videos? |
| |
|
|
| Arda |
Posted on 04-08-2009 16:26
|

Site Admin

Posts: 686
Joined: 05.01.06
|
goudreault wrote:
is it possible to use the panel to play small videos?
No, currently not possible. But I'm planning to make videos support. Meanwhile you can use "kroax" or my flv media player bb code |
| |
|
|
| goudreault |
Posted on 04-08-2009 17:13
|
Newbie

Posts: 30
Joined: 11.08.08
|
SoulSmasher wrote:
goudreault wrote:
is it possible to use the panel to play small videos?
No, currently not possible. But I'm planning to make videos support. Meanwhile you can use "kroax" or my flv media player bb code
ok, thanks. Just want somethinng that plays a video in a panel but not important right now. I will wait for future release. |
| |
|
|
| Oskar |
Posted on 03-09-2009 07:33
|
Beginner

Posts: 50
Joined: 12.10.06
|
Are thinking about adding the option for different categories?\
Like
Hip-hop
Latin
Dance
Thats will be nice i think |
| |
|
|
| Arda |
Posted on 03-09-2009 16:04
|

Site Admin

Posts: 686
Joined: 05.01.06
|
Well I'm busy nowadays, But I may plan doing one with categories, but i need time to play with the code to change categories on the fly for the player side, which i don't have currently Imay look for it in a week or two. |
| |
|
|
| Oskar |
Posted on 03-09-2009 16:06
|
Beginner

Posts: 50
Joined: 12.10.06
|
Cool, thanks! |
| |
|
|
| gatis |
Posted on 03-09-2009 16:51
|

Beginner

Posts: 129
Joined: 22.05.06
|
there is some way to make that users can use uploading mp3 and in profile is player wher is user songs. And list wher ir all songs like members.php
Sorry for bad english |
| |
|
|
| gatis |
Posted on 04-09-2009 07:35
|

Beginner

Posts: 129
Joined: 22.05.06
|
I hope on modification for this infusion for members
I translate to Latvian language, file can found in attachment
gatis attached the following file:
latvian.rar |
| |
|
|
| someguy4 |
Posted on 27-01-2010 19:22
|
Newbie

Posts: 1
Joined: 19.01.10
|
I have version 2.1. Everything works except it won't play the files. Any ideas? |
| |
|