The Post Ratings addon by Luke is an essential XenForo addon. Basic XenWord support for the addon was included in April 2015, release 2.5.0 ( number 78 ) and the last changes were made in March 2016.
Since support has been limited to showing likes on the WordPress side then I've been trying to figure out how to expand features. The image above shows that work has progressed.
The challenge was pulling the information from the provided methods. I decided this morning to build my own array, count the values, and use the key in a switch statement to choose what is shown.
PHP:
$combinedRatings = array();
foreach ( $ratings as $rating ) {
array_push( $combinedRatings, $rating['rating'] );
}
$combinedRatingsTotals = array_count_values( $combinedRatings );
I thought this was a clever way to pull the information for each first post in a thread. All of the cases in the switch statement are not complete and I hope to get things done today.
Update: All done and online to test.