Username:    Password:   
Navigation
Latest 10 Mods
downloa... UniCoRN 15
article... UniCoRN 16
News JQ... UniCoRN 24
kroax J... UniCoRN 14
ReCaptc... Mike Crawford, Ben Maurer 37
Multime... Grimloch 119
Locatio... Digitanium 86
Reindel... Mehmet 57
Weblink... keddy 48
Downloa... keddy 70
Latest Tutorials
bullet.gif How to check your ho...
bullet.gif How to load up an Addon
bullet.gif Conditional Custom P...
bullet.gif Panels, Infusions an...
Last Seen Users
ezell66< 5 mins
wtfaatp00:17:24
souldat00:27:07
gojuryu00:28:39
webadmin4000:46:51
Dervis01:08:09
LINJEinc01:22:43
Bruno01:24:01
khalid54502:06:45
remedy33302:26:15
Member Poll
Apple?

Best personal electronics company ever!
Best personal electronics company ever!
5% [2 Votes]

Steve Jobs is a genius!
Steve Jobs is a genius!
16% [7 Votes]

All Hype, no substance
All Hype, no substance
20% [9 Votes]

Don't know, don't care.
Don't know, don't care.
16% [7 Votes]

Fanboy toys
Fanboy toys
18% [8 Votes]

They grow on trees, don't they?
They grow on trees, don't they?
25% [11 Votes]

Votes: 44
You must login to vote.
Started: 17 Aug : 21:41

Polls Archive
RSS Feeds
Subscribe to our Feeds

Latest Mod Releases
Latest News

Validated Feeds
Awards
Valid HTML 4.01!
Valid CSS!
News Ticker
View Thread
PHP-Fusion MODs & Infusions :: MODs and Infusions for PHP-Fusion v7 :: New Releases [v7 Infusions]
Who is here? 1 guest(s)
 Print Thread
Advanced MP3 Player Infusion 2.2
Arda
#21 Print Post
Posted on 13-07-2009 19:05
User Avatar

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):
Download source  Code
echo '</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?

Download source  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&#305;l&#305;çda&#287;&#305; (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
#22 Print Post
Posted on 13-07-2009 20:21
Beginner


Posts: 138
Joined: 13.09.06

selam ve tesekkür ederim Smile

BUT, the new panel code, is NOT working too ... sorry.
With popup, its ok and work fine, but not as panel Frown

good luck for re-coding Wink
Edited by gozoc on 13-07-2009 20:21
ZOCs Portal, Extboard, the very extended Forum.
NEW: COMBRIX
 
http://www.wuschelkiste.de
Arda
#23 Print Post
Posted on 13-07-2009 20:42
User Avatar

Site Admin


Posts: 686
Joined: 05.01.06

i need a little test by you:

can you put this on the root and run?
Download source  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&#305;l&#305;çda&#287;&#305; (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
#24 Print Post
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 Smile :
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
 
http://www.wuschelkiste.de
Arda
#25 Print Post
Posted on 13-07-2009 21:07
User Avatar

Site Admin


Posts: 686
Joined: 05.01.06

Thanks, now I get the reason of the issue Smile (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! Grin
 
gozoc
#26 Print Post
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 Smile 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 Smile

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 Smile
(It faster, more stable, very bugfixed, more good features, also in details, and safer)
The url is in my footer ... have a look Smile (english and german)

iyi geceler ....
ZOCs Portal, Extboard, the very extended Forum.
NEW: COMBRIX
 
http://www.wuschelkiste.de
Arda
#27 Print Post
Posted on 14-07-2009 09:20
User Avatar

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 :)
Download source  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&#305;l&#305;çda&#287;&#305; (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
#28 Print Post
Posted on 14-07-2009 10:01
Beginner


Posts: 138
Joined: 13.09.06

AAaahhhh .... looks better Smile
Its working .... look self ...

TNX.
ZOCs Portal, Extboard, the very extended Forum.
NEW: COMBRIX
 
http://www.wuschelkiste.de
Arda
#29 Print Post
Posted on 14-07-2009 12:01
User Avatar

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! Smile)
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
#30 Print Post
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
 
http://www.wuschelkiste.de
Arda
#31 Print Post
Posted on 14-07-2009 15:00
User Avatar

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 Smile

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! Wink
 
goudreault
#32 Print Post
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
#33 Print Post
Posted on 04-08-2009 16:26
User Avatar

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
#34 Print Post
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
#35 Print Post
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
#36 Print Post
Posted on 03-09-2009 16:04
User Avatar

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 Smile Imay look for it in a week or two.
 
Oskar
#37 Print Post
Posted on 03-09-2009 16:06
Beginner


Posts: 50
Joined: 12.10.06

Cool, thanks!
 
gatis
#38 Print Post
Posted on 03-09-2009 16:51
User Avatar

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
 
http://zline.oo.lv
gatis
#39 Print Post
Posted on 04-09-2009 07:35
User Avatar

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
 
http://zline.oo.lv
someguy4
#40 Print Post
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?
 
Jump to Forum:
Similar Threads
Thread Forum Replies Last Post
Help implementing MP3 player Coding support 5 02-09-2010 23:04
Media Player mod Ideas and Requests 3 02-09-2010 18:17
problem with infusion installing all DB tables Coding support 1 02-09-2010 08:49
Sorry lost my other topic, I did look at infusion couldn't delete it General Discussion 3 31-08-2010 20:56
Roster infusion/mod Ideas and Requests 1 25-08-2010 19:04