Advanced Poll

"0 votes" is translated to "1 vote"

Issues - Tue, 2008-11-18 10:37

If a Poll has no votes for one of the choices, the total votes for this choice shows the corresponding translated string for "1 vote" when the language interface is other than the default English. The percentage is displayed correctly ("0%"), though.

Even after deleting the translation string for "1 vote", it still shows the "1 vote" string from the original English.

But if user sets english as the interface language, then it shows correctly ("0 votes").

If the choice has 1 vote, all strings show correctly.

Categories: Advanced Poll

"Question of the day" with advanced poll

Issues - Wed, 2008-11-12 03:54

I would need to replace poll results with "correct answer", which would enable using module to "question of day" type of thing (quiz module is not good for this for several reasons). I can do this myself, if someone could please give guidance from where to start?

Categories: Advanced Poll

missing table escape

Issues - Mon, 2008-11-10 15:30

Just tried to add a user to the electoral list, and got this:

user warning: Table 'databasename.users' doesn't exist query: REPLACE INTO forum_advpoll_electoral_list (nid, uid) SELECT '5703', u.uid FROM users u WHERE u.name = 'Maulwurf' in /var/www/includes/database.mysql.inc on line 174.

it should say {users} in the code I think.

Categories: Advanced Poll

Check SessionID (with Cookie) instead of IP-Address to prevent multiple votes

Issues - Thu, 2008-10-23 09:51

Hi,

i needed to implement the checking of the users session-id instead of his ip-address to prevent multiple votes. in the attatchement you'll find the patches. feel free to review and use it.

One thing before you start: you have to patch the advpoll module and the votingapi module to make it work. both patches are available in the attatchment.

Regards - Andreas

Categories: Advanced Poll

displaying poll results as a pie chart

Issues - Tue, 2008-10-21 10:30

Hi!

Is there a way of displaying the results of a poll as a pie chart?

Thanks!

Categories: Advanced Poll

Anonymous Vote Not working?

Issues - Fri, 2008-10-17 12:42

I have a lot of visitors in my website, and no one anonymous has voted on the polls for days. I couldn't vote again with proxies. It's like as if the poll considers Anonymous voter 1 person, not thousands. So I think no one can vote anymore on my site. It's been like 3 votes (2 members and 1 anonymous) for the past few days. Any ideas?

Categories: Advanced Poll

question before I decided to install

Issues - Thu, 2008-10-16 16:45

The polling module that comes with the install of Drupal 5.X is pretty basic and its functionality is somewhat rigid. The polls I created all ended up in the Most Recent Poll block. I couldn’t get them to show up independently. It only shows the latest poll. (Others are relegated to an “older polls” page.) I haven't figured out a way to get different polls to show up independently on the site. I'm wondering if the advance polling module will address this requirement. Thanks.

Categories: Advanced Poll

Display poll results after voting for anonymous users

Issues - Mon, 2008-10-13 10:44

Which permission does this? I couldn't get it to work,although I'm sure it's trivial.

Thanks,
Chris.

Categories: Advanced Poll

Voting count doesn't add up to 100%

Issues - Wed, 2008-09-24 02:13

There's a bug in the algorithm rounding all votes off with no further verification, meaning that you're likely to end up with !=100, e.g.

34% | Kobe Bryant (USA)
29% | LeBron James (USA)
15% | Dwyane Wade (USA)
13% | Pau Gasol (ESP)
8% | Manu Ginobili (ARG)
3% | Luis Scola (ARG)

is 102 in total.

I still haven't figured out what the best approach to solve this would be, but thought I'd toss it out here, in case someone was already familiar with the issue (and perhaps already has a fix).

Categories: Advanced Poll

support to organic group node access

Issues - Sun, 2008-09-21 12:54

Hi

Could you pls support organic group node access?
What I mean: Latest adv poll block show the latest adv poll block.
But using organic group node access I can set if some node (e.g. advpoll) is private or public.

And if I set new advpoll as private, advpoll latest block couldn't show this poll, but latest public advpoll.
(Optionally You could create a new block - latest poll from this group)

Thanks
Igorik
http://www.somvprahe.sk

Categories: Advanced Poll

Limited theming abilty

Issues - Thu, 2008-09-18 12:43

A quick glance at the advpoll result theming ability seems to be limited.
The only remotely related issues raised before are #111774: Creating a tpl.php file and #194317: Integrate Open Flash Chart API.

Currently provided theme functions are
theme_advpoll_bar()
theme_advpoll_results()
theme_advpoll_voting_binary_form()
theme_advpoll_voting_ranking_form()

E.g. possible theming requirements (which ATM seemingly impossible)
- using other chart types such as pie, line, area chart other than bar chart
- integration with other charting libraries - Google Chart API, Open Flash Chart, etc

I think the problem resides in the $results passed to theme_advpoll_results(), which is already pre-rendered bar instead of data. This renders the theme function useless as there is nothing much on the chart you can change. The theme_advpoll_bar() is having the similar problem by taking in one choice data at a time, which will not work for other chart types.

Take binary vote as example, my suggestion is
- advpoll_view_results_binary() should return a result set
- theme_advpoll_results() take in the result set, which at some point call theme_advpoll_bar() for bar, and can be overrided to output other chart types or integrate with other charting API.

Does that make sense? =)

Categories: Advanced Poll

Remove $_POST from insert choices

Issues - Thu, 2008-09-18 02:12

Advpoll is making use of $_POST['choice'] in _advpoll_insert_choices() as the mean to pass choice data.

This causes problem when an advpoll is not created through a form such as programatically create a poll, cloning the poll or other ways to modify the choices programatically.

In the comment: * Note: we pass choice data via _POST to allow for dynamic addition of choices.

I would suggest for the purpose of dynamic addition of choices to make use of a separate function and make the _advpoll_insert_choices() to take in values from $node or $form_values.

Categories: Advanced Poll

Postgresql GROUP BY query fix

Issues - Mon, 2008-09-15 11:15

Problem:

* warning: pg_query() [function.pg-query]: Query failed: ERROR: column "u.name" must appear in the GROUP BY clause or be used in an aggregate function in /websites/afilias.info/afilias.info-Build-#/current/includes/database.pgsql.inc on line 125.
* user warning: query: SELECT v.uid, v.hostname, v.timestamp, u.name FROM votingapi_vote v LEFT JOIN users u ON v.uid = u.uid WHERE v.content_type = 'advpoll' AND v.content_id = 30 GROUP BY v.uid, v.hostname, v.timestamp ORDER BY u.name ASC LIMIT 20 OFFSET 0 in /websites/afilias.info/afilias.info-Build-#/current/includes/database.pgsql.inc on line 144.

Patch attached:

Categories: Advanced Poll

Postgresql error during creating of INDEX

Issues - Mon, 2008-09-15 10:59

the SQL for creating the index is wrong. Here is a patch

Categories: Advanced Poll

Views integration

Issues - Sat, 2008-08-30 01:16

I would like to be able to filter polls in views by status, if it is closed or open.

Categories: Advanced Poll

Out of the blue, Anon users cannot vote?

Issues - Mon, 2008-08-25 15:43

I´ve got installed AdvPoll, and the first test votes seemed ok. Until I´ve noted that only Anon users were able to vote.
So I made possible for both anon and registered users the ability to cast a vote.
Since then the only people that coud actually vote were all registered ones!
Anon voters got the "You vote has been added" message, but the results dissapeared and those votes haven´t been counted at all!
I´ve reinstalled the module with Devel, and deleted the cache... but nothing happened, the issue is still there.
I´ve tag this as critical, as I cannot use this module at all. If this is a bug, I think it´s an important one, and if it´s not...
please S.O.S! :)
Thanks for your patience,
Rosamunda

Categories: Advanced Poll

Tags in Advanced Polls?

Issues - Sat, 2008-08-23 19:43

Is it possible to add tags to advanced polls like in normal polls?

Thank you!

Categories: Advanced Poll

list of users who have voted?

Issues - Mon, 2008-08-18 16:00

Is there a way to get a list of users who have voted in a certain poll without listing who they voted for?

Categories: Advanced Poll

Connect a binary poll with a CCK content type

Issues - Fri, 2008-08-15 12:32

I have a content type that tracks requests to distribute documents/information to researchers. I would like to be able to automatically create a simple Yes/No poll for each submission so that other members can vote on the requests approval.

Example, I create a new request #R100. I would like to have a poll automatically created with a question "Do you Approve of R100" Yes/No.

Perhaps I could put the poll in a block until the status field of the request changes from pending to approved/denied.

Any thoughts on how to accomplish this?
Thanks

Categories: Advanced Poll

The polls page show the whole polls not just titles

Issues - Sat, 2008-08-09 12:44

how can I change the page polls to have all the polls full nodes instead of just the titles?

Categories: Advanced Poll
Syndicate content