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 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


All times are GMT. The time now is 07:28 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.01120 seconds
  • Memory Usage 1,728KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete