vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Administrative and Maintenance Tools - Admin Log In As User (https://vborg.vbsupport.ru/showthread.php?t=168819)

RocCityDad 04-14-2009 08:47 AM

thanks... sweeks for posting the link to this.

smirkley 04-15-2009 05:51 PM

Quote:

Originally Posted by smirkley (Post 1783108)
I am in the process of trying to track down any conflicts that may be causing or conflicting here, and I hope to have more info soon as possible. I will post here if I find something out.

Well, I have on my production forum tested with ALL hacks disabled individually as well as all at once, with exception to this one, and the problem persists.

I am at wits end, and do not find any conflicts, etc.

Dont know what else to do.

Classico 04-28-2009 12:19 PM

Quote:

Originally Posted by smirkley (Post 1767449)
Love this hack.

Great when needing to log into dummy accounts with different usergroups to verify proper operation of features while not an admin.


I have a (appearing) small problem though as I get an error I have verified as a result of this mod being installed, and problem goes away if I disable this mod, and comes back when re-enabled. All other mods I am using do not provide this fault in my testing.

I see this while NOT logged in as another user, as of course I am accessing the admin cp using my admin account.

With this mod (ver.3.10) installed and enabled, and using vb3.8.1 PL1, go to the admin CP and click on "Add New User" under the "Users" sidebar menu.

The Add New User page is rendered ok, but at the top this is shown...
Code:

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/admincp/user.php(544) : eval()'d code on line 11

Any help appreciated.
Thanks.

Quote:

Originally Posted by smirkley (Post 1780115)
Anybody else with this problem too?
I notice the error reproduces itself in admincp as well as modcp.

Same problem here with 3.8.2! I have the same message error when i try to create a new user.

That is a problem with this mod.

Any solution?

carmichael1973 05-04-2009 02:35 AM

Quote:

Originally Posted by Classico (Post 1800480)
Same problem here with 3.8.2! I have the same message error when i try to create a new user.

That is a problem with this mod.

Any solution?

I'm right there with everyone else. I've used similar hacks for a long time and use it regularly. I'll look into it myself tomorrow.

Nice work though!!

carmichael1973 05-04-2009 02:44 AM

ok... the problem is inside this plugin code!

PHP Code:

$admin_log_in_as_userinfo $vbulletin->db->query_first("SELECT admin_log_in_as_user FROM " TABLE_PREFIX "administrator WHERE userid = '" $vbulletin->userinfo['userid'] . "'");

if (
$admin_log_in_as_userinfo['admin_log_in_as_user'])
{
    
$quicklinks array_merge(
        
$quicklinks,
        array(
            
"../member.php?" $vbulletin->session->vars['sessionurl'] . "do=getinfo&u=" $vbulletin->GPC['userid'] . "&admin_log_in_as_user=" $vbulletin->GPC['userid']
                => 
$vbphrase['log_in_as_user']
        )
    );


I'll get into it tomorrow and see what the issue is!

But here is a work around for now... "This will only remove the ability to login as member from admincp"

Disable the plugin for the admincp link - (see attached image)

Classico 05-04-2009 07:47 PM

Quote:

Originally Posted by carmichael1973 (Post 1804092)
Disable the plugin for the admincp link - (see attached image)

Just did it and the error is gone "with the wind". ;)

Thanks for the help and i?ll be wainting for the upgrade when you have the time. :up:

This is a great mod! :)

chrisbeau 05-07-2009 02:18 PM

Working good for me, but can it be altered to stop admin using it on other admin, or supermods using it on admin ?

islamicvd 05-10-2009 05:25 PM

really great update :)

djvj 05-22-2009 10:10 PM

I used this on vb 3.6.4 and worked great. Upgraded forum to 3.8.2 and upgraded this plugin to latest.

I found selection in the user page in the admin cp (and works fine) but I can't find the option to 'login as user' in the user's profile page on 3.8.2. Is it still there?

Makc666 05-23-2009 07:08 PM

Quote:

Originally Posted by djvj (Post 1815463)
I found selection in the user page in the admin cp (and works fine) but I can't find the option to 'login as user' in the user's profile page on 3.8.2. Is it still there?

Check the product's options. There is such setting there.


All times are GMT. The time now is 06:03 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.01370 seconds
  • Memory Usage 1,750KB
  • 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_code_printable
  • (1)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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