PDA

View Full Version : beginner web skin question



doubledrat
2007-08-26, 03:36
Hi

I'm trying to customize the nokia770 skin. I've got it looking how I want, but when the track changes, the cover art changes but the song details don't.

How can I get the song details to update when the track changes?

thanks

mherger
2007-08-26, 22:39
> How can I get the song details to update when the track changes?

Well, if you changed an existing skin, you'd best have a look at _what_ you've changed. There's working code. Use it ;-).

If you want to track down that kind of issue I'd recommomend you install Firefox with the Firebug plugin. It's great for debugging JS issues in web pages.

Michael

doubledrat
2007-08-27, 02:55
> How can I get the song details to update when the track changes?

Well, if you changed an existing skin, you'd best have a look at _what_ you've changed. There's working code. Use it ;-).

Michael
well...the nokia770 skin I started with wasn't working! (i'm using a nokia n800) that's why I changed it. it wasn't showing any track details at all.

I've tried looking in fishbone to find how to refresh, but the coding system used is too foreign to me to make sense of (and I know fortran, pascal etc!)

mherger
2007-08-27, 03:09
> well...the nokia770 skin I started with wasn't working! that's why I
> changed it. it wasn't showing any track details at all.

Do you have JavaScript enabled on your browser? I doubt the skin is broken in that part. It's too popular to have such an important bug go unseen.

Michael

doubledrat
2007-08-27, 05:48
>
Do you have JavaScript enabled on your browser? I doubt the skin is broken in that part. It's too popular to have such an important bug go unseen.

Michael

just checked to be sure. yes, it's enabled. Perhaps something else funny with the N800? This is a real shame, because it would make an ideal controller for my SB.

I am using the latest slimserver version (that's not pre alpha!) - 6.5.5 12728

mherger
2007-08-27, 06:33
> just checked to be sure. yes, it's enabled. Perhaps something else
> funny with the N800?

What browser are you using? Can you see whether there's a JS error (use Firebug in Firefox, or the small yellowish icon bottom left in IE, or the error console in Opera).

Michael

doubledrat
2007-08-27, 08:56
> just checked to be sure. yes, it's enabled. Perhaps something else
> funny with the N800?

What browser are you using? Can you see whether there's a JS error (use Firebug in Firefox, or the small yellowish icon bottom left in IE, or the error console in Opera).

Michael

Well I was running the browser on the n800 which is mozilla 4 compatible.

tried firefox on pc with firebug, and it seems like the refreshElement procedure is being called with just the first parameter (element) and the rest are undefined. This gives it nothing to display and no value to check the length with, so I assume it falls on it's arse.

does the nokia770 skin work ok for you?

bklaas
2007-08-27, 09:18
doubledrat--

Could you post some additional information please? I don't have this issue with my N800, and maybe if I knew a bit more about your environment I could help.

Slimserver version-
OS in which you are running SS-

one thing to check via web interface: Server Settings->CSRF protection. Set it to "None" just to see if it helps. My hunch is that it won't, but can't hurt to try.

the next thing to try is to enable HTTP debugging through the web interface Server Settings->Debugging-> set HTTP to DEBUG. Then go to the home link on Nokia770, which should generate some errors since the library stats at the bottom left are reporting 'undefined, undefined, undefined'. The Server Settings->Debugging link should tell you where to find the server log file.

cheers,
#!/ben

doubledrat
2007-08-27, 10:05
doubledrat--

Could you post some additional information please? I don't have this issue with my N800, and maybe if I knew a bit more about your environment I could help.

Slimserver version-
OS in which you are running SS-

one thing to check via web interface: Server Settings->CSRF protection. Set it to "None" just to see if it helps. My hunch is that it won't, but can't hurt to try.

the next thing to try is to enable HTTP debugging through the web interface Server Settings->Debugging-> set HTTP to DEBUG. Then go to the home link on Nokia770, which should generate some errors since the library stats at the bottom left are reporting 'undefined, undefined, undefined'. The Server Settings->Debugging link should tell you where to find the server log file.

cheers,
#!/ben

hi Ben
SSV=6.5.5 12728
OS=winxp
I set CSRF to "none" didn't make a difference

I've found something strange. In status.js -

// refresh song info
var songinfoArray = new Array();
songinfoArray[songinfoArray.length] = {name: 'songtitle', stub:'songinfo.html?item='};
//songinfoArray[songinfoArray.length] = {name: 'artist', stub:'browsedb.html?hierarchy=album,track&level=1&contributor.id='};
songinfoArray[songinfoArray.length] = {name: 'album', stub:'browsedb.html?hierarchy=album,track&level=2&album.id='};
songinfoArray[songinfoArray.length] = {name: 'genre', stub:'browsedb.html?hierarchy=genre,contributor,al bum,track&level=1&genre.id='};
refreshElement('artist',parsedData['artisthtml']);

If I change this to

songinfoArray[songinfoArray.length] = {name: 'songtitle', stub:'songinfo.html?item='};
songinfoArray[songinfoArray.length] = {name: 'artist', stub:'browsedb.html?hierarchy=album,track&level=1&contributor.id='};
songinfoArray[songinfoArray.length] = {name: 'album', stub:'browsedb.html?hierarchy=album,track&level=2&album.id='};
songinfoArray[songinfoArray.length] = {name: 'genre', stub:'browsedb.html?hierarchy=genre,contributor,al bum,track&level=1&genre.id='};
//refreshElement('artist',parsedData['artisthtml']);

, it starts working but I get

Now playing 281 of 9550

Remote Streaming:
Title: 7. Ash - Oh Yeah
Artist: Slim::Schema::Contributor=HASH(0x9646480)
Album: Slim::Schema::Album=HASH(0x65c0458)
Genre: Slim::Schema::Genre=HASH(0x9646a68)

debug results to come...

bklaas
2007-08-27, 10:13
Ah, now I think we're getting somewhere...this is a known bug with upgrading and skins:
http://bugs.slimdevices.com/show_bug.cgi?id=4251

Did you install this version over an existing one? I'm betting you did. If possible, delete your slimserver checkout and start with a clean checkout (you do not need to delete your preferences, which reside elsewhere).

cheers,
#!/ben

doubledrat
2007-08-27, 12:14
Ah, now I think we're getting somewhere...this is a known bug with upgrading and skins:
http://bugs.slimdevices.com/show_bug.cgi?id=4251

Did you install this version over an existing one? I'm betting you did. If possible, delete your slimserver checkout and start with a clean checkout (you do not need to delete your preferences, which reside elsewhere).

cheers,
#!/ben


dang! I did. Never been a problem before. I've now done a clean install and it works perfectly. Sorry to have bothered everyone :-(

bklaas
2007-08-27, 12:18
No worries- you can't have been expected to know that what you did would cause that issue. Glad we could help.

cheers,
#!/ben