Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Admin Log In As User Details »»
Admin Log In As User
Version: 3.10, by Abe1 Abe1 is offline
Developer Last Online: Jun 2010 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 3.7.x Rating:
Released: 01-26-2008 Last Update: 01-17-2009 Installs: 1508
Uses Plugins Auto-Templates
Translations  
No support by the author.

Admin Log In As User 3.10


About this hack:
This hack allows any admin that you set in admin permissions, to log in as any user. You have to go to the user's profile page and there will be a link to 'Log In As This User'. Also, there is a link the drop down menu in the ACP User Manager. If you are logged in as another user, you will get a message on top of the forum saying, 'You are currently logged in as another user. Click here to log back into your account.'

This hack is very easy to install. This hack has only the admin yes/no option. Just install and it's ready to be used!

Enjoy!

Installation information on hack:
  • Files edited: 0
  • Templates edited: 1 (optional)
  • Files to upload: 1 (via ACP)
  • Time to install: 1 minute

Updates:

Version 3.0 (01/26/08):
  • Released for vb 3.7
  • RECOMMEND UNINSTALL THEN REINSTALL. (including any template edits you made.)
  • Version works with vb 3.6.0 and greater.

Version 3.10 (01/17/09):
  • Released for vb 3.8

Please post your comments or suggestions for this hack. I read ALL posts.

MAKE SURE YOU CLICK INSTALL!
You will get an email when a new version is released.

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #292  
Old 11-15-2009, 07:23 AM
Marek58's Avatar
Marek58 Marek58 is offline
 
Join Date: Oct 2005
Location: Poland
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Polish version
Reply With Quote
  #293  
Old 11-15-2009, 11:03 PM
Classico Classico is offline
 
Join Date: Dec 2007
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this work in VB4.0?

Thanks!
Reply With Quote
  #294  
Old 11-16-2009, 05:21 AM
Abe1's Avatar
Abe1 Abe1 is offline
 
Join Date: Feb 2004
Location: I LOVE New York!
Posts: 2,886
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

4.0 version posted here: https://vborg.vbsupport.ru/showthread.php?t=228077
Reply With Quote
  #295  
Old 11-16-2009, 07:41 AM
Classico Classico is offline
 
Join Date: Dec 2007
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excelent!! Nice work!! :up:

Thank you !!
Reply With Quote
  #296  
Old 12-08-2009, 07:58 PM
bderen bderen is offline
 
Join Date: Jul 2008
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by carmichael1973 View Post
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
Reply With Quote
  #297  
Old 12-08-2009, 08:49 PM
carmichael1973's Avatar
carmichael1973 carmichael1973 is offline
 
Join Date: Aug 2006
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bderen View Post
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.
Reply With Quote
  #298  
Old 12-11-2009, 07:58 PM
chick's Avatar
chick chick is offline
 
Join Date: Aug 2006
Location: PI Land
Posts: 381
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #299  
Old 12-28-2009, 11:32 PM
Raptor Raptor is offline
 
Join Date: Nov 2001
Posts: 499
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by carmichael1973 View Post
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
Reply With Quote
  #300  
Old 11-19-2010, 01:35 AM
christon26 christon26 is offline
 
Join Date: Dec 2008
Location: Australia
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #301  
Old 01-08-2011, 02:23 PM
MagicThemeParks's Avatar
MagicThemeParks MagicThemeParks is offline
 
Join Date: Sep 2009
Posts: 850
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works great with 3.8.5
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:18 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.11893 seconds
  • Memory Usage 2,325KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete