<I'm not sure what's happening, I've tried replying a couple of times and my posts keep coming up in the wrong order...I think the moderators changed the time on the server, which is throwing off the posting queue>
Yah, okay, I forgot to change the Z1, Z2, etc., variables, I should have commented those out before pasting them in my post.
I've been trying to follow the directions but it's a little hard for me I guess since I'm not familiar with the coding - is this right, then?
PHP Code:
// ***************** start of moderation forum queue hack
if ($foruminfo['moderatenew']!=0)
{
$oldforumid=$forumid;
if ($forumid==48) {$forumid=53;} // Nitro TC - chassis & handling
elseif ($forumid==49) {$forumid=54;} // Nitro TC - engines & speed
//elseif ($forumid==Z1) {$forumid=Z2;}
//elseif ($forumid==Y1) {$forumid=Y2;}
//elseif ($forumid==Z1) {$forumid=Z2;}
else {$forumid=55;} // this is the error forum - if posts do not go into the right forum they will go into this forum
}
$DB_site->query("INSERT INTO thread (threadid,title,lastpost,forumid,open,replycount,postusername,postuserid,lastposter,dateline,iconid,visible,attach) VALUES (NULL,'".addslashes(htmlspecialchars($subject))."','".time()."','$forumid','1','0','".addslashes($postusername)."','$bbuserinfo[userid]','".addslashes($postusername)."','".time()."','$iconid','$visible','$attachcount')");
$threadid=$DB_site->insert_id();
// subscribe to thread
if ($email and $bbuserinfo['userid']!=0) {
if (!$checkid=$DB_site->query_first("SELECT subscribethreadid FROM subscribethread WHERE userid=$bbuserinfo[userid] AND threadid=$threadid")) {
$DB_site->query("INSERT INTO subscribethread (subscribethreadid,userid,threadid) VALUES (NULL,$bbuserinfo[userid],$threadid)");
}
}
/*if ($bbuserinfo[userid]==0) {
$postusername=$bbuserinfo[username];
} else {
$postusername="";
}*/
// 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')");
$postid=$DB_site->insert_id();
indexpost($postid,1);
if ($foruminfo['moderatenew']!=0) {$forumid=$oldforumid;}
// update forum stuff