View Full Version : Can someone help me with the user.php file?
Chris M
04-13-2002, 01:45 PM
I am an Admin at ThePhora.com, and I have a problem...
I am trying to edit the user.php file to restrict access to my profile...
We have 2 Nazi Administrators who insist on editing my profile, and I want to be able to block them from accessing my profile...
I tried demoting them, but another Admin re-instated them, and since then they keep doing it...
Can you show me how to or help me to edit the user.php file to stop them?
Thanks...
Satan
Chris M
04-13-2002, 03:15 PM
*BUMP*
This is a really big problem...
Satan
DjSap
04-13-2002, 03:34 PM
why dont you just remove their admin rights
Chris M
04-13-2002, 03:35 PM
I told you that...
Because another Admin keeps adding them...
Satan
Steve Machol
04-13-2002, 03:40 PM
Then remove that Admin's rights as well.
Chris M
04-13-2002, 03:51 PM
Lol...
If I did that, there would only be two left...
I think if someone could help me edit the user.php file, then I could deny them access, as they dont have FTP access...
Satan
DjSap
04-13-2002, 03:56 PM
i thought you meant nazi as in +++++++, but after i visited the site i realized you were speaking literaly.
Chris M
04-13-2002, 04:00 PM
Lol...
I meant it in both senses of the term...
Their names are Wehrmacht and LaundryBob...
We have a mixture of Aryans, Socialists, Religious and Gaming groups of people, and we all discuss and make good conversation...
But If anyone can help...
Satan
Chris M
04-13-2002, 06:43 PM
So can anyone help?
Satan
Chris M
04-13-2002, 06:51 PM
Using the basis of Viewing the Admin Log...
Would something like :
$canviewuserid=13 = "13";
$canpruneuser=13 = "13";
I am userid = 13...
I am just theoretically suggesting something...
Can you tell me if this would work?
Satan
Chris M
04-13-2002, 06:52 PM
Thats all in admin/config.php
I am going to try it, and post my results...
Satan
here's an idea. do something like:
if (($userid == "zz") && ($bbuserinfo[userid] == "xx" OR $bbuserinfo[userid] == "yy")) {
show_nopermission();
}
replace zz with your userid and xx and yy with the userids you want to block
it SHOULD work
Chris M
04-13-2002, 07:00 PM
Thanks...
I shall try that, as my idea failed:)
Satan
Chris M
04-13-2002, 07:04 PM
No it didnt work...
I tested it with a fake admin account of user id 86...
Satan
Chris M
04-13-2002, 07:07 PM
I am going to try editing a different file...
I have an idea that might make it work:)
Satan
Chris M
04-13-2002, 07:10 PM
@nicksaunders - I would never say this online for the fear of being mistaken as Gay, but I love you for that!!!!!!!
Thanks ever so much...
I tested it, and it comes up with : you do not have permission to access this page!!!
Brilliant!
Thank you...
Satan
Chris M
04-13-2002, 08:28 PM
Aha...
I have got another idea...
If I wanted to restrict viewing to misc.php, how would I do that?
Satan
Chris M
04-13-2002, 08:37 PM
OK :
I tried
if (($userid == "4" OR $userid == "88") && ($$bbmisc)) {
show_nopermission();
}
Any pointers on where I screwed up?
Satan
Chris M
04-13-2002, 08:40 PM
If I cant stop them from doing it, can I somehow exempt myself from it?
Satan
Chris M
04-13-2002, 08:47 PM
Then I tried this to exempt myself -
if (($userid == "13") && ($bbmisc[userid] == "4" OR $bbmisc[userid] == "88")) {
show_nopermission();
}
Satan
Chris M
04-14-2002, 02:48 PM
I think I have the solution to that error...
Working on the Basis of what nicksaunders told me yesterday, I have developed this code which I think will block them from doing the user postcount update?
if ($action == 'updateposts') && ($bbuserinfo[userid] == "1")) {
show_nopermission
}
Now?
I believe this will work, though I have not tested it yet?I am going to test it with another account by editing the admin/misc.php file?
I was wondering if there is any way to manipulate this, so that everyone else?s post count gets reset, apart from mine?
Any ideas?
Thanks in advance?
Satan
if (($action == "updateposts") && ($bbuserinfo[userid] == "1")) {
show_nopermission();
}
you just had a couple little syntax errors ;) otherwise it should work
Chris M
04-14-2002, 04:09 PM
Thanks...
You are a real help m8...
Satan
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.