I need to know how to get the
threadid in this hook. I am adding a tag to the database during this hook, and the only data I can't seem to get is the
threadid. I have looked at the
function_newpost.php file and from what I see in there
$threadinfo['threadid'] should work. I have even tried
$threadinfo[threadid] but that did not work either.
PHP Code:
$vbulletin->db->query_write("INSERT INTO " . TABLE_PREFIX . "tag
(tagid,tagtext,dateline)
VALUES ('','".$fieldvalue."','".TIMENOW."')");
$last_id = mysql_insert_id();
$vbulletin->db->query_write("INSERT INTO " . TABLE_PREFIX . "tagthread
(tagid,threadid,userid,dateline)
VALUES ('".$last_id."','".$threadinfo['threadid']."','".$vbulletin->userinfo['userid']."','".TIMENOW."')");