the most important part to change the bbuserinfo into the in_array version is here:
PHP Code:
// Admin Edit Hack by Xenon
if ($bbuserinfo[usergroupid] == 6) {
eval("\$admineditpost = \"".gettemplate("admineditpost")."\";");
} else {
$admineditpost = "";
}
and of course here:
PHP Code:
if ($bbuserinfo[usergroupid] == 6) {
$datetime=mktime($datetime[hours],$datetime[minutes],0,$datetime[mon],$datetime[mday],$datetime[year])-3600*($bbuserinfo['timezoneoffset']-$timeoffset);
$adminsql .= "ipaddress='".addslashes($ipadd)."',dateline='$datetime',editable='$editable',userid='$userid',threadid='$pthreadid',";
}
and no problem, for my vb3 version of this hack, it was already planned to add moderator functions to editpost, too