Posts: 1,794
Threads: 70
Joined: Oct 2010
2011-07-28, 05:47 PM
So I'm running 1.6.4, and I've got issues with the poll. My members can't vote, the poll disappears after trying to vote, and it's really just stupid.
Anyway, I do have AJAX Poll Voting installed, which I don't know but it seems like it may have caused the problem, but deactivating it just gave me a white page when voting, which is really confusing.
Any help?
Posts: 124
Threads: 11
Joined: Jan 2011
Reputation:
5
2011-07-28, 06:16 PM
Jack.D
Aspiring Web Developer
Posts: 1,794
Threads: 70
Joined: Oct 2010
2011-07-28, 06:29 PM
(2011-07-28, 06:16 PM)Jack.D Wrote: Link?
In my sig.
Posts: 1,794
Threads: 70
Joined: Oct 2010
2011-07-28, 06:32 PM
(This post was last modified: 2011-07-28, 07:05 PM by lucasbytegenius.)
(2011-07-28, 06:31 PM)MattRogowski Wrote: If it's disappearing you must have non-default code running, have you run the file verification tool??
No I haven't. Anyway, it stops disappearing after disabling the AJAX Poll Voting plugin, but I get a blank page when voting after that.
I'll run the tool.
Well the only file that I know I didn't modify is inc/class_parser.php, the other two were inc/functions.php which I edited to get Google SEO working, and jscripts/editor.js, which I edited to fix the text box problem.
Ok I just checked it on a board without the AJAX Poll Voting plugin and running 1.6.4, it's got the same issue...I think something went wrong when you guys fixed that poll vulnerability
Posts: 1,794
Threads: 70
Joined: Oct 2010
2011-07-28, 08:59 PM
Yeah showthread_poll was changed apparently.
Old code:
<form action="polls.php" method="get">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&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>
New code:
<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&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>
Also it seems that AJAX Poll Voting needs to be updated to support the change.
Polls are working now