|
Joined: Sep 2004
Posts: 152
member
|
member
Joined: Sep 2004
Posts: 152 |
For polls on these forums, you can define a voting start and stop time. We just found out that when you create a poll on these forums and disable the start time, it will enforce a start time anyway of 12 PM the next day. This means that once you have posted a poll, it will take up to 24 hours until people can actually start voting.
This is clearly a bug.
The only workaround is to enable a start time and set it to the current time.
Last edited by Rick; 11/22/2006 6:31 PM.
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
scripts/pollmanager.inc.php Line 114 has a block of code that looks like this:
if ($enablestart) {
$starttime = mktime($hour,$min,0,$month,$day,$year);
} else {
$starttime = mktime(12,0,0,$month,$day,$year);
}
$validstart = checkdate($month,$day,$year);
if (!$validstart) {
$html -> not_right("{$ubbt_lang['INVALID_START']}");
}
Change that, to this:
if ($enablestart) {
$starttime = mktime($hour,$min,0,$month,$day,$year);
$validstart = checkdate($month,$day,$year);
if (!$validstart) {
$html -> not_right("{$ubbt_lang['INVALID_START']}");
}
} else {
$starttime = $html->get_date();
}
|
|
|
|
Joined: Sep 2004
Posts: 152
member
|
member
Joined: Sep 2004
Posts: 152 |
Hi Rick, That doesn't work The start time is now indeed (5 secs ago) or (32 secs ago), but the button still says: Voting not accepted until starting time begins (and it indeed doesn't accept any votes).
Last edited by Yomar; 11/14/2006 4:19 AM.
|
|
|
|
Joined: Jul 2006
Posts: 4,057
|
Joined: Jul 2006
Posts: 4,057 |
Hi, i havnt done any fixes or anything, and i'm using v7.01
If you create a poll and on the last page of options only click users must vote before results can be seen.
I get you can not vote until the vote time begins, and its always 12pm the same day ?
Ive done 2 polls not and 3hrs apart. And they all say 12pm start time.
If i rememeber this was the start time, but that option was not ticked.
Last edited by Mark S; 11/15/2006 3:34 AM.
BOOM !! Version v7.6.1.1 People who inspire me Isaac ME Gizmo
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
Requires another change. Line 313 of libs/includepoll.inc.php looks like:
if (time() < $pstart) {
That, should be:
if ($html->get_date() < $pstart) {
|
|
|
|
Joined: Jun 2006
Posts: 956
Old Hand
|
Old Hand
Joined: Jun 2006
Posts: 956 |
line 313? Do you mean line 122?
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
Yeah, guess I did...dunno where line 313 came from
|
|
|
2 members (Ruben, ahmed047),
776
guests, and
161
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|