Have made the following changes to usergroup.php still get line error on what ever the last line is. I am adding 2 options to the usergroup permissions under the calendar options in the control panel. They are canchatevent and also canchatedit. Here is what I done so far. I keep thinking I have to edit another file or add a variable or something. Can someone lead me down the right path? You will see below every place I added canchatevent and canchatedit. Hope someone can help
PHP Code:
maketableheader("Calendar Permissions");
makeyesnocode("Can Post Public events on Calendar","canpublicevent",0);
makeyesnocode("Can Edit other's Public events","canpublicedit",0);
makeyesnocode("Can Edit other's Chat events","canchatevent",0);
makeyesnocode("Can Edit other's Chat events","canchatedit",0);
PHP Code:
$DB_site->query("INSERT INTO usergroup (usergroupid,title,usertitle,cancontrolpanel,canmodifyprofile,canviewmembers,canview,cansearch,canemail,canpostnew,canmove,canopenclose,candeletethread,canreplyown,canreplyothers,canviewothers,caneditpost,candeletepost,canusepm,canpostpoll,canvote,canpostattachment,ismoderator,canpublicevent,canpublicedit,canchatevent,canchatedit,canthreadrate,cantrackpm,candenypmreceipts,maxbuddypm,maxforwardpm)
VALUES (NULL,'".addslashes($title)."','".addslashes($usertitle)."',$cancontrolpanel,$canmodifyprofile,$canviewmembers,$canview,$cansearch,$canemail,$canpostnew,$canmove,$canopenclose,$candeletethread,$canreplyown,$canreplyothers,$canviewothers,$caneditpost,$candeletepost,$canusepm,$canpostpoll,$canvote,$canpostattachment,$ismoderator,$canpublicevent,$canpublicedit,$canchatevent,$canchatedit,$canthreadrate,$cantrackpm,$candenypmreceipts,$maxbuddypm,$maxforwardpm)");
PHP Code:
maketableheader("Calendar Permissions");
makeyesnocode("Can post Public events on Calendar","canpublicevent",$usergroup[canpublicevent]);
makeyesnocode("Can edit other's Public events on Calendar","canpublicedit",$usergroup[canpublicedit]);
makeyesnocode("Can post Chat events on Calendar","canchatevent",$usergroup[canchatevent]);
makeyesnocode("Can edit other's Chat events on Calendar","canchatedit",$usergroup[canchatedit]);
PHP Code:
$DB_site->query("UPDATE usergroup SET title='".addslashes($title)."',usertitle='".addslashes($usertitle)."',cancontrolpanel=$cancontrolpanel,canmodifyprofile=$canmodifyprofile,canviewmembers=$canviewmembers,canview=$canview,cansearch=$cansearch,canemail=$canemail,canpostnew=$canpostnew,canmove=$canmove,canopenclose=$canopenclose,candeletethread=$candeletethread,canreplyown=$canreplyown,canreplyothers=$canreplyothers,canviewothers=$canviewothers,caneditpost=$caneditpost,candeletepost=$candeletepost,canusepm=$canusepm,canpostpoll=$canpostpoll,canvote=$canvote,canpostattachment=$canpostattachment,ismoderator=$ismoderator,canpublicedit=$canpublicedit,canpublicevent=$canpublicevent,canchatcedit=$canchatedit,canchatevent=$canchatevent,canthreadrate=$canthreadrate,cantrackpm=$cantrackpm,candenypmreceipts=$candenypmreceipts,maxbuddypm=$maxbuddypm,maxforwardpm=$maxforwardpm WHERE usergroupid=$usergroupid");
[PHP]
That is it.
|