Hi, I'm trying to create a 'percent up down' rate widget for the attached design but I can't work out from the documentation how to do it.

I'm pretty sure Rate is the best module for this job, however I'm stuck on:

- how to show average percentage - it should be simple to have the average of option 1 and option 2 as a percentage using a formula such as AVERAGE %=option_1/(option_1+option_2)

- how to hide the individual rating for each UP and DOWN button - I only want the average % - and the rest of the theming will be interesting

I'm OK with CSS, subtheming and Views but pretty limited on PHP.

Is a Global Math computed field in Views the only way to go? Will that display on a node or just for sorting lists?

Percent Up Down

I reckon a lot of people would be looking for a Percent Up Down widget and no other modules provide one.

CommentFileSizeAuthor
Rate-Percent-Up-Down.png29.43 KBTime has come
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Time has come’s picture

Status: Active » Closed (fixed)

For anyone seeing this in the future, I've worked out that what I am trying to achieve should be based on a star rating not a vote up or down binary model.

So, I've switched the project to Fivestar and I'm using a custom graphic so it doesn't look like a star rating. Luckily Fivestar also displays average percentage via a field without needing any programming.

To replicate the Rate expiration function, I have discovered a patch for the Field formatter conditions module. It simply hides my Fivestar widget field based on a date field.

Thankfully, Rate still powers the Like button for my project.