Really love this mod, so first off -- big thanks.
Following
this line of questions with ascroft, I wanted to add a subscription to the newly posted thread for the user.
Hook Location: newthread_post_complete
Code:
if ($fid == 32)
{
$addthreadinfo = fetch_threadinfo($newpost['threadid']);
$adduserinfo = $vbulletin->userinfo['userid'];
$db->query_write("INSERT INTO subscribethread
(userid,threadid,emailupdate,folderid,canview)
VALUES
('$adduserinfo','addthreadinfo','1','0','1');
");
}
I even replaced the variables with static info which also did nothing so it looks like the IF $fid isn't working. Did I miss something or is there a better way to go about adding a user thread subscription for the newly created thread?