I'm running vbportal and noticed that the modification needed for the newthread.php file edits the same block of text that vbportal does. When the code is added over the vbportal code, I get an error when trying to submit a new thread.
I replaced the original file, and thread preview is working fine regardless. Could someone look at the following code and tell me what I need to do (if anything, considering it's working) to make this hack work with vbportal?
How my newthread.php looks with vbportal code:
PHP Code:
// vBPortal Begin
// create first post
// $DB_site->query("INSERT INTO post (postid,threadid,title,username,userid,dateline,attachmentid,pagetext,allowsmilie,showsignature,ipaddress,iconid,visible) VALUES (NULL,'$threadid','".addslashes(htmlspecialchars($subject))."','".addslashes($postusername)."','$bbuserinfo[userid]','".time()."','$attachmentid','".addslashes($message)."','$allowsmilie','$signature','$ipaddress','$iconid','1')");
$DB_site->query("INSERT INTO post (postid,threadid,title,username,userid,dateline,attachmentid,pagetext,allowsmilie,showsignature,ipaddress,iconid,visible,topic) VALUES (NULL,'$threadid','".addslashes(htmlspecialchars($subject))."','".addslashes($postusername)."','$bbuserinfo[userid]','".time()."','$attachmentid','".addslashes($message)."','$allowsmilie','$signature','$ipaddress','$iconid','1','$topic')");
// vBPortal End