MyBB Community Forums

Full Version: Poll is closed for some users
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
if($poll['closed'] == 1 || $thread['closed'] == 1 || ($expiretime < $now && $poll['timeout'] > 0))
{
	$showresults = 1;
}

This is returning true.

if($alreadyvoted || $showresults)
{
	if($alreadyvoted)
	{
		$pollstatus = $lang->already_voted;
	}
	else
	{
		$pollstatus = $lang->poll_closed;
	}
}

So if it's saying it's closed it's because of the first bit of code, it doesn't think they've voted.

After that first bit of code I posted, line 303 of ./showthread.php, add:

$poll['closed'] . " " . $thread['closed'] . " " . $expiretime . " " . $now . " " . $poll['timeout']

Obviously that's going to output for everybody unless you put some other conditionals around it. Just want to see what it thinks it's working with.
Pages: 1 2