Closed (fixed)
Project:
Voting API
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
20 Sep 2008 at 15:40 UTC
Updated:
23 Jan 2009 at 21:10 UTC
Hi, Thanks for adding "Restrict to current user" with RC1, everything works fine. ^^
There is another thing that annoy me:
When nobody cast a vote, votingapi display "0" as defaut value instead of... nothing.
It's confusing because we can't make the difference between node with no value and node with 0 value (my users can put 0 like value).
So it's very important to not display zero value "0" when no vote is submit.
There wasn't this problem with drupal 5.x
Thanks again ^^
Julien
Comments
Comment #1
junro commentedSome news about this? :)
Comment #2
junro commentedHum I'm moving this to Views, not sure but...
Maybe fixed in CVS too. ^^
Comment #3
eaton commentedThis is the formatting function for votingapi; Views doesn't have any control over it.
Comment #4
junro commentedHello,
I still have this problem,
I can't find how to Not display zero value ("0") when value is NULL...
I tried to take off 0 into the Table votingapi_vote in the defaut column but nothing...
What have I to change in voting api tables?
Thanks
Comment #5
drewish commentedI think you want to implement hook_votingapi_views_formatters(). API.txt has details:
Comment #6
junro commentedI'm not a developper or a php programer :)
So, I have to put a code to do that? A code like this?
I just want
IF NO VALUE --> DON't DISPLAY ANYTHING...
Wich code do I have to create for this? and where do I have to put it? In which file?
Thanks for the help^^