In fact, I DID hack usergroup.php according to instructions on star hack. Here's what I did:
****In admin/usergroup.php****
**Find
makeinputcode("User Status<br>Use this to override the default 'ladder' of user status titles","usertitle");
**Right under it, add
makeinputcode("Stars shown<br>Use this to override the default 'ladder' of stars","starlevel");
makeinputcode("Star image shown<br>Give this group a unique star image - do not add the .gif after the image name!","starimg");
**Find
if ($HTTP_POST_VARS['action']=="insert") {
$DB_site->query("INSERT INTO usergroup (usergroupid,title,usertitle,cancontrolpanel,canmo difyprofile,canviewmembers,can view,cansearch,canemail,canpostnew,canmove,canopen close,candeletethread,canreply own,canreplyothers,canviewothers,caneditpost,cande letepost,canusepm,canpostpoll, canvote,canpostattachment,ismoderator,canpubliceve nt,canpublicedit,canthreadrate ,cantrackpm,candenypmreceipts,maxbuddypm,maxforwar dpm)
VALUES (NULL,'".addslashes($title)."','".addslashes($user title)."',$cancontrolpanel,$ca nmodifyprofile,$canviewmembers,$canview,$cansearch ,$canemail,$canpostnew,$canmov e,$canopenclose,$candeletethread,$canreplyown,$can replyothers,$canviewothers,$ca neditpost,$candeletepost,$canusepm,$canpostpoll,$c anvote,$canpostattachment,$ism oderator,$canpublicevent,$canpublicedit,$canthread rate,$cantrackpm,$candenypmrec eipts,$maxbuddypm,$maxforwardpm)");
**Replace it with
if ($HTTP_POST_VARS['action']=="insert") {
$DB_site->query("INSERT INTO usergroup (usergroupid,title,usertitle,starlevel,starimg,can controlpanel,canmodifyprofile, canviewmembers,canview,cansearch,canemail,canpostn ew,canmove,canopenclose,candel etethread,canreplyown,canreplyothers,canviewothers ,caneditpost,candeletepost,can usepm,canpostpoll,canvote,canpostattachment,ismode rator,canpublicevent,canpublic edit,canthreadrate,cantrackpm,candenypmreceipts,ma xbuddypm,maxforwardpm)
VALUES (NULL,'".addslashes($title)."','".addslashes($user title)."','$starlevel','$stari mg',$cancontrolpanel,$canmodifyprofile,$canviewmem bers,$canview,$cansearch,$cane mail,$canpostnew,$canmove,$canopenclose,$candelete thread,$canreplyown,$canreplyo thers,$canviewothers,$caneditpost,$candeletepost,$ canusepm,$canpostpoll,$canvote ,$canpostattachment,$ismoderator,$canpublicevent,$ canpublicedit,$canthreadrate,$ cantrackpm,$candenypmreceipts,$maxbuddypm,$maxforw ardpm)");
**Find
makeinputcode("User Status<br>Use this to override the default 'ladder' of user status titles","usertitle",$usergroup[usertitle]);
**Right under it, add
makeinputcode("Stars shown<br>Use this to override the default 'ladder' of stars","starlevel",$usergroup[starlevel]);
makeinputcode("Star image shown<br>Give this group a unique star image - do not add the .gif after the image name!","starimg",$usergroup[starimg]);
**Find
exit;
}
$DB_site->query("UPDATE usergroup SET title='".addslashes($title)."',usertitle='".addsla shes($usertitle)."',cancontrol panel=$cancontrolpanel,canmodifyprofile=$canmodify profile,canviewmembers=$canvie wmembers,canview=$canview,cansearch=$cansearch,can email=$canemail,canpostnew=$ca npostnew,canmove=$canmove,canopenclose=$canopenclo se,candeletethread=$candeletet hread,canreplyown=$canreplyown,canreplyothers=$can replyothers,canviewothers=$can viewothers,caneditpost=$caneditpost,candeletepost= $candeletepost,canusepm=$canus epm,canpostpoll=$canpostpoll,canvote=$canvote,canp ostattachment=$canpostattachme nt,ismoderator=$ismoderator,canpublicedit=$canpubl icedit,canpublicevent=$canpubl icevent,canthreadrate=$canthreadrate,cantrackpm=$c antrackpm,candenypmreceipts=$c andenypmreceipts,maxbuddypm=$maxbuddypm,maxforward pm=$maxforwardpm WHERE usergroupid=$usergroupid");
**Replace it with
exit;
}
$DB_site->query("UPDATE usergroup SET title='".addslashes($title)."',usertitle='".addsla shes($usertitle)."',starlevel= '$starlevel',starimg='$starimg',cancontrolpanel=$c ancontrolpanel,canmodifyprofil e=$canmodifyprofile,canviewmembers=$canviewmembers ,canview=$canview,cansearch=$c ansearch,canemail=$canemail,canpostnew=$canpostnew ,canmove=$canmove,canopenclose =$canopenclose,candeletethread=$candeletethread,ca nreplyown=$canreplyown,canrepl yothers=$canreplyothers,canviewothers=$canviewothe rs,caneditpost=$caneditpost,ca ndeletepost=$candeletepost,canusepm=$canusepm,canp ostpoll=$canpostpoll,canvote=$ canvote,canpostattachment=$canpostattachment,ismod erator=$ismoderator,canpublice dit=$canpublicedit,canpublicevent=$canpublicevent, canthreadrate=$canthreadrate,c antrackpm=$cantrackpm,candenypmreceipts=$candenypm receipts,maxbuddypm=$maxbuddyp m,maxforwardpm=$maxforwardpm WHERE usergroupid=$usergroupid");
Now, any ideas?
|