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 can edit Users (https://vborg.vbsupport.ru/showthread.php?t=42096)

Xenon 08-08-2002 10:00 PM

Mods can edit Users
 
With this Hack your Mods can edit really everything of a user account, nearly as much as an Admin can! (Changing usergroups....)

But it is very customizable, too. If you don't want em to change usergroups, then they can't. Or you can define which usergroups they can move the users into..

Also if you add if-clauses in the front section to the hack, you can customize it to which of your mod can modify which fields..

this block in front of the hack code defines nearly everything you need to customize the hack:

$canedit[profilefields]=1;
$canedit[timefields]=0;
$canedit[options]=1;
$canedit[addresses]=1; // HP, Email, ICQ, AIM ...
$canedit[signature]=1;
$canedit[title]=0;
$canedit[name]=1;
$canedit[avatars]=1; // 0 Cant edit, 1 Can edit, 2 Can upload custom avatars
$canedit[changegroups]=0; // Mods can move users from one group to another (just groups included in $canedit[usergroupids])
$canedit[usergroupids]="1 2 3 4 10 11"; // Which usergroups can be edited

Screenshots in following Posts

Xenon 08-09-2002 03:51 PM

nearly an admin panel:

Xenon 08-09-2002 03:52 PM

old style:

Xenon 08-09-2002 03:53 PM

usergroup changer (to which a mod is allowed) :)

assassingod 08-09-2002 04:25 PM

Very nice, I might install it:) My forums are a bit new and I havent got very many mods =/

ladyfyre 08-09-2002 05:38 PM

I like it :)

as usual...i have one question *blush*

Is there a way to set this so that different mod usergroups have a different set of usergroups they can move users to?

We have in essence, two totally different userlevel systems on my site...one for ladies, one for gentlemen. Thus, lady mods handle female stuff, male mods handle male stuff. I would prefer not to have lady mods accessing male stuff and vice versa.

Or......now that i think about this....
could i set up a separate mod panel for women and men, and then have the two configured differently?

okrogius 08-09-2002 08:22 PM

Good job :).

NTLDR 08-09-2002 10:11 PM

Very nice hack Xenon, particulary usefull for large boards.

Xenon 08-09-2002 11:39 PM

a ladyfire:

very easy, instead of this line
PHP Code:

$canedit[usergroupids]="1 2 3 4"

add an if-clause like this:

PHP Code:

if($bbuserinfo[usergroupid]==ladymodgroupid) {
$canedit[usergroupids]="2 3 4"//groups your femal mods can edit
} else {
$canedit[usergroupids]="2 8 9"//groups your male mods can edit


seperate modpanel would also be possible, you have to alter global.php in the new folder to just allow male/female mods go into it ;)

[D]Vincent 08-10-2002 05:30 AM

Looks nice. I'll probably disable being able to change the username but I might install this later ^^


All times are GMT. The time now is 03:22 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.01154 seconds
  • Memory Usage 1,735KB
  • 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
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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