Hi there,
I have just been appointed co-maintainer of the advanced poll module.
As you may have noticed, the module has gone without any commits for a couple of years now, and there is quite a backlog in the issue queue.
I'd really like to work through this backlog with a view to releasing a stable version of the module.
Yesterday I went through and committed or knocked back all the RTBC issues. My next priority will be to work through 'needs review' patches and commit where possible.
I'm focussing on bug reports and leaving any feature requests to a future version.
If there's anyone in this group who can find a little time I'd love some help in the issue queue. Reviewing patches, marking duplicates, rewriting issue descriptions, any help would be much appreciated!
Thanks
Phil
Comments
Vote Range with integration with rules
This is just an idea but one of the sites i'm currently building requires that a content type has a field that defines a total vote requirement for an action to be made. The vote field would have a max positive and max negative. Then a rule can be triggered if the max positive is hit or if the max negative is hit. I think this functionality would be great to have built into the advanced poll. along with the ability to have a setting for a user to only be able to make set amount of votes based on a field set on the user. Permitting a user to have for example a vote ticket field on the user and they can use only that many votes for as many polls for example they could use all vote tickets on one poll. Many options that are not part of the basic poll option. I would like to help build this into advanced Poll if some one could help me get started with contributing to advanced poll.
Hi Patrick, I can see the
Hi Patrick,
I can see the value of your proposed feature.
If you were to look at implementing it as a feature of advanced poll, there are a couple of ways you could go about it.
Firstly you could trigger a rules event every time a vote is registered. You could then set your condition in rules , eg (if the number of votes for the 'yes' option exceeds $x value). So you'd need to write a rules trigger and a rules condition plugin.
This is probably the most logically correct way to go about it. The only issue here might be performance, as the rule would have to calculate the condition on every vote.
Otherwise you could write the conditional stuff in the advpoll module, and add a UI to trigger a 'vote threshold reached' rules event when a certain number of votes is reached for a certain option.
The first option is better I think. It is more general purpose so more flexible.
The best way to get this started is to make a feature request in the advpoll rules issue queue.
Then do a bit of research into writing rules plugins. They're pretty straightforward to write. Then submit a patch!
Note I'm very short on spare time at present. As far as working on advpoll goes, I just grab an hour or two per month where I can find it. My priority is on getting a stable release happening. For this reason I'm only looking at feature requests with reviewed patches.
Hi Patrick,I can see the