View Full Version : Hacks affecting access masks?
jminiman
01-20-2002, 08:15 PM
Hi all,
I have installed so many hacks over the past year that I've lost track of everything installed. I am having problems with random moderators randomly being granted access to private forums AFTER I set the Moderator group to not have access and even customizing that user's access masks. If I add another private forum, these random mods get access to all private forums once more.
What hacks, if any, would possibly affect access masks and might be a cause for this?
Dark_Wizard
01-21-2002, 03:00 PM
Yes a hack can cause this if you had accidently deleted the wrong or too much code during the hack install. To try to find out which hack caused this could be very time consuming IMO, so I would suggest that you grab Beyond Compare (http://www.scootersoftware.com/) and check the original files from the original vb download and compare those against the files you now have. Hope this helps.
jminiman
01-21-2002, 04:30 PM
Trying it out now. Thanks for the tip!
Snake~eyes
01-22-2002, 07:50 PM
I had this problem too and here's what I got from someone for a solution.
in /admin/forum.php
look for
$DB_site->query("INSERT INTO access (userid,forumid,accessmask) VALUES ('$userid','$forumid',1)");
put a double slash (//) or a hash (#) in front of it, these are the simpliest ways to comment it out.
jminiman
01-22-2002, 07:53 PM
Thanks, but before I randomly comment out that line of code, what does it do?
Snake~eyes
01-22-2002, 08:02 PM
Honestly, i have no clue.. lol.. i was told to do it and I did it. So it solved my problem. What i think it does is automatically give the moderator forum access to all the forums. Not sure
Martz
01-25-2002, 08:02 AM
Yeah, I told you about this fix.
When you add a moderator it finds all private forums and adds the moderator a custom permission through the use of an access mask. This is quite anoying when you have large complicated forum permissions and access masks as you have to go and undo the damage. Commenting out the line stops the custom moderator access to private forums being added, but still adds the moderator and gives them permission on the respective forum and child forums.
Just comment it out and see how much time it will save you :)
HTH.
jminiman
01-25-2002, 11:23 AM
Is this line not powerful enough to comment it out? I am still "enjoying" the same behavior of all mods getting access to newly added private forums:
while ( list($key,$userid)=each($accessto) ) {
// vB.org Remark $DB_site->query("INSERT INTO access (userid,forumid,accessmask) VALUES ('$userid','$forumid',1)");
}
Snake~eyes
01-25-2002, 05:51 PM
you'll have to change all the masks to give them zero acces. But when you add new forums/mods it won't give them access again. You just have to set evryne for default
Martz
01-26-2002, 11:15 AM
Originally posted by jminiman
Is this line not powerful enough to comment it out? I am still "enjoying" the same behavior of all mods getting access to newly added private forums:
while ( list($key,$userid)=each($accessto) ) {
// vB.org Remark $DB_site->query("INSERT INTO access (userid,forumid,accessmask) VALUES ('$userid','$forumid',1)");
}
It all depends onhow you give people access. For me, an access mask permission isn't stanard, I use usergroups for everything as its easier to deal with large numbers of users. If you have many private forums and many usergroups like I do for hosted clans/projects, the new moderator gets access to every single private forum - which I dont wan't. It assumes you want a moderator to be able to access any forum.
If you don't need it too, don't comment it out. :)
jminiman
01-26-2002, 12:19 PM
You mean DO comment it out if you don't want this default behavior of giving all mods access to all private forums?
Snake~eyes
01-26-2002, 01:04 PM
Comment it out if you don't want the mods to get automatic access
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.