vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Administrative and Maintenance Tools - Quick (inline) User Editor (https://vborg.vbsupport.ru/showthread.php?t=102789)

Xplorer4x4 01-19-2006 12:33 PM

Quote:

Originally Posted by Moosa
but it doesnt compatible with Unalterable Admins Can Edit Themselves any way?


It would be great to see this work with that hack. :)

Snake 01-27-2006 10:26 AM

Can this be intergrated with AJAX?

stark427 02-06-2006 06:25 PM

Nice mod.

I just wish the security risk could be resolved so that mods would not be able to upgrade themselves to admins

Quote:

Security Note: ...your mods could upgrade themselves to an Administrator if you give them permission to change Usergroups.
Does this also mean that moderators could degrade admins by putting them to the moderators usergroup?

hiiped 02-06-2006 10:22 PM

Quote:

Originally Posted by stark427
Nice mod.

Does this also mean that moderators could degrade admins by putting them to the moderators usergroup?

in your config.php file set admin(s) ( usernumber/s ) to unalterable
then adding :::::this mod::::: can work ( just a wild guess )

DkHelmet 02-15-2006 11:54 AM

Quick bug:

When editing a user's profile, changing the "Custom User Title" field to "Yes, Admin Set" doesn't have any affect. I can go freely from "Yes, User Set" to "No" and vice-versa. I suspect this is due to the account only having mod and not admin privs?

Any workarounds/common sense that I am missing?

andrefedalto 02-16-2006 01:42 AM

Quote:

Originally Posted by stark427
Nice mod.

I just wish the security risk could be resolved so that mods would not be able to upgrade themselves to admins

Does this also mean that moderators could degrade admins by putting them to the moderators usergroup?

here is a fix for security, because on my forums i allow admins, supermods and mods to edit users, so i had to add some security fixes, so the users cant get auto-promotted.

do the following:
open que.php and find (around line 121):
Code:

        // Merge the options with the users details
        $getoptions = convert_bits_to_array($user['options'], $vbulletin->bf_misc_useroptions);
        $user = array_merge($user, $getoptions);

now, BEFORE that, add:
Code:

        //Only administrators can edit administrators
        if ($vbulletin->userinfo['usergroupid'] != 6 && $user['usergroupid'] == "6" ) {
                eval(standard_error("Sorry, but you can't edit administrators!"));
        }

        //Super-moderators cant edit super-moderators
        if ($vbulletin->userinfo['usergroupid'] == "5" && $user['usergroupid'] == "5" ) {
                eval(standard_error("Sorry, but you can't edit super-moderators!"));
        }

        //Moderators cant edit super-moderators
        if ($vbulletin->userinfo['usergroupid'] == "7" && $user['usergroupid'] == "5" ) {
                eval(standard_error("Sorry, but you can't edit super-moderators!"));
        }
       
        //Moderators cant edit moderators
        if ($vbulletin->userinfo['usergroupid'] == "7" && $user['usergroupid'] == "7" ) {
                eval(standard_error("Sorry, but you can't edit moderators!"));
        }

Now only admins can edit admins, supermods cant edit other supermods and mods cant edit supermods or either mods.

now the mod is working fine for me...

//me clicks install :D :D :D

Jimmy101 02-18-2006 03:49 PM

I have a custom hack installed that automatically ads a special category to my user manager within AdminCP, if I were to search and edit them from within AdminCP I would see this section and fields. It then displays the output of what is entered here in their profiles. However, this hack does not allow me to edit my custom hack, even if all the options are turned on(the custom hack does now show up at all.) How can I add it? Thanks!

mrcrx 02-22-2006 11:57 AM

Quote:

Originally Posted by andrefedalto
here is a fix for security, because on my forums i allow admins, supermods and mods to edit users, so i had to add some security fixes, so the users cant get auto-promotted.

do the following:
open que.php and find (around line 121):
Code:

        // Merge the options with the users details
        $getoptions = convert_bits_to_array($user['options'], $vbulletin->bf_misc_useroptions);
        $user = array_merge($user, $getoptions);

now, BEFORE that, add:
Code:

        //Only administrators can edit administrators
        if ($vbulletin->userinfo['usergroupid'] != 6 && $user['usergroupid'] == "6" ) {
                eval(standard_error("Sorry, but you can't edit administrators!"));
        }

        //Super-moderators cant edit super-moderators
        if ($vbulletin->userinfo['usergroupid'] == "5" && $user['usergroupid'] == "5" ) {
                eval(standard_error("Sorry, but you can't edit super-moderators!"));
        }

        //Moderators cant edit super-moderators
        if ($vbulletin->userinfo['usergroupid'] == "7" && $user['usergroupid'] == "5" ) {
                eval(standard_error("Sorry, but you can't edit super-moderators!"));
        }
       
        //Moderators cant edit moderators
        if ($vbulletin->userinfo['usergroupid'] == "7" && $user['usergroupid'] == "7" ) {
                eval(standard_error("Sorry, but you can't edit moderators!"));
        }

Now only admins can edit admins, supermods cant edit other supermods and mods cant edit supermods or either mods.

now the mod is working fine for me...

//me clicks install :D :D :D

where do I find que.php. I want to install this but not without your mod to it.

Gaskell 02-22-2006 12:26 PM

que.php is in the .zip download for this mod, or if you have already installed it it will be in your forum root folder :)

Jimmy101 02-22-2006 01:43 PM

So, does anyone know how to add ALL fields that are in the admincp to this yet? I have custom fields in admincp, but I do not know how to make them show and be save-able here... I'm not talking about custom profile fields, I'm talking about 100% custom sections such as a Computer Spec input section. How do I make these added fields be save-able with this mod?


All times are GMT. The time now is 06:47 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.01280 seconds
  • Memory Usage 1,753KB
  • 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_code_printable
  • (5)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