vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Can someone help me with the user.php file? (https://vborg.vbsupport.ru/showthread.php?t=37366)

Chris M 04-13-2002 01:45 PM

Can someone help me with the user.php file?
 
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

N!ck 04-13-2002 06:55 PM

here's an idea. do something like:

Code:

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

Quote:

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 -

Quote:

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?

Quote:

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

N!ck 04-14-2002 03:13 PM

PHP Code:

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


All times are GMT. The time now is 10:26 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01165 seconds
  • Memory Usage 1,753KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (23)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete