MyBB Community Forums

Full Version: Polls don't work
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
The polls on my forum don't work, when you create a poll, then no one can select an option, because after clicking "Vote!" button it will report to a blank page.
What's wrong? Huh Confused

Example http://bit.ly/oaidpu
Test account:
user test
psw test15
Revert the showthread_poll template back to default.
I Never had this strange error make sure you follo support team guy
He has a name you know.....
(2011-08-14, 11:28 AM)faviouz Wrote: [ -> ]Revert the showthread_poll template back to default.

It's not modified, I'm not able to get it back so! Confused
Try replacing it with this then:

<form action="polls.php" method="post">
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
<input type="hidden" name="action" value="vote" />
<input type="hidden" name="pid" value="{$poll['pid']}" />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td colspan="4" class="thead" align="center"><strong>{$lang->poll} {$poll['question']}</strong></td>
</tr>
{$polloptions}
</table>
<table width="100%" align="center">
<tr>
<td><input type="submit" class="button" value="{$lang->vote}" /></td>
<td valign="top" align="right"><span class="smalltext">[<a href="polls.php?action=showresults&amp;pid={$poll['pid']}">{$lang->show_results}</a>{$edit_poll}]</span></td>
</tr>
<tr>
<td colspan="2"><span class="smalltext">{$publicnote}</span></td>
</tr>
</table>
</form>
I did what you said and everything not goes.
Here's how the error occurs:
Quote:You cannot vote in a poll that has been closed.
PRINT SCREEN - Click!!!
That's a totally different issue.
(2011-08-16, 09:56 AM)faviouz Wrote: [ -> ]That's a totally different issue.

Okay... And how to solve?!!!
Hi,

I am having this issue too @ forum.minidriver.com.au

This is happening since upgrading 1.6.4

Cheers

Tim.

edit: faviouz's post above fixes the problem.

Thanks!