vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Let Moderators "save" users (https://vborg.vbsupport.ru/showthread.php?t=239660)

legacy123 04-02-2010 11:45 AM

Let Moderators "save" users
 
I do not believe I have seen this before only in mods but they never had it all...

This will allow moderators the same 'save' option as admins.


How to allow moderators the same 'search for users' as admins and allow them to save at footer of search.

first the user.php file must be taken from the admincp and then replace user.php in the modcp with it
then...

find

PHP Code:

(!can_administer('canadminusers')) 



replace with

PHP Code:

(!can_administer('canadminusers') && (!can_moderate('canmodusers'))) 

Now a moderator(who has permission) may "save" and "search"
users similar to admins the only difference is to search they must save an account first(this will not change anything on the account unless they decide to edit something.)

Will try to find a way to allow easier searching but it is better than nothing.

Note:This is a very simple code edit that works amazing it is very good for big boards with trustworthy people


BE CAREFUL WHOM YOU CHOOSE FOR A MOD POSITITION THAT YOU GIVE THIS PERMISSION TO.

legacy123 04-05-2010 06:41 PM

I have added on to this now to allow searching...

find
PHP Code:

construct_nav_option($vbphrase['search_for_users'],'user.php?do=find'); 

and replace with
PHP Code:

construct_nav_option($vbphrase['search_for_users'],'user.php?do=modify'); 



All times are GMT. The time now is 10:24 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.01143 seconds
  • Memory Usage 1,714KB
  • 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
  • (4)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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