Another frontend, need opinions (beta release)

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

Moderator: moderators

Postby jeremy » Wed Jul 21, 2010 6:19 pm

Toytronic wrote:Thank you for the fast reply Poffa. This solution seems to work, and i was able to launch the "create db" script.

But now i can't connect to the juke.php using my user name and password, it say "wrong user/pass combinaison". It seems that the script was able to create the "users" table in the database, but not to populate it with existing subsonic users...


That lead to my next question : how do we create users... manually please?


When creating tables in setup.php you are ask for a name & password.
that name and password are also the login for jukebox
did you use that pass and name ?
jeremy
 
Posts: 19
Joined: Fri May 14, 2010 10:45 am
Location: Holland

Postby jeremy » Wed Jul 21, 2010 6:23 pm

Toytronic wrote:Hi there,

First of all, thank you very much for putting so much efforts in this beautiful mod. But so far, my experience with it have been very frustrated.

I simply can't get it to install on my Windows Home Server. PHP and MySQL are installed and work perfectly (i already have an hmailserver working for several months in this configuration), but not this mod.

Everytime i run the setup script, it say "saving settings", then i've got the "Settings.php not found, please run basic setup." message after the refresh.

It's like the setup script is unable to create the settings.php file under the "includes" folder. This folder doesn't contain any default settings.php file neither, so i wondering what i'm doing wrong.

Can someone help me with this, or maybe post an default settings file that i can put in the right folder and edit manually?

Thanks by advance guys.

Best regards,


I dont know if this is gonna work, but you can try
run it with admin rights ?

and where did you put the DB folder ?
i know windows doesnt like programs writing stuff directly on example C:\subsonic , Windows does like : C:\subsonic\DB
jeremy
 
Posts: 19
Joined: Fri May 14, 2010 10:45 am
Location: Holland

Postby brett » Wed Jul 21, 2010 6:27 pm

Toytronic wrote:But now i can't connect to the juke.php using my user name and password, it say "wrong user/pass combinaison". It seems that the script was able to create the "users" table in the database, but not to populate it with existing subsonic users...


That lead to my next question : how do we create users... manually please?


Does your sql user have rights to update/insert into tables? It's wierd that creating the table would work but inserting a record wouldn't, I would check the permissions.

As far as creating a user manually , passwords are one way hashed using sha1, you can generate a password here

I would recommend using phpmyadmin if you dont have it already installed(it's very easy to use), just add a record to the users table with an id, username, and a hashed password. The rest can be left blank for the time being. I'll be adding some sort of check to see if the db was written properly soon, as well as a way to change passwords. As I was testing it always added the records so I never had a reason to verify written data.


Toytronic wrote:Hi guys,

Thanks for your feedback :)

No, i'm not able to log using the username/password defined in settings.php. In fact, i can't log using any user/pass combinaison, and i've try everything (database user, every subsonic users, admin...). This thing just don't want me to login.


The login info in settings.php is not used at all in the actual frontend(login.php), that is only used to access subsonic, and mysql.

The user you define in the create db/table dialog(Button 2) is the user you will login to the frontend(login.php) with.
brett
 
Posts: 55
Joined: Thu Jun 10, 2010 7:13 am

Postby Vproduct » Sat Jul 24, 2010 12:28 pm

Help me!
Warning: file_get_contents(http://192.168.1.4:5893rest/ping.view?u ... &c=bologna) [function.file-get-contents]: failed to open stream: operation failed in Z:\home\test1.ru\www\includes\functions.php on line 6
Connection to Subsonic server failed. Local server ip/port:http://192.168.1.4:5895
MySQL server(local address):localhost
Subsonic server/port:http://192.168.1.4:5893
User avatar
Vproduct
 
Posts: 19
Joined: Fri Jan 29, 2010 9:05 pm

Postby jeremy » Sat Jul 24, 2010 5:20 pm

You forgot the "/ " at the end
example subsonic server : http://192.168.1.111:4140 ( this is wrong in setup.php ) but http://192.168.1.111:4140/ functions just fine
jeremy
 
Posts: 19
Joined: Fri May 14, 2010 10:45 am
Location: Holland

Postby ChaosKiller » Sun Aug 01, 2010 6:57 pm

Seems like it doesn't like me. index.php stays blank. After going to login.php and then to juke.php I see the page but no music.

I tried adding the sql code for config manually since it stayed empty after the config but no effect.
Code: Select all
INSERT INTO `db212398_music`.`config` (
`id` ,
`music` ,
`video`
)
VALUES (
'0', 'true', 'true'
);
ChaosKiller
 
Posts: 4
Joined: Tue May 11, 2010 8:32 pm

Postby burjast » Wed Aug 04, 2010 12:32 pm

summer time, and developing stops :) now to bump this topic:

Didn't get reply yet for my question somewhere in the third page (not important).

I have 2 folders enabled, MUSIC and VIDEO. Each of them contains only music and video content.

setup correctly finds and gives me music and video choise which is correctly chosen, BUT... When I have default option "music" choosen, I see both music and video content (not correct). When option "video" is selected, I see only video content (correct).

Am I missing something, is it a bug, nobody noticed it or what? It is not user friendly if I have videos between my music folder :)


Second problem - or is it not a problem. I don't see equalizer when playing music, should I see it? I never seen it.. anywhere else than on first page of this topic - screenshot. Nobody complains about that...


Regards, and enjoy your vacation while it lasts :)
burjast
 
Posts: 71
Joined: Mon Jul 20, 2009 9:00 am
Location: Slovenia

Postby brett » Thu Aug 05, 2010 2:52 am

burjast wrote:I have 2 folders enabled, MUSIC and VIDEO. Each of them contains only music and video content.

setup correctly finds and gives me music and video choise which is correctly chosen, BUT... When I have default option "music" choosen, I see both music and video content (not correct). When option "video" is selected, I see only video content (correct).

I never noticed this on my setup until now, I had three folders setup so it would never bug out like this, I'll find out why and fix it in the next release. I'm switching to PDO and also providing an option to use SQlite instead of mysql as well.
burjast wrote:Second problem - or is it not a problem. I don't see equalizer when playing music, should I see it? I never seen it.. anywhere else than on first page of this topic - screenshot. Nobody complains about that...

Are you accessing it locally? I've had this happen before, but I'm not exactly sure why it's doing it, I'll check the jwplayer forums and look for a solution
brett
 
Posts: 55
Joined: Thu Jun 10, 2010 7:13 am

Postby burjast » Thu Aug 05, 2010 6:10 am

I'm running on remote machine, no errors are found in httpd logs, tried with opera, IE, chrome. And no equalizer :)

As for folders, if I have 3 or more, than function becomes useless, because you have only 2 options on the left menu (music, movies). And first folder is not used, only 2nd and 3rd.
burjast
 
Posts: 71
Joined: Mon Jul 20, 2009 9:00 am
Location: Slovenia

Postby brett » Fri Aug 06, 2010 12:41 am

burjast wrote:I'm running on remote machine, no errors are found in httpd logs, tried with opera, IE, chrome. And no equalizer :)

Are you accessing it from the local ip though? 192,172,10*? Or are you accessing it over the internet through a public address? It might be a player issue with local addresses, I'll see if I can ask longtailvideo what the problem might be.[/quote]
burjast wrote:As for folders, if I have 3 or more, than function becomes useless, because you have only 2 options on the left menu (music, movies). And first folder is not used, only 2nd and 3rd.

The way it's supposed to work is that the script will gather all music folders if music is selected, or all movie folders[if movies are selected]. It won't list more than 2 options on the main screen other than 'Music' or 'Movies'. I'm rewriting a lot of the sql code to support local databases and I will definitely test the install with 1 folder, and then test it with multiple folders of mixed types
brett
 
Posts: 55
Joined: Thu Jun 10, 2010 7:13 am

Postby burjast » Fri Aug 06, 2010 6:00 am

If I'm running on remote machine, normally I dont access it via lan :) I do actually connect via lan sometimes, bot normally via wan.

I'm happy to see next updates, but app is still great even without eq. I just need that separate folder view and than app is final for me :)
burjast
 
Posts: 71
Joined: Mon Jul 20, 2009 9:00 am
Location: Slovenia

Postby EnsconcE » Fri Aug 06, 2010 8:00 pm

Hey, nice theme you created here! I love the use of JQuery in combination with subsonic. Makes a powerfull tool even more powerfull.

I have some remarks though, because i got errors while using this theme. The files includes/connection.php and index.php gave PHP errors because they start with a blank rule. I deleted those and with that, my loading problems where over :). Just for you to know.

I am using Firefox, don't know if you tested that browser, but your JQuery in one case did not work, again i had to make changes:
Code: Select all
$('#menu').buttonset();
$('#menu .headerimgset').eq(0).css('background','url(img/0.png)');
$('#menu .headerimgset').eq(1).css('background','url(img/1.png)');
$('#menu .headerimgset').eq(2).css('background','url(img/2.png)');
$('#menu .headerimgset').eq(3).css('background','url(img/3.png)');
$('#menu .headerimgset').eq(4).css('background','url(img/4.png)');
$('#menu .headerimgset').eq(5).css('background','url(img/5.png)');

and
Code: Select all
$('#buttons .streamimgset').eq(0).css('background','url(img/world.png)');
$('#buttons .streamimgset').eq(1).css('background','url(img/world.png)');


Now with this code the images show up in FF and IE :).

Besides that all i would opt for saving these
define('SERVER','http://');
define('JUKE','http://');
define('CREDS','u=...&p=...&v=1.2.0&c=bologna');

in the database. Just for reconfiguring possibilty's.

And last but not least, i did not read the whole thread so i do not know if this one is discussed earlier. At the end of the configuration you should redirect to the player itself. Just a little thingy which makes your theme more complete :)
EnsconcE
 
Posts: 3
Joined: Fri Aug 06, 2010 7:29 pm

Postby brett » Sat Aug 14, 2010 10:34 pm

burjast wrote:I'm running on remote machine, no errors are found in httpd logs, tried with opera, IE, chrome. And no equalizer :)


I think I've fixed this in the newest pdo version(not the zip, the actual files), if you want you can edit juke.php manually , and add this line before $(document).ready

Code: Select all
var server = '<?php echo SERVER;?>';


And change this line
Code: Select all

swfobject.embedSWF('mediaplayer/'+type+'.swf', 'player', w, h, '9', 'swfobject/expressInstall.swf', flashvars, params, attributes);


to
Code: Select all
swfobject.embedSWF(server+'mediaplayer/'+type+'.swf', 'player', w, h, '9', 'swfobject/expressInstall.swf', flashvars, params, attributes);


I've started to streamline a lot of the php code with the help of Kevin, hopefully soon I can work on making this a complete addon so that Jetty can serve the php files without needing to run an entirely different server
brett
 
Posts: 55
Joined: Thu Jun 10, 2010 7:13 am

Postby brett » Sat Aug 14, 2010 10:56 pm

As an aside, I do have php running on the jetty install that subsonic uses, I've got to change a few things related to the way PDO works on it, but it's parsing php pages right now. I should be close to releasing this as a real addon, not needing any kind of external server.
brett
 
Posts: 55
Joined: Thu Jun 10, 2010 7:13 am

Postby burjast » Mon Aug 16, 2010 7:10 am

Really horrific solution :) Now subsonix doesn't work at all, problems with vhosts. When calling non-existing vhost ip:port/mediaplayer/music.swf file gets pulled from other wrong folder.

Server root: /
Subsonix root: stream/

when accessed via SERVER var, mediaplayer is opened from otherfolder/ location (even though access thorough ip is defaulted to /)

Strange problem, makes me dizzy :) Find another solution please, when changing var with vhost, page doesn't even fully load, so at this time I don't have solution for this.
I just know.
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 8 guests