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)
-   -   [RELEASE v2.x.x] Moderators Being able to control Accessmasks via MODCP (https://vborg.vbsupport.ru/showthread.php?t=27724)

DarkReaper 09-15-2001 06:08 PM

swank. Installing...

DarkReaper 09-15-2001 06:23 PM

A small problem I ran into during the install:

Quote:

open /mod/user.php
---------------------------------------
on line 145 below
<a href="user.php?s=<?php echo $session[sessionhash]; ?>&action=find"> View </a> |
add
<a href="user.php?s=<?php echo $session[sessionhash]; ?>&action=find"> Edit Acess Masks </a>

Upload all 3 files now and your done. Mods can now edit access masks for a user if their
usergroup has permission to and the forum allows them to.
and
It should be:

Quote:

open /mod/index.php
---------------------------------------
on line 145 find

<a href="user.php?s=<?php echo $session[sessionhash]; ?>&action=find"> View </a> |

replace with

<a href="user.php?s=<?php echo $session[sessionhash]; ?>&action=find"> View </a> |
<a href="user.php?s=<?php echo $session[sessionhash]; ?>&action=find"> Edit Acess Masks </a>

Upload all 4 files now and you're done. Mods can now edit access masks for a user if their
usergroup has permission to and the forum allows them to.

DarkReaper 09-15-2001 07:04 PM

Didn't work. When they go to "Edit access masks" it says "you do not have permission to do this!"

Scott MacVicar 09-15-2001 07:24 PM

Did you enable it for hte usergroup?

DarkReaper 09-15-2001 07:53 PM

No, I enabled it for the forum itself.

I set the following option to "yes" for the forum:
Quote:

Allow people who moderate this forum to remove user's access
Using usergroups for moderators is a pain, and it was removed from vB a few versions ago...

Scott MacVicar 09-15-2001 07:57 PM

you need to enable it for the usergroup as well as the forum.

its a usergroup permission

DarkReaper 09-15-2001 07:58 PM

Hm...if I enable it for "Registered" users, will all users then be able to do it? Or only those who are moderators of specific forums?

Scott MacVicar 09-15-2001 10:11 PM

Nope, it wouldn't.

Cause of the
if (!$perms[ismoderator] and !$ismod=$DB_site->query_first("SELECT * FROM moderator WHERE userid=$bbuserinfo[userid]")) {
echo "<p>You do not have permission to do this!</p>";
exit;
}

stops people from doing this. its all throughout the mod control panel.

DarkReaper 09-16-2001 04:07 AM

It still doesn't work. I've given the usergroup the user is in access to modify the access masks as well as specifying this in the forum settings and making him a moderator. It still says "You do not have permission to do this"

Scott MacVicar 09-16-2001 10:33 AM

if your getting that error, you shouldn't be able to even do a search on someone as it uses the exact same code that is in searching, banning and viewing a user's details.

PHP Code:

if (!$perms[ismoderator] and !$ismod=$DB_site->query_first("SELECT * FROM moderator WHERE userid=$bbuserinfo[userid]")) {
    echo 
"<p>You do not have permission to do this!</p>";
    exit;
  } 



All times are GMT. The time now is 09:12 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.01155 seconds
  • Memory Usage 1,739KB
  • 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_php_printable
  • (3)bbcode_quote_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