webhost
07-22-2001, 01:59 AM
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
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);
$DB_site->query("INSERT INTO usergroup (usergroupid,title,usertitle,cancontrolpanel,canmo difyprofile,canviewmembers,canview,cansearch,canem ail,canpostnew,canmove,canopenclose,candeletethrea d,canreplyown,canreplyothers,canviewothers,canedit post,candeletepost,canusepm,canpostpoll,canvote,ca npostattachment,ismoderator,canpublicevent,canpubl icedit,canchatevent,canchatedit,canthreadrate,cant rackpm,candenypmreceipts,maxbuddypm,maxforwardpm)
VALUES (NULL,'".addslashes($title)."','".addslashes($usertitle)."',$cancontrolpanel,$canmodifyprofile,$canviewmembe rs,$canview,$cansearch,$canemail,$canpostnew,$canm ove,$canopenclose,$candeletethread,$canreplyown,$c anreplyothers,$canviewothers,$caneditpost,$candele tepost,$canusepm,$canpostpoll,$canvote,$canpostatt achment,$ismoderator,$canpublicevent,$canpublicedi t,$canchatevent,$canchatedit,$canthreadrate,$cantr ackpm,$candenypmreceipts,$maxbuddypm,$maxforwardpm )");
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]);
$DB_site->query("UPDATE usergroup SET title='".addslashes($title)."',usertitle='".addslashes($usertitle)."',cancontrolpanel=$cancontrolpanel,canmodifyprofil e=$canmodifyprofile,canviewmembers=$canviewmembers ,canview=$canview,cansearch=$cansearch,canemail=$c anemail,canpostnew=$canpostnew,canmove=$canmove,ca nopenclose=$canopenclose,candeletethread=$candelet ethread,canreplyown=$canreplyown,canreplyothers=$c anreplyothers,canviewothers=$canviewothers,canedit post=$caneditpost,candeletepost=$candeletepost,can usepm=$canusepm,canpostpoll=$canpostpoll,canvote=$ canvote,canpostattachment=$canpostattachment,ismod erator=$ismoderator,canpublicedit=$canpublicedit,c anpublicevent=$canpublicevent,canchatcedit=$cancha tedit,canchatevent=$canchatevent,canthreadrate=$ca nthreadrate,cantrackpm=$cantrackpm,candenypmreceip ts=$candenypmreceipts,maxbuddypm=$maxbuddypm,maxfo rwardpm=$maxforwardpm WHERE usergroupid=$usergroupid");
[PHP]
That is it.
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);
$DB_site->query("INSERT INTO usergroup (usergroupid,title,usertitle,cancontrolpanel,canmo difyprofile,canviewmembers,canview,cansearch,canem ail,canpostnew,canmove,canopenclose,candeletethrea d,canreplyown,canreplyothers,canviewothers,canedit post,candeletepost,canusepm,canpostpoll,canvote,ca npostattachment,ismoderator,canpublicevent,canpubl icedit,canchatevent,canchatedit,canthreadrate,cant rackpm,candenypmreceipts,maxbuddypm,maxforwardpm)
VALUES (NULL,'".addslashes($title)."','".addslashes($usertitle)."',$cancontrolpanel,$canmodifyprofile,$canviewmembe rs,$canview,$cansearch,$canemail,$canpostnew,$canm ove,$canopenclose,$candeletethread,$canreplyown,$c anreplyothers,$canviewothers,$caneditpost,$candele tepost,$canusepm,$canpostpoll,$canvote,$canpostatt achment,$ismoderator,$canpublicevent,$canpublicedi t,$canchatevent,$canchatedit,$canthreadrate,$cantr ackpm,$candenypmreceipts,$maxbuddypm,$maxforwardpm )");
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]);
$DB_site->query("UPDATE usergroup SET title='".addslashes($title)."',usertitle='".addslashes($usertitle)."',cancontrolpanel=$cancontrolpanel,canmodifyprofil e=$canmodifyprofile,canviewmembers=$canviewmembers ,canview=$canview,cansearch=$cansearch,canemail=$c anemail,canpostnew=$canpostnew,canmove=$canmove,ca nopenclose=$canopenclose,candeletethread=$candelet ethread,canreplyown=$canreplyown,canreplyothers=$c anreplyothers,canviewothers=$canviewothers,canedit post=$caneditpost,candeletepost=$candeletepost,can usepm=$canusepm,canpostpoll=$canpostpoll,canvote=$ canvote,canpostattachment=$canpostattachment,ismod erator=$ismoderator,canpublicedit=$canpublicedit,c anpublicevent=$canpublicevent,canchatcedit=$cancha tedit,canchatevent=$canchatevent,canthreadrate=$ca nthreadrate,cantrackpm=$cantrackpm,candenypmreceip ts=$candenypmreceipts,maxbuddypm=$maxbuddypm,maxfo rwardpm=$maxforwardpm WHERE usergroupid=$usergroupid");
[PHP]
That is it.