Hello,
I'm using CMSMS 1.2.5 and polls MS 0.2.0. I just closed 2 polls in the admin and it seemed successful but they are not closed on the front-end. You can still vote but admin has them labeled as closed.
Any suggestions greatly appreciated. Thanks.
Polls Made Simple: Can't Close Polls
-
- Power Poster
- Posts: 424
- Joined: Sat Feb 02, 2008 12:42 am
- Location: USA
Polls Made Simple: Can't Close Polls
Take a penny, leave a penny.
Re: Polls Made Simple: Can't Close Polls
Is caching turned off for those pages?
Nullig
Nullig
-
- Power Poster
- Posts: 424
- Joined: Sat Feb 02, 2008 12:42 am
- Location: USA
Re: Polls Made Simple: Can't Close Polls
No. Both polls are on the same page and the page is 'Cachable'.
Take a penny, leave a penny.
Re: Polls Made Simple: Can't Close Polls
Try making the page not cacheable.
Nullig
Nullig
-
- Power Poster
- Posts: 424
- Joined: Sat Feb 02, 2008 12:42 am
- Location: USA
Re: Polls Made Simple: Can't Close Polls
Just tried and they're still open. Even looked at the db entries for both polls and both have a value '1' for 'closed'.
Take a penny, leave a penny.
-
- Power Poster
- Posts: 424
- Joined: Sat Feb 02, 2008 12:42 am
- Location: USA
Re: Polls Made Simple: Can't Close Polls
Anyone else experience this issue? Still can't get them to close.
Take a penny, leave a penny.
Re: Polls Made Simple: Can't Close Polls
I noticed a few bugs in the forge for that version of Polls. Try the earlier one, it might work better.
Nullig
Nullig
Re: Polls Made Simple: Can't Close Polls
Hey there,
got the same problem with closing polls. Here is how to fix it:
Open action.default.php
search for:
and replace it with:
then search:
and replace with:
Now all polls wich are closed are not votable anymore because the results are shown.
got the same problem with closing polls. Here is how to fix it:
Open action.default.php
search for:
Code: Select all
$q="SELECT id FROM ".cms_db_prefix()."module_polls WHERE poll_id = ? ORDER BY createtime DESC";
Code: Select all
$q="SELECT id,closed FROM ".cms_db_prefix()."module_polls WHERE poll_id = ? ORDER BY createtime DESC";
then search:
Code: Select all
if ($this->UserAlreadyVoted($pollid)) {
Code: Select all
if (($this->UserAlreadyVoted($pollid)) or ($row["closed"]==1)) {