There is a bug in the code i guess ...there is an extra pair of qoutes around get_direct_links_table
see below ... this solved the mysql error
Code:
function doHistory($links,$number) {
global $vbulletin;
$vbulletin->db->query_write("INSERT INTO " . TABLE_PREFIX . "`get_direct_links_table`
(`userid`,`thedate`,`links`,`number`)
VALUES ('" . $vbulletin->userinfo['userid'] . "', NOW(), '" . $links . "'," . $number . ");");
}
change to
Code:
function doHistory($links,$number) {
global $vbulletin;
$vbulletin->db->query_write("INSERT INTO " . TABLE_PREFIX . "get_direct_links_table
(`userid`,`thedate`,`links`,`number`)
VALUES ('" . $vbulletin->userinfo['userid'] . "', NOW(), '" . $links . "'," . $number . ");");
}
thanx for the hack

works great now ...*clicks install*