View Full Version : Flood check issue when previous entries are posted with future dates
iguanairs
06-29-2012, 09:12 AM
One of my members has gotten a strange error when she tried posting a second post within the 30 second parameter.
This forum requires that you wait 30 seconds between posts. Please try again in 4365956 seconds.
I thought perhaps the site had a hiccup but even today (this was posted yesterday) she is still seeing the notice except the seconds have gone down. This is being displayed in a secondary instance of dynamics. Where or how are the remaining seconds being calculated?
Brian
07-03-2012, 06:20 PM
Is the date on her last post perhaps set far in the future?
iguanairs
07-03-2012, 06:29 PM
The entry is dated 08-18-2012 @ 11:00 AM, which is accurate for how I am using the script. The script reads the date for the entry being submitted instead of the actual date and time of the entry submission?
Brian
07-03-2012, 06:32 PM
The script only checks for posts made by that member, so it would have to be a case of her changing the date of one of her own posts.
iguanairs
07-03-2012, 06:34 PM
Lets say she went in and corrected the date after having hit submit once, it still doesn't make sense for her to have to wait almost 50 days to post another entry. Is there a work around to make this go away for her? She still can't add entries.
Brian
07-04-2012, 12:21 PM
Try looking in your forum/includes/vba_dyna_functions_saveentry.php file for this line:
if ($vbulletin->options['floodchecktime'] AND !$vbulletin->GPC['preview'] AND (TIMENOW - $lentry['dateline']) <= $vbulletin->options['floodchecktime'])
Replace with this:
if ($vbulletin->options['floodchecktime'] AND !$vbulletin->GPC['preview'] AND $lentry['dateline'] <= TIMENOW AND (TIMENOW - $lentry['dateline']) <= $vbulletin->options['floodchecktime'])
And that should take care of the issue.
iguanairs
07-04-2012, 12:55 PM
That is gold man! Thanks. (It works, as you expected it would.)
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.