Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
requests-topic
Ratings Class - Idea
Avatar
Frosty
UK
Rookie
Free Members
sp_UserOfflineSmall Offline
Jan 20, 2011 - 8:18 am

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 🙂

 

 

This is my signature. There are many like it, but this one is mine.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 20, 2011 - 1:53 pm

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.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 22, 2011 - 9:27 am

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... 

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625