WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using wp-postratings on my site and I want to include it on the buddypress profiles of my members so other users can rate them. I place the function on the profile page but it doesn't do anything when a rating is clicked. Any ideas on what I can add to make it work?

share|improve this question

closed as off-topic by kaiser Aug 4 '14 at 16:53

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 0 down vote accepted

It's likely that it will not be as easy as adding something small to make it work.

Plugins like WP-Postratings store their data on a post-by-post basis. But BP members are not posts. So you would have to intercept the way in which the plugin stores its ratings data natively, and save it to users instead.

Moreover, you'll have to modify/extend the markup and JavaScript created by WP-Postratings so that the current "item" being rated on is the member's user id, rather than the post id. Then, because the rating happens via AJAX, you'll have to make sure that the new id is sent properly in the request, and that the server-side handler is set up to expect member data rather than post data.

share|improve this answer
Thanks Boone. Can't wait for 1.6! – Pollux Khafra Mar 22 '12 at 20:33

Not the answer you're looking for? Browse other questions tagged or ask your own question.