Support Forum

Ratings Class – Idea

FR Frosty
Frosty
Member

Hey Admins,

 

Have a idea you might want to add to the next/later version of SP, adding a class to each post in a topic depending on the post rating.

 

I achieved this myself by pulling the rating into the array of classes, pre-fixing it with “rated”:

<tr id="post-'.$post['post_id'].'" class="rank-'.$rank_class.' sftype-'.$posterstatus.' rated'.$ratings.'" valign="top">

 

Buy doing this you can use css/js to, fade out low rated posts, or make higher rated posts more prominent.

 

Thanks, keep up the great work with SP 🙂

 

 

2 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

Interesting notion. I have passed ti on to Steve who took on Post Ratings and is currently converting it to a plugin (for SP V5).

Thanks.

MP Mr Papa
Mr Papa
Member

more things like this will be very possible when we get templating in place and add wp filters to a lot more display items…  then plugins can change the class and do just what you say…