Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x 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.21, by Abe1 Abe1 is offline
Developer Last Online: Jun 2010 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 4.0.0 Rating:
Released: 11-15-2009 Last Update: 11-16-2009 Installs: 1340
Uses Plugins Auto-Templates
Translations  
No support by the author.

Admin Log In As User


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: 0
  • Files to upload: 1 (Product file via ACP only)
  • Time to install: 5 seconds

Updates:

Version 3.20 (11/16/09):
  • Released for vb 4.0 beta 3
Version 3.21 (11/17/09):
  • Removed the option to log in as yourself.

Download Now

File Type: zip admin_log_in_as_user_3_21.zip (2.6 KB, 7079 views)

Screenshots

File Type: jpg 1.JPG (35.8 KB, 0 views)
File Type: jpg 2.jpg (51.5 KB, 0 views)
File Type: jpg 3.JPG (66.6 KB, 0 views)
File Type: jpg 4.jpg (85.2 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
6 благодарности(ей) от:
Ba'al, josner, livenetc, mohammadxxx, munkfish, SaN-DeeP

Comments
  #322  
Old 01-15-2011, 03:11 AM
iBaker's Avatar
iBaker iBaker is offline
 
Join Date: Oct 2006
Location: Melbourne, Australia
Posts: 152
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo View Post
The only fix is the profile_sidebar_first template_hook change. What other fixes are there in your zip file?
Boofo...there is also the change to the maxversion to allow for vb 4.1+
Reply With Quote
  #323  
Old 01-16-2011, 12:50 PM
Peter Cook's Avatar
Peter Cook Peter Cook is offline
 
Join Date: Aug 2010
Location: Liverpool UK
Posts: 129
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When will you update this to work with 4.1.0? As this is reporting incompatible?
Reply With Quote
  #324  
Old 01-19-2011, 12:34 AM
RedKilla's Avatar
RedKilla RedKilla is offline
 
Join Date: Oct 2006
Location: Omaha, NE
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Uploaded the fix and its still not working on my 4.10, I have nothing in the profile field or in the user manager
Reply With Quote
  #325  
Old 01-19-2011, 06:01 PM
kether1 kether1 is offline
 
Join Date: Jun 2006
Posts: 232
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This will not work with VBSEO rewrite of member.php. Any fix?
Kether
Reply With Quote
  #326  
Old 01-20-2011, 07:48 PM
horussjr horussjr is offline
 
Join Date: Feb 2010
Location: Romania
Posts: 138
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

use this instead VSa - Login To User Account works on 4.1.1 like a charm
Reply With Quote
  #327  
Old 01-21-2011, 06:51 PM
RedKilla's Avatar
RedKilla RedKilla is offline
 
Join Date: Oct 2006
Location: Omaha, NE
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tried that one too..No Luck..I havent gotten this to work since vb 3.8
Reply With Quote
  #328  
Old 01-23-2011, 01:13 AM
iBaker's Avatar
iBaker iBaker is offline
 
Join Date: Oct 2006
Location: Melbourne, Australia
Posts: 152
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think there are issues with this mod and vbSEO...as I no longer have vbSEO the mod is working with no problems on 4.1 using the details in Post#319
Reply With Quote
  #329  
Old 01-23-2011, 05:58 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by iBaker View Post
2. Add the link to the Member Action Drop Down[/B]
Attachment 125319

Open the memberaction_dropdown template you find almost at the bottom this block of code:
Code:
        <vb:if condition="$show['emaillink']">
        <li class="right">
            <img src="{vb:stylevar imgdir_siteicons}/email.png" alt="" />
            <a href="sendmessage.php?{vb:raw session.sessionurl}do=mailmember&amp;u={vb:raw memberinfo.userid}" rel='nofollow'>
                {vb:rawphrase send_email}
            </a>
        </li>
        </vb:if>
Right below that add this block:
Code:
        <vb:if condition="is_member_of($bbuserinfo, 5,6)">
        <li class="right">
            <img src="{vb:stylevar imgdir_siteicons}/network.png" class="inlineimg" alt="" />
            <a href="member.php?{vb:raw session.sessionurl}u={vb:raw memberinfo.userid}&amp;admin_log_in_as_user={vb:raw memberinfo.userid}" rel="nofollow">
                Log In As This User
            </a>
        </li>
        </vb:if>
NOTE in the added block above you will need to change the usergroup ID's to the ones to match the ones your have given permissions to use the mod. For example in the above you will see bbuserinfo, 5,6 this shows that I have given permission to Usergroups 5 and 6 to use the mod.
There is actually an easier way to do this and have it show up in the drop-down board-wide, by using a template and a hook.
Reply With Quote
  #330  
Old 01-29-2011, 11:46 AM
nul7 nul7 is offline
 
Join Date: Sep 2006
Location: USA
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

wo0rked like a charm, thanks for the template code modifications as well; makes life simple now.

Quote:
Originally Posted by iBaker View Post
Everyone keeps asking how to fix this mod for v4.1...I posted the fix back at post 202 (I was aka Wilfred1 but after asking .org twice to combine my usernames they haven't responded) so I thought it might help if I attached the complete mod with the fixes in it for use on v4.1 PL2.

Attachment 125317

For my site I have also made these two changes that you may like to also do but note they suit my site and may not suit yours.

1. Make the link look part of the list in the user profile:
Attachment 125318

Change the entire memberinfo_block_admin_log_in_as_user template to just having:
Code:
<li><img src="{vb:stylevar imgdir_siteicons}/network.png" class="inlineimg" alt="" /> <a href="member.php?{vb:raw session.sessionurl}u={vb:raw userinfo.userid}&amp;admin_log_in_as_user={vb:raw userinfo.userid}" rel="nofollow">{vb:rawphrase log_in_as_user}</a></li>
In the MEMBERINFO template starting at line 262 you will find:
Code:
                    </ul>
                </div>
            </div>
          <vb:comment>sidebar</vb:comment>
          {vb:raw template_hook.profile_sidebar_first}
Replace that with:
Code:
                          {vb:raw template_hook.profile_sidebar_first}
                    </ul>
                </div>
            </div>
          <vb:comment>sidebar</vb:comment>


2. Add the link to the Member Action Drop Down

Attachment 125319

Open the memberaction_dropdown template you find almost at the bottom this block of code:
Code:
        <vb:if condition="$show['emaillink']">
        <li class="right">
            <img src="{vb:stylevar imgdir_siteicons}/email.png" alt="" />
            <a href="sendmessage.php?{vb:raw session.sessionurl}do=mailmember&amp;u={vb:raw memberinfo.userid}" rel='nofollow'>
                {vb:rawphrase send_email}
            </a>
        </li>
        </vb:if>
Right below that add this block:
Code:
        <vb:if condition="is_member_of($bbuserinfo, 5,6)">
        <li class="right">
            <img src="{vb:stylevar imgdir_siteicons}/network.png" class="inlineimg" alt="" />
            <a href="member.php?{vb:raw session.sessionurl}u={vb:raw memberinfo.userid}&amp;admin_log_in_as_user={vb:raw memberinfo.userid}" rel="nofollow">
                Log In As This User
            </a>
        </li>
        </vb:if>
NOTE in the added block above you will need to change the usergroup ID's to the ones to match the ones your have given permissions to use the mod. For example in the above you will see bbuserinfo, 5,6 this shows that I have given permission to Usergroups 5 and 6 to use the mod.

Hope this helps so others don't have to go trolling through all the previous thread posts.
Reply With Quote
  #331  
Old 02-08-2011, 10:43 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is a little known array_merge error with this mod that will show up if you edit a signature, among other things, in the ModCP. To fix it, find this code in the useradmin_edit_start hook:

Code:
		$quicklinks = array_merge(
			$quicklinks,
			array(
				"../member.php?" . $vbulletin->session->vars['sessionurl'] . "u=" . $vbulletin->GPC['userid'] . "&amp;admin_log_in_as_user=" . $vbulletin->GPC['userid']
					=> $vbphrase['log_in_as_user']
			)
		);

and change it to:

Code:
		$quicklinks[
			"../member.php?" . $vbulletin->session->vars['sessionurl'] . "u=" . $vbulletin->GPC['userid'] . "&amp;admin_log_in_as_user=" . $vbulletin->GPC['userid']
		] = $vbphrase['log_in_as_user'];
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 01:51 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.05697 seconds
  • Memory Usage 2,364KB
  • 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
  • (9)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (6)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (5)postbit_attachment
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete