Support Forum
good to hear! thanks for the update...
Visit Cruise Talk Central and Mr Papa's World
This should help you do what you want... Only allows the first post in a topic to be rated... and thus the averages will only be for the first post... however, it wont (and cannot) go back and take care of already cast votes... so you may want to consider starting the ratings over... if so, just go to forum - options - display settings and switch the rating style to the other and back... that will reset all rating data...
add_filter('sph_PostIndexRatePost', 'my_rating_check'); function my_rating_check($out) { global $spThisPost; if ($spThisPost->post_index != 1) $out = ''; return $out; }
this code would go in the spFunctions.php file of your sp theme...
This is a good idea. I just made this adjustment too. Might be nice to add a toggle 'on/off' in the settings screen.
only problem is thats another option... we have too many options now... we tend to follow the wp mantra of decisions not options... folks tend to get lost in the options.. but we do like to provide the hooks so that users can tweak if desired...
Visit Cruise Talk Central and Mr Papa's World
Good point. I suppose there is a risk that the forum options menu becomes overwhelming with hundreds of different settings that could be made.
With this ratings tweak - is there a risk that with any forum/plugin updates that the 'tweak' becomes lost/broken or worse that it could cause some corruption?
slim to no chance of losing the change... Since the tweak uses hooks, there is no modification of the core code so it update proof (except for that very slim chance we have to change the hook structure, but we almost never do that because backwards compat is paramount)...
of course, since you modified spFunctions.php in the sp theme, its assumed that you are already using your own sp theme and not modifying one of our delivered themes...
Visit Cruise Talk Central and Mr Papa's World
1 Guest(s)