Jump to content
DevFuse Forums

GrandTheftArmA

Customers
  • Content Count

    3
  • Joined

  • Last visited

About GrandTheftArmA

  • Rank
    Newbie

Previous Fields

  • IP.Board Version
    IPB 4.0.x

Recent Profile Visitors

585 profile views
  1. I will provide you the details later this week.
  2. Both didn't work for us and overrides the submit wait timer (aka no restrictions)
  3. There seems to be a difference between the provided solution vs the source code of 1.3.2 1.3.2: $messagesSentToday = \IPS\Db::i()->select( 'COUNT(*) AS count, MAX(log_date) AS max', 'form_logs', array( 'log_ip_address=? AND log_date>?', $member->ip_address, \IPS\DateTime::create()->sub( new \DateInterval( 'PT'.$submitWait.'S' ) )->getTimeStamp() ) )->first(); Compared to yours: $messagesSentToday = \IPS\Db::i()->select( 'COUNT(*) AS count, MAX(log_date) AS max', 'form_logs', array( 'log_ip_address=? AND log_date>?', \IPS\Member::loggedIn()->ip_address, \IPS\DateTime::create()->sub( new \DateInterval( 'PT'.$submitWait.'S' ) )->getTimeStamp() ) )->first(); Difference: \IPS\Member::loggedIn()->ip_address is used in your solution whereas the source code (1.3.2) uses $member->ip_address Regardless of the above, we have tried the solution and it ignores the submit timer.
×
×
  • Create New...