• Resolved Kees

    (@wp006659)


    Hello,

    Perhaps you can help me.
    I am looking for a way to show the total of the valuations instead of the average (mean_rating) of the valuation.

    T.i.a.
    Kees

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Where do you want that to show up?

    Thread Starter Kees

    (@wp006659)

    Thanks for your reaction.

    I like to see that by bestof or simulair.
    See my page ad https://www.fotoclubklik.nl/_scorebestof

    Thread Starter Kees

    (@wp006659)

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    I have 1 question.

    – Do you want to be able to set the sort order criterium to ‘totalrating’? If so, i have to add a field to the photo data record. No problem, i just need to know if you need “totalrating” to be added to the possible ‘sortby’ options “maxratingcount”, “meanrating” and “ratingcount”

    Thread Starter Kees

    (@wp006659)

    Yes, that’s what I mean. This is how the photo with the heighest total score can displayed at the top of the page.

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    It turned out to be not as complex as i thought.

    Do the following (it is safe, even for a live production site):
    Install the current development version (6.8.01.Beta.001) as described here..

    The following enhancements are implemented:

    * Added to the bestof widget: A checkbox to display the sum of the ratings (totvalue), and the option to sort by the sum of the ratings.
    * Bestof shortcode now also supports the display of the sum of the ratings (totvalue=”yes”), and the sort option to sort by the sum of the ratings (sortby=”totvalue”).
    The full shortcode is now:

    [wppa type="bestof" page="nn" count="nn" display="photo|owner" period="thisweek|lastweek|lastmonth|thismonth|lastyear|thisyear" sortby="maxratingcount|meanrating|ratingcount|totvalue" maxratings="yes|no" meanrat="yes|no" ratcount="yes|no" totvalue="no|yes" linktype="none|owneralbums|ownerphotos|upldrphotos" fontsize="nn" lineheight="nn" height="nn"][/wppa]
    

    Note: For backward compatibility: the default for displaying the total value is ‘no’ (totvalue=”no” ) as opposed to the other display options.

    Thread Starter Kees

    (@wp006659)

    This is perfect. Thank you very much for the effort. Somebody else will probably have said it before, but your program and your help is super.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘total rating instead of the average rating’ is closed to new replies.