Could you rethink what's best regarding how the 'Number of Votes' data is shown?
I use both simple and complex polls... My complex polls are of the mutli-column radio grid option - and can have say 20 questions easily.... Trouble is Community Polls currenty then displays that as '20 Votes' - I think in most people's mind 1 poll = 1 vote? You've basically got feedback from 1 person....
On my Community Polls home page it gives the wrong impression when my simple polls show low numbers of votes and the more complex ones leap into huge numbers really quickly.... Also clients who I operate polls for say 'How many people have voted then?' and we have to say 'Well, you take this number and then you divide it by how many questions you've asked'
Hope that makes sense....
Overall of course totally delighted with Community Polls!
-
I understand that. May be a new string like "n people voted" would makes sence.
-
Hello ,
I am facing the same problem.
I am working for www.globalpoll.nl and want to the number of voters for the complex grid polls.
This is a usefull value in grid-polls .
Now only the votes are available ( each row in a grid poll count for a vote ), the number of voters is not yet available.
To get the number of poll voters in a grid poll I did the following :
In file com_communitypolls/models/polls.php, for function &getPolls() , I added ',p.voters' in the query line
$query = 'SELECT p.id, p.title, CASE WHEN CHAR_LENGTH(p.alias) THEN' .
' CONCAT_WS(\':\', p.id, p.alias) ELSE p.id END as slug, p.votes, '
in
[i]$query = 'SELECT p.id, p.title, CASE WHEN CHAR_LENGTH(p.alias) THEN' .
' CONCAT_WS(\':\', p.id, p.alias) ELSE p.id END as slug, p.votes, p.voters, '
And after that I was able to use $poll->voters in components/com_communitypolls/templates/default/list.php.
I hope this can be build in in the source to prevent troubles for me with future updates.
Kind regards ,
Erwin.
-
The fix will be added in the next release.
-
Added voters field to the fetch list, fetch poll queries.
Also added new text to display how many voters voted and last voted date just below poll description.
version: 1.5.25

