Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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