I am trying to create a most popular and least popular block using views, but from my understanding using votingapi you can only create that type for type node. Basically what I want is I created a Imagecache avatar that shows a 100x100 avatar of the users picture. I can have it show a who's new and who's online showing the picture in a block. I want to do the same thing for most popular users and least popular users. I have votingapi fivestar and fivestarextra so users can vote on users the problem is getting it into a block. Any and all help is greatly appreciated.

Comments

malcomio’s picture

I guess you could use http://drupal.org/project/nodeprofile, which creates a user profile as a node.

Not sure I'd want other users voting on how much they liked me, though...

krazykanuk’s picture

That would still be done as a node and not a block, wouldn't it? If I do it as block then it could be placed almost anywhere I want.

malcomio’s picture

sorry - misread your question. With views, you need to add a relationship in order to get the info from votingapi - then you can make blocks or pages.

There's a useful video at lullabot's site: http://www.lullabot.com/videos/building-views-fivestar-and-votingapi