To combat this I changed the name query in index.php to the following and thought I would share it.
- Code: Select all
"SELECT members.name " .
"FROM `".ROSTER_MEMBERSTABLE."` members " .
"LEFT JOIN `".ROSTER_PLAYERSTABLE."` players " .
"ON members.name = players.name " .
"WHERE members.level >= " . $addon_conf['ArmorySync']['MinLevel'] . " " .
"AND ( ISNULL(players.name) " .
"OR STR_TO_DATE(players.dateupdatedutc,'%m/%d/%y %H:%i:%s') <= DATE_SUB(NOW(), INTERVAL " . $addon_conf['ArmorySync']['SynchCutoffTime'] . " HOUR) ) " .
"ORDER BY members.last_online DESC";
One side effect is that the last updated time looks like it is set to the time when the armory was last updated.
[Edit]
I'm having some trouble with the date time. I'll update the query when I get it right.
[Edit]
Date time comparison fixed. This wasn't the only way to do it but it's working.
PS. Great add on! Love the work.