Hey Kevin, question. I am trying to get this to write to the DB, when there is a timer trigger, but it don't seem to work, here is what I tried.
Hook Location, register_start
Execution Order, tried 5 and 15
Code:
PHP Code:
function kh99_sbs_post2(&$data, $event)
{
global $vbulletin;
if ($data['reject'])
{
$dateline = TIMENOW;
$vbulletin->db->hide_errors();
$vbulletin->db->query_write("
INSERT INTO `". TABLE_PREFIX ."bad_bots1`
(
dateline,
bots1,
agent,
userip
)
VALUES
(
".$dateline.",
'2',
'1',
'1'
)
");
}
}
But I believe it is not doing so, and it seems to stop the post from being added also.