yes it is possible:
Replace
PHP Code:
if ($foruminfo['moderatenew']!=0) {$oldforumid=$forumid;$forumid=X;}
AS:
PHP Code:
if ($foruminfo['moderatenew']!=0)
{
$oldforumid=$forumid;
if ($forumid==X1) {$forumid=X2;}
elseif ($forumid==Y1) {$forumid=Y2;}
elseif ($forumid==Z1) {$forumid=Z2;}
else {$forumid=W2;}
}
So as you see you have to enter all main forumids (X1,Y1,Z1) and their sub forumids (Z2,Y2,X2) in that code one by one. Make sure you dont forget any!
Enjoy.