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)

Marek58 11-15-2009 07:23 AM

Polish version

Classico 11-15-2009 11:03 PM

Does this work in VB4.0?

Thanks!

Abe1 11-16-2009 05:21 AM

4.0 version posted here: https://vborg.vbsupport.ru/showthread.php?t=228077

Classico 11-16-2009 07:41 AM

Excelent!! Nice work!! :up:

Thank you !!;)

bderen 12-08-2009 07:58 PM

Quote:

Originally Posted by carmichael1973 (Post 1880360)
Or if you want to set this for multiple users use this:

Code:

<if condition="in_array($userinfo[userid], array(1,2,3))">You Cannot Login As This User<else /><a href="$vboptions[forumhome].php?$session[sessionurl]u=$userinfo[userid]&amp;admin_log_in_as_user=$userinfo[userid]">$vbphrase[log_in_as_user]</a></if>
I have tested it, and it does work!!!:)

sorry to be such a noob but where exactly do i modify and enter this code

carmichael1973 12-08-2009 08:49 PM

Quote:

Originally Posted by bderen (Post 1927403)
sorry to be such a noob but where exactly do i modify and enter this code

Inside the admin_log_in_as_user_member_info_link_vb37 template.

Make sure you edit the array portion to reflect the actual user id's of the profiles you wish to exclude the link from.

chick 12-11-2009 07:58 PM

This mod is great, I can't count how many times members ask... how do I insert video into my profile, or I can't gt a background images to show... now I can just click and do it for them instead of going to the admin panel.

Thank you, installed.

Raptor 12-28-2009 11:32 PM

Quote:

Originally Posted by carmichael1973 (Post 1804092)
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&amp;u=" $vbulletin->GPC['userid'] . "&amp;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)

yep this worked - thanks

christon26 11-19-2010 01:35 AM

I have this mod installed and when I go to manually add a new user I have the following line at the top of the page:

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

It doesn't stop me adding a new user and disabling the mod takes the message away, so it's really just a nuisance at the moment LOL...how can I have the mod enabled and get rid of the error message?

I am using vb 3.8.6 PL1

MagicThemeParks 01-08-2011 02:23 PM

Works great with 3.8.5


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.01504 seconds
  • Memory Usage 1,752KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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