vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Mods edit access masks including child forums (https://vborg.vbsupport.ru/showthread.php?t=28654)

Scott MacVicar 01-18-2002 02:15 PM

i feel stupid now, i just noticed a bug :)

sorry about this

change the following

look for
PHP Code:

  $edituser=$DB_site->query_first("SELECT username,userid,usergroupid FROM user WHERE userid=$userid");
  
$ismod=$DB_site->query_first("SELECT moderatorid FROM moderator WHERE userid=$userid"); 

change the $ismod to $is_mod here, it only needs to be done once and only at that point, then change the following.

PHP Code:

  if ($edituser['usergroupid']!=or $ismod) {
    echo 
"<p>You may not edit access for someone who is not a normal registered user!</p>";
    
$stop=1;
  } 

change the $ismod to $is_mod i'd never noticed this as i've always used supermod and admin to test this never normal moderator. I recommend that all people update this to deal with this problem.

I just updated the main file at the top.

Sven 01-18-2002 02:37 PM

Still the same....

PHP Code:

  if ($edituser['usergroupid']!=or $ismod) {
    echo 
"<p>You may not edit access for someone who is not a normal registered user!</p>";
    
$stop=1;
  } 

I just commented this out and it works

Scott MacVicar 01-18-2002 08:42 PM

change

PHP Code:

if ($edituser['usergroupid']!=or $ismod) { 

to
PHP Code:

if ($edituser['usergroupid']!=or $is_mod) { 

and
PHP Code:

$ismod=$DB_site->query_first("SELECT moderatorid FROM moderator WHERE userid=$userid"); 

to
PHP Code:

$is_mod=$DB_site->query_first("SELECT moderatorid FROM moderator WHERE userid=$userid"); 

please make sure you get the right one as there is an identical one that uses $ismod and this is what causes problem, I had two things with the same variable, i don't recommend commenting it out as this allows mods to edit the access masks of anyone, including their own.

Shenlong 01-19-2002 01:10 AM

wonderful hack, my mods are very satisfied, thanx PPN

SharkY-GA 01-19-2002 07:21 AM

Yay, thanks dude. This makes my life a whole lot easier especialy when it comes to my clan forums.

Snake~eyes 01-22-2002 07:59 PM

i'm back again. I know i'm probaly getting on your nerves and I apologize.

I made them mods but they're getting the msg

"You do not have permission to do this!"

Where would my error be?

note: this makes no sense because it WAS working.

Snake~eyes 01-23-2002 05:42 PM

OKay.. i figured out the error with some hard work.. but i got it working.

Would it be possible to expand this hack so moderators could edit the style of their forums?

Martz 01-23-2002 09:55 PM

There is a beta hack to edit the styles in the beta hacks forum. I tried installing it a few times, but I messed it up.


I think a joint venture to make a mods control panel would be cool :)

Snake~eyes 01-23-2002 10:13 PM

yeah i noticed that after i made the request. But still it'd be cool to have this all in one hack.

I'm interested in installing it so clans can get their own customized layout.

Martz 01-23-2002 10:15 PM

Yep, and I for the same reasons. Theres quite a few clan runners out there using vB - which is why I think there is a market for a Community Hosting Control Panel, as I call it on our forums.


All times are GMT. The time now is 09:38 AM.

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.01070 seconds
  • Memory Usage 1,744KB
  • 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
  • (7)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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