PDA

View Full Version : better display thread rating on forumdisplay.php


MrNase
27 Apr 2004, 20:29
Hey :)

If those stars are too tiny for you you should try out this modification...

I've been inspired by webdesignforums.net

This modification basically changes the background of the thread statusicon according to the rating.

If the thread has a good rating this cell will have a green background. Threads with a rating of '1' will have a red background.
Check out the screenshots to see what i mean :)

http://www.mrnase.de/better_threadrating.gif

Important: if you like this hack and you want to give something back to me please
https://www.paypal.com/en_US/i/btn/x-click-but04.gif (https://www.paypal.com/xclick/business=mrnase%40sportboard.de&no_note=1&tax=0&currency_code=USD).
I will still do some modifications even if you don't donate ;)
If this kind of making the 'big' money is not allowed on vbt.com please drop me a note so that i can delete it :)


Have fun with it :)

wrongful
27 Apr 2004, 20:35
Neat! I like this.

wrongful
28 Apr 2004, 00:59
One thing I have noticed is that it only works with whole numbers. Is it possible to make it work like the ratng images work?

MrNase
28 Apr 2004, 08:08
I shall work like that rating images since it uses the same variable for displaying the numbers :)

$thread['voteavg'] is a number from 1 to 5 according to the rating.

Tony G
28 Apr 2004, 11:20
Neat, looks good too. Thanks for sharing. :)

MrNase
28 Apr 2004, 15:25
No problem Tony :)

Once i have some more time i'll publish some more neat mods :)