The Advanced Poll module does not seem to indicate in any way, other than not allowing a user to participate in the poll, that the poll has closed.

It also does not switch the selector from Open to Closed after the time period for the poll availability has passed, even though for all functional reasons (being that the user can no longer participate in the poll), the poll is indeed closed.

Is there any way we can make it so that the Advanced Poll Module indicates those polls that have closed?

A bonus would be a way to automatically change the title of a poll to add something like [CLOSED] to the beginning or end of the title after the poll availability period has ended.

Comments

Spokenbird created an issue. See original summary.

ecsedi’s picture

Issue summary: View changes

In my opinion it is only a matter of definition of the advpoll_closed field. Basically we have two options for limiting access to polls in time: giving them start/end dates using the advpoll_dates field while setting advpoll_closed to "open", or manually setting the advpoll_closed field while leaving advpoll_dates empty. As I could observe, mixing the two methods is not really well defined. To clarify this issue, we should first describe all possible cases regarding advpoll_closed and advpoll_dates field settings. Now these cases are the following:

  • no advpoll_dates - advpoll_closed is "close": poll is closed, people cannot vote
  • no advpoll_dates - advpoll_closed is "open": poll is open, people can vote
  • advpoll_dates set, out of time window - advpoll_closed is "open": poll is closed, people cannot vote
  • advpoll_dates set, inside time window - advpoll_closed is "open": poll is open, people can vote
  • advpoll_dates set, out of time window - advpoll_closed is "closed": poll is closed, people cannot vote
  • advpoll_dates set, inside time window - advpoll_closed is "closed": poll is closed, people cannot vote

By the way, you can easily write a little module containing a hook_cron() to set advpoll_closed to "close" whenever your polls run out of their time window if you wish to do so.

ecsedi’s picture

Issue summary: View changes