Another frontend, need opinions (beta release)

Third-party modifications and add-ons, Apps and Clients

Moderator: moderators

Postby deejay2302 » Sun Jul 11, 2010 2:36 pm

Really nice work. Its great work. :D
21.681 Artists
58.141 Albums
674.091 Songs
5072,14 GB (~ 49.341 Hours)
User avatar
deejay2302
 
Posts: 165
Joined: Tue Oct 06, 2009 5:36 pm
Location: Germany

Postby jeremy » Tue Jul 13, 2010 9:02 am

any idea when your gonna release this ?:D
jeremy
 
Posts: 19
Joined: Fri May 14, 2010 10:45 am
Location: Holland

Postby brett » Thu Jul 15, 2010 10:16 am

jeremy wrote:any idea when your gonna release this ?:D


Click Here.

If you have any questions send a PM here on the forum, I'd love some feedback. As I stated on the info page this was my first venture into php/sql, and If there are any ways to secure(I plan on switching to mysqli) or improve the script I'd love to hear about it. If there are any glaring issues let me right away please, I'm a noob to this stuff

P.S. This is a first public release, expect some bugs, qwirky issues, hell it might not even work at all with your setup as it was designed around my folder structure/setup. Let me know and I'll make it more configurable.
brett
 
Posts: 55
Joined: Thu Jun 10, 2010 7:13 am

Postby burjast » Thu Jul 15, 2010 1:48 pm

setup.php doesn't go anywhere, it always withdraws to "die location: /"

what could be the problem for that?
burjast
 
Posts: 71
Joined: Mon Jul 20, 2009 9:00 am
Location: Slovenia

Postby burjast » Thu Jul 15, 2010 1:54 pm

ignore that, because of funny only local ip restriction :)
burjast
 
Posts: 71
Joined: Mon Jul 20, 2009 9:00 am
Location: Slovenia

Postby brett » Thu Jul 15, 2010 10:00 pm

As of right now the autocomplete in the search box will fill based on the highest folder names using the separator '-' and adding both sides of it(artist and album) like so:
Artist - Album /
Artist - Album1 /
If this needs to be a different character let me know how you have your folders setup and I can add some things to the general options page in the admin dialog.
brett
 
Posts: 55
Joined: Thu Jun 10, 2010 7:13 am

Postby Tom » Fri Jul 16, 2010 12:34 am

Can't get it to work. The local ip check is easy to fix with a litle php knowledge, but i don't get WAMP completely (great programm though. Just reinstalled windows on my PC and i needed to reinstall all those things included in WAMP. :D ).

I get error messages when the settings try to connect to the database. I think the problem is that I don't know what to put in SERVER and DB_SERVER. (I use the settings.php file, because you can't change the settings in the browser if you entered the wrong settings).

What do you have in those fields? Since you use WAMP, it should work for me as well.

I so want this to work, it looks so awesome :D

thx in advance :wink:
Tom
 
Posts: 9
Joined: Thu Jun 24, 2010 8:32 am
Location: Eindhoven

Postby precipitous » Fri Jul 16, 2010 12:58 am

My setup:

I am running Subsonic on an Ubuntu Lucid box. No WAMP, or other Web Servers. My IP address is dynamic, so I am using DynDNS for DNS hosting. The basic music stats are:

802 artists
2,112 albums
20,833 songs
146.76 GB

I have about 5 people (plus myself) who access my Subsonic server from various parts of the world. I am extremely interested in running your beautiful front-end, but am not sure how to install and configure it. Specifically the directories to use, the addresses (since I am not running WAMP or anything like it), database setup (do I need to setup MySQL?), etc...

Can you please create a detailed set of instructions for simple setups such as mine? Any help would be greatly appreciated!
User avatar
precipitous
 
Posts: 91
Joined: Fri Aug 14, 2009 6:43 pm
Location: Santa Barbara CA USA

Postby brett » Fri Jul 16, 2010 5:51 am

Tom wrote:Can't get it to work. The local ip check is easy to fix with a litle php knowledge, but i don't get WAMP completely (great programm though. Just reinstalled windows on my PC and i needed to reinstall all those things included in WAMP. :D ).

I get error messages when the settings try to connect to the database. I think the problem is that I don't know what to put in SERVER and DB_SERVER. (I use the settings.php file, because you can't change the settings in the browser if you entered the wrong settings).

What do you have in those fields? Since you use WAMP, it should work for me as well.

I so want this to work, it looks so awesome :D

thx in advance :wink:


The local ip check really shouldn't be circumvented, you just need to type in the local address of the server when accessing setup.php.

You should be able to click on the basic setup button again and it re-enter the correct settings, I'll make sure you can if it doesn't already work. DB_SERVER should be the local ip or hostname of the server running wamp(without a port), assuming you didn't change any default settings.

SERVER should be the ip:port of the webserver(also wamp, you just need to add the port, I use a higher port number because my isp blocks anything on 80).
If you didn't change any settings it would be
Code: Select all
http://your_external_ip:80/

If you don't know it, goto http://www.whatsmyip.org , copy what it tells you, precede it with http:// and add the trailing /.

here is an example settings.php assuming the webserver is running on 192.168.1.110(hostname brett) on port 20000, with a public address of www.test.com. The subsonic server is running on the same computer , but on port 21000. The database that will be created will be mp3, the username/pw to the mysql server is test/123

Code: Select all
define('SERVER','http://www.test.com:20000/');
define('JUKE','http://www.test.com:21000/');
define('DB_SERVER','brett');
define('DB_USER','test');
define('DB_NAME','mp3');
define('DB_PASS','123');



Oeh mentioned there was an issue with paths on non windows systems, I'll add some kind of detection for that in the next release.
brett
 
Posts: 55
Joined: Thu Jun 10, 2010 7:13 am

Postby Tom » Fri Jul 16, 2010 9:38 am

oooow... you have to enter your external ip... Maybe you should add that to the explanation of the settings. It works now :D .

Testing stuff now...
Tom
 
Posts: 9
Joined: Thu Jun 24, 2010 8:32 am
Location: Eindhoven

Postby Tom » Fri Jul 16, 2010 10:52 am

For those who want this to work, but don't know how to do this, here is how I did it:

1. Change the port of your subsonic system, mine is 12345, but default is 80. The default might give a conflict with WAMP, since WAMP also uses port 80. You can change your subsonic port by dubbelclicking the subsonic icon in the system tray. Go to settings and change the port number in something else (like 12345). You have to restart the subsonic service to get this to work. The easiest way to do this is simply restarting your system.

2. Install WAMP, you can find the link on brett's website. You can leave everything to be default, maybe you want to change the install folder or browser.

3. Download the files from brett's site and extract them into the www folder as described on brett's site.

4. Now you have a webserver running and you can go to http://localhost/subsonic/setup.php. If you don't get the setup menu (like in the pictures) you have to change some settings. Open the setup.php in the www/subsonic folder in any texteditor (ex: notepad). Change this line:
if ($test[0] == '192' || $test[0] == '10' || $test[0] == '172' && in_array($test[1],$loc)) {
into
if (true) {
Save and go back to your webbrowser, now go to http://localhost/subsonic/setup.php. You should get the setup menu.

5. Go to http://localhost/ and click phpmyadmin.
Create a new database with the name subsonic.
Go to Privileges. Click the "add a new user"-button.
Fill in the form, Leave host and Generate Password empty. Select all the global privileges. and press go when your done.
Now delete the two root users, this is to make your database safer.

6. Go to c:\wamp\apps\phpmyadmin3.2.0.1 (or your install folder) and open config.inc.php in a text editor. Change these two lines:
$cfg['Servers'][$i]['user'] = '<your mysql username>';
$cfg['Servers'][$i]['password'] = 'your mysql password';
you should use the same username and password you used in step 5.

7. Now go to http://whatismyip.com and lookup you external ip. (note: you should have a static ip to get this to work, but you probably allready had that, because you have subsonic running)

8. enter the data in the setup menu:
server: http://<your external ip>:80/
mysql server: http://127.0.0.1/
subsonic server: http://127.0.0.1: subsonic port, ex: 12345>/
databasename: subsonic
databaseuser: <your mysql username, the one in step 5>
databasepassword: <your mysql password, the one in step 5>
subsonic username: <your admin user in subsonic>
subsonic password: <your password in subsonic>

9. Finish the setup and go to http://localhost/subsonic/

10. For safety: remove setup.php from the www folder (or rename it so nobody can find it).
Done
Tom
 
Posts: 9
Joined: Thu Jun 24, 2010 8:32 am
Location: Eindhoven

Postby brett » Fri Jul 16, 2010 11:31 am

Ah, that's why the LAN check wasn't working, I didn't check for the loopback(127.0.0.1), I've fixed a couple things:

- added the loopback to the initial check on setup.php
- multiple media folders
- playback buttons placement when switching back to music mode from video
this wasn't really huge because you can just refresh the entire page, but it bugged the hell out of me, coincidentally the player wasn't coming back up when you did switch, now it should.

I noticed a few things when I tried entering the wrong info(such as the wrong port number for example) in the settings dialog. It acts as though it's frozen when you the page is loading, but it's just waiting for a response from either your subsonic server, or sql server, by default php times out after 60 seconds. After that wait I was able to re-enter the correct settings. I'll fix this later on so it will load the page first, then check all the settings.

I've made a google code page here with an updated release, if you are testing this for me and would like to add bugs to the tracker let me know and I'll add you
brett
 
Posts: 55
Joined: Thu Jun 10, 2010 7:13 am

Postby burjast » Fri Jul 16, 2010 11:59 am

Is this script linux un-friendly? :) I have many problems for example:

Failed opening 'includes\\settings.php' for inclusion (include_path='.:/usr/lib/php')

where does it get double back slash, i can't find it in scripts..

Access denied for user 'apache'@'localhost' (using password: NO) why is that?

opera: huge memory consumer, after just few minutes, consumption over 1GB and rising quickly.

IE: frozen, unresponsive, freezes at around 70MB consumption.

For now i can't even test it...
burjast
 
Posts: 71
Joined: Mon Jul 20, 2009 9:00 am
Location: Slovenia

Postby brett » Fri Jul 16, 2010 12:11 pm

burjast wrote:Is this script linux un-friendly? :) I have many problems for example:

Failed opening 'includes\\settings.php' for inclusion (include_path='.:/usr/lib/php')

where does it get double back slash, i can't find it in scripts..
IE: frozen, unresponsive, freezes at around 70MB consumption.

For now i can't even test it...


Sorry about this, when I was first writing it I had nobody on my friends list that was using linux at the time. I'll see what I can do to fix the path issues next. If anyone has any experience with php specific to linux I'd love some help.

About the IE problem, I'm pretty sure the lockup is related to the way swfobject writes the player to the page, I'll dig into the jwplayer forum this weekend.

As for memory consumption in opera/firefox, I'm not entirely sure where to start, I'm curious if the fault is my sloppy jquery coding or jwplayer. I too have noticed an issue with firefox but Opera has worked fine. I'm going to scale back some of the things display one by one to see if I try to pinpoint where the leak is. Can you tell me how many music folders you have setup in Subsonic? How many folders are in the base directory? Once again thanks for testing
brett
 
Posts: 55
Joined: Thu Jun 10, 2010 7:13 am

Postby burjast » Fri Jul 16, 2010 12:33 pm

I haven't got any folders added yet, because of problems - the script isn't fully functional yet. I have experience with PHP and mainly with linux - it's not that different, so I'm investigating now first to repair broken things.

For example also mysql address doesn't work as "http://localhost/" but only as "localhost" on linux.
burjast
 
Posts: 71
Joined: Mon Jul 20, 2009 9:00 am
Location: Slovenia

PreviousNext

Return to Mods, Apps and Clients

Who is online

Users browsing this forum: No registered users and 2 guests