Closed (won't fix)
Project:
Voting API
Version:
6.x-2.0-rc2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
21 Mar 2009 at 21:39 UTC
Updated:
7 Dec 2017 at 08:54 UTC
Jump to comment: Most recent
Comments
Comment #1
v8powerage commentedThat's what I'm getting:
Fatal error: Call to undefined function votingapi_get_voting_result()Comment #2
vm commentedThis should be placed as a forum post in module development. Or as an issue in the module in question as it doesn't have anything to do with the voting api.module
Comment #3
v8powerage commentedI would say it has, because it's written specifically basing on votingapi.module api so only someone who is into this module could help.
Comment #4
vm commentedWhen an issue is placed in the issue queue of the module in question those subscribed to that issue queue are notifed of that activity. Thus the subcommunity of users who are actually using that module may be able to provide some help and port work can begin in the proper issue queue.
If you want to remark the status of this issue and press for someone in the voting_api community to do this for you, feel free.
Comment #5
v8powerage commentedWell comment_modr8 maintainer seems to be out of touch, there is an issue about updating this module, but no activity from the author of the module, that's why I thought that this will be a good place to post about update, since this module is tight with votingapi.module, perhaps it could even be implemented into votingapi.module?
Comment #6
vm commentedI wouldn't think so as this module is only an api. Modules are built to interact with this api. ie: fivestar, nodevote so on so forth.
Comment #7
v8powerage commentedComment #8
fehin commentedI had the same issue. This is the correct setup:
$current_rating = votingapi_select_results(array('content_id' => $node->nid, 'value_type' =>'percent', 'tag' =>'Satisfaction', 'function' => 'average'));
Comment #9
rambo2000 commentedThanks for that one!
Using the code from comment#8, you will find the value in $current_rating[0]['value']
Comment #10
lsiden commentedI also just bumped into this on a site I'm converting from D5 to D5. I'm surprised that someone didn't take care of backward compatibility of votingapi_get_voting_result().
Comment #11
legolasboDrupal 6 is no longer supported. Closing old issues to clean up the issue queue.
Please reopen and update this issue if this is still an issue in the D7 or D8 version.