I just upgraded to 6.4 full from b1 and I ran into a nasty problem. When a user posts a poll regardless if they tinker with the "Start Poll Time", the poll will not let anyone vote for 5 days. How do I fix this?
Yes It is as 6.4 so far was only released in an international version and who said anything about an INCLUDE anywhere in this?? Me thinks its coffee time.
Here is the code your searching for in addpost.php
// ------------------------------------------------- // If there is a poll in this post we need to add it if ($addpoll && $questions) { $starttime = "0"; if ($ampm == "PM") { $hour = $hour + 12; } $starttime = mktime($hour,$min,0,$month,$day,$year); $starttime = $starttime - ($config['adjusttime'] * 86400); $validstart = checkdate($month,$day,$year);
and you replace it with this
// ------------------------------------------------- // If there is a poll in this post we need to add it if ($addpoll && $questions) { $starttime = "0"; if ($ampm == "PM") { $hour = $hour + 12; } if (!$enablestart) { $starttime = mktime(0,0,0,$month,$day,$year); } else { $starttime = mktime($hour,$min,0,$month,$day,$year); } $validstart = checkdate($month,$day,$year);
Just to let ya know.. I did a beyond compare and the files from and the ubbthreads-6-4-all-langs.tar.gz I downloaded on December 5th and the ubbthreads-6-4-all-langs.tar.gz I downloaded on December 8th are different... Not only is the addpost.php changed to reflect the change scream said above but they fixed the altertable.. also in the one I downloaded on the 5th there was two files one called oc_login.php and one called temp.php also in the addpost.php there was a line stripping the icons url but in the Dec 8th that is now gone..
the ubbthreads-6-4-english.tar.gz I downloaded on the 8th is the same as the ubbthreads-6-4-all-langs.tar.gz I downloaded on the 8th Minus the langauge files and it also differes from the ubbthreads-6-4-all-langs.tar.gz I downloaded on the 5th..
the one on the 5th did NOT have this line if ($addpoll && $questions) {
The file I am giving you the code from was downloaded Friday the fifth. I have not gone back and redownloaded any zip until Rick posts 6.4.1. The code I gave is indeed from the addpost.php on Friday. Unless that is you downloaded something after I did I know I was one of the first downloads.
well... Im looking at two zips.. one downloaded the 5th and one downloaded last nite... so unless some Keebler Elves came in and turned on my PC and rezipped em they are different...
the poll have a problem with start and stop times. I try to report it on Infopop. If you set Start time and stop time you can submit a vote bevor the poll is startet. The polls tells you that you have voted. If start time reached you are not able to vote and if stop time reached you are not able to view a result. I try this with a 5 minute test poll. Can anyone verify this ? I run an 24h system not 12am/pm
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.