IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
Creating a rate column (zero to five stars), I describe you the code to create a simple column in the winamp style
mrmister
post Jun 12 2012, 13:15
Post #1





Group: Members
Posts: 62
Joined: 13-March 11
Member No.: 88971



FIRST, YOU NEED TO HAVE INSTALLED THE COMPLEMENT: fooplaycount

Hello
I've found a solution to create a simple rate column, in the style of winamp from zero to five stars.
I think the solution is nice for people that are switching from Winamp to foobar2000 so I share the code.

To create a rate column, just create a column in the default skin, or in any other as columns ui (this post is not about columns ui, it is about creating a column and its code).
Now you have created a column, insert this code:
$if(%rating%,$repeat(●,%rating%),o)

That's all, now you have your column created, and you will show a white star (no rating) and black stars from zero to five, meaning 1 star the worst rating, five stars the major rating.
To rate a track as always, right click... Playback statistics... rating...

Enjoy
Go to the top of the page
+Quote Post
White_Shadow
post Jun 12 2012, 16:18
Post #2





Group: Members
Posts: 97
Joined: 3-May 11
Member No.: 90287



Have you tried
$if(%rating%,%rating_stars_fixed%,$repeat(*,5))?

It displays five stars everytime, but filled, when there's a rating.

(You've to replace th asteriks with the used star, which can be found in the table of signs)

This post has been edited by White_Shadow: Jun 12 2012, 16:19
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 26th May 2013 - 02:18