Keyword

Vote

  • Anthony
  • Anthony's Avatar Topic Author
  • Offline
  • New Member
More
10 years 9 months ago #122421 by Anthony
Vote was created by Anthony
Hello,

is there possible to echo votes users?
for example,like comment user profile:
$commentUser = JUserHelper::getProfile($comment->userID);
print_r($commentUser);

i tried many different way to echo user name like this,but empty...
$db = JFactory::getDBO();
$query = "SELECT * FROM #__k2_rating WHERE itemID = ".$id;
$db->setQuery($query);
$vote = $db->loadObject();
$K2RatingsInstances[$id] = $vote;
$cUser = JUserHelper::getRating(userID);
print_r($cUser);

thanks,

Best Regards.,

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 9 months ago #122422 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Vote
Hello Anthony,

In the db apart from the Item ID the rating_sum and rating_count are stored.
The item ID is the item's id not the user's.

I am not sure what you are trying to achieve.

You can display highest rated items and their authors using a K2 Content module.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum