Sorry DWZ, I thought that you meant that you looked over it and its fine.
Have you added any other hacks that require changes to usergroup.php as that may be what the problem is. The code you should have is:
PHP Code:
// ###################### Start insert #######################
if ($HTTP_POST_VARS['action']=="insert") {
//vbindex addon
$DB_site->query("INSERT INTO usergroup (usergroupid,title,usertitle,cancontrolpanel,canmodifyprofile,canviewmembers,canview,canviewvbindex,showgroup,cansearch,canemail,canpostnew,canmove,canopenclose,candeletethread,canreplyown,canreplyothers,canviewothers,caneditpost,candeletepost,canusepm,canpostpoll,canvote,canpostattachment,ismoderator,canpublicevent,canpublicedit,canthreadrate,cantrackpm,candenypmreceipts,maxbuddypm,maxforwardpm,canwhosonline,canwhosonlineip,cangetattachment)
VALUES (NULL,'".addslashes($title)."','".addslashes($usertitle)."',$cancontrolpanel,$canmodifyprofile,$canviewmembers,$canview,$canviewvbindex,$showgroup,$cansearch,$canemail,$canpostnew,$canmove,$canopenclose,$candeletethread,$canreplyown,$canreplyothers,$canviewothers,$caneditpost,$candeletepost,$canusepm,$canpostpoll,$canvote,$canpostattachment,$ismoderator,$canpublicevent,$canpublicedit,$canthreadrate,$cantrackpm,$candenypmreceipts,$maxbuddypm,$maxforwardpm,$canwhosonline,$canwhosonlineip,$cangetattachment)");
$action="modify";
echo "<p>Record added</p>";
}
Under the
PHP Code:
// ###################### Start insert #######################
Section, if thats for an unhacked 2.2.6, if you have that and it doesn't work you must have hacked usergroup.php before:
If so I hope you have a backup, restore that and the changes for the $DB_site->query bits make sure you add canviewvbindex after canview on all of them and $canviewvbindex after $canview in the second part.