I posted a poll in just a general forum area yesterday, and when i went to vote for one of the 5 options, it wouldn't register my vote.
It went to just a blank page, and when i re-navigated to the back it hadn't registered my vote.
Any pointers?
Blank Page:
http://www.berlingoforum.co.uk/polls.php...4&option=4
What plugins do you have installed? Test account?
Thanks for the quick response, tester user account username and password: Tester11
I have lots of plugins installed, will grab a screenie.
What's your MyBB version?
Latest, 1.6.4. Upgraded a couple of weeks back.
The problem appears to be the poll isn't including the user's posthash input... lemme find a fix...
Edit your showthread_poll template
Find
<form action="polls.php" method="post">
and replace with
<form action="polls.php" method="post">
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
That appears to have done the trick. How did you debug such an issue?
Thank you very much for such quick and accurate help.
I noticed the URL you gave didn't have the posthash in it and then looked at the HTML source and didn't see the posthash input
You're welcome.
Hi - I have exactly the same symptoms under MyBB1.6.8
Submitting a poll response gives me a bank page - eg
http://www.nzarchitecture.net.nz/polls.p...d=4&option[2]=1
But my showthread_poll template does not seem to correspond exactly - entire script below.
<form action="polls.php" method="get">
<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&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>
(2011-11-10, 08:41 PM)Paul H. Wrote: [ -> ]The problem appears to be the poll isn't including the user's posthash input... lemme find a fix...
Edit your showthread_poll template
Find
<form action="polls.php" method="post">
and replace with
<form action="polls.php" method="post">
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
I was also having the same issue, and quickly fixed using this method.
Thanks Andre for such question and Paul to answer it....!