Previous Thread
Next Thread
Print Thread
Hop To
Joined: Sep 2004
Posts: 152
Y
member
member
Y Offline
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
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
scripts/pollmanager.inc.php

Line 114 has a block of code that looks like this:

Code
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:

Code
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
Y
member
member
Y Offline
Joined: Sep 2004
Posts: 152
Hi Rick,

That doesn't work smile

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
R
Former Developer
Former Developer
R Offline
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?


my board: http://www.dragonclan-forum.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Yeah, guess I did...dunno where line 313 came from crazy


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
1 members (Havenofsobriety), 458 guests, and 91 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)