PDA

View Full Version : Usergroup.php


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.

webhost
07-22-2001, 02:27 AM
I know now that I have to edit the calendar.php also for permissions. Can anyone tell me if this is all or there any more files I need to change pr update?

Freddie Bingham
07-22-2001, 03:23 AM
Please remember that any questions relating to changing anything in the vBulletin source belong in the hacking forums.

This forum is for questions about what you can do with vBulletin that do not involve hacking.

webhost
07-22-2001, 03:26 AM
Yes
I understand can you move it for me?
:(