Help - Search - Members - Calendar
Full Version: old-style playlist
Hydrogenaudio Forums > Hosted Forums > foobar2000 > General - (fb2k)
Лис
hi, recently i've run into http://customize.org/foobar/skins/32178 - and thought it'd be cool to have my foobar look like this. but when i tried finding the field to paste this, it as absent.. google just throws numerous useless links. help! what can i do? foobar2000 0.9.5.2
Mar2zz
Don't hassle with configs like that if you don't understand what to do. Use the default UI only from foobar 9.5.3.

It won't look that fancy, but if you try your default configs can look nice too.

I tried to create the image you shown with default ui only. I don't understand code to make text in other colors, but there should be a way to make columns have their own color if i see the titleformatting helppage ( $rgb(255,0,0)asdf$rgb() ⇒ “asdf” for example. ).

Can someone make up code for showing tracknumbers only when they are 1, 5, 10, 15 and so on? I could only come up with showing track 1...

Here what you can make with default UI in a few minutes. (don't look at my windows theme, it's default windows xp silver, when you use another windowstheme, a black one for example, all the grey parts will be black too).
IPB Image
shakey_snake
QUOTE(Лис @ Jun 5 2008, 13:28) *

hi, recently i've run into http://customize.org/foobar/skins/32178 - and thought it'd be cool to have my foobar look like this. but when i tried finding the field to paste this, it as absent.. google just throws numerous useless links. help! what can i do? foobar2000 0.9.5.2

Unfortunately:
  1. That pic is copy and pasted together to make the the old playlist look like it can do multiple things at once, when actually it couldn't.
  2. The New Default UI does not allow color codes, which makes the most attractive aspects of that config largely unattainable. (e.g. the fading orange line)
  3. Requires excruciatingly exact directory naming and tagging.
All and all, if I had to guess, it's probably not worth your time. wink.gif
Your probably best served by attempting to approximate it with the new, post 0.9.5, Default UI.

QUOTE
Can someone make up code for showing tracknumbers only when they are 1, 5, 10, 15 and so on? I could only come up with showing track 1...

The pic seems to be using:
CODE
$ifequal($mod(%tracknumber%,4),1,%tracknumber%,)

[edit]Tweaked the above code because I'm an idiot.
Mar2zz
$ifequal isn't listed...
What is the full word for $mod? I don't understand it fully, I like to know what full word it is based on so I can translate it and get my head around it, hopefully...)

(Think the above is for single column playlist that comes with columns ui or panels ui? The code looks like it is...)
shakey_snake
QUOTE(Mar2zz @ Jun 5 2008, 15:01) *

$ifequal isn't listed...

http://wiki.hydrogenaudio.org/index.php?ti...Cthen.2Celse.29

QUOTE(Mar2zz @ Jun 5 2008, 15:01) *
What is the full word for $mod? I don't understand it fully, I like to know what full word it is based on so I can translate it and get my head around it, hopefully...)
http://en.wikipedia.org/wiki/Modulo_operation

QUOTE(Mar2zz @ Jun 5 2008, 15:01) *

(Think the above is for single column playlist that comes with columns ui or panels ui? The code looks like it is...)

It's for the old Default UI that existed before the 0.9.5 rewrite.
Mar2zz
Thx, didn't know that titleformatreference. Only used the one in foob's directory.

hmm, have to work on that $mod thing, i go experimenting...

I never knew the old default ui was capable of that kind of stuff...
kanak
QUOTE(Mar2zz @ Jun 5 2008, 15:26) *

hmm, have to work on that $mod thing, i go experimenting...


$mod simply returns the remainder. it's useful when you want to determine whether a number is odd / even, divisible by another number. etc.
Mar2zz
Yeah I got that, but thanks for putting it in simple words. I had this other function with mod in it, and I now finally i really know what it does...

CODE
$div(%_filesize%,1048576).$num($div($mul($mod(%_filesize%,1048576),100),1048576),2) MB
PredUK
CODE
$if(%tracknumber%,$if3($ifequal(%tracknumber%,1,[%discnumber%'.']%tracknumber%,),$ifequal($right(%tracknumber%,1),5,[%discnumber%'.']%tracknumber%,),$ifequal($right(%tracknumber%,1),0,[%discnumber%'.']%tracknumber%,),))

For some twisted reason this took me a while to do. Tired + just woke up brains didn't go in my favour I guess. But there you go Mar2zz. Change or remove the '-' if you don't want anything in the blank tracknumbers.

EDIT: Updated to include discnumbers and still show a blank field if there's no track number at all.
pirlouy
Personally, I prefer to use $mod function like shakey_snake

CODE
$if(%tracknumber%,$ifequal(%tracknumber%,1,[%discnumber%'.']%tracknumber%,$ifequal($mod(%tracknumber%,5),0,[%discnumber%'.']%tracknumber%,)),)


But maybe $right() function is quicker (1. 10^-50 sec biggrin.gif)
PredUK
I think your script would be a little faster because there's less script to work through. But only when the tracks are in excess of something like 10,000. smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.