vb.org Archive

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

iBaker 01-15-2011 03:11 AM

Quote:

Originally Posted by Boofo (Post 2145231)
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+

Peter Cook 01-16-2011 12:50 PM

When will you update this to work with 4.1.0? As this is reporting incompatible?

RedKilla 01-19-2011 12:34 AM

Uploaded the fix and its still not working on my 4.10, I have nothing in the profile field or in the user manager

kether1 01-19-2011 06:01 PM

This will not work with VBSEO rewrite of member.php. Any fix?
Kether

horussjr 01-20-2011 07:48 PM

use this instead VSa - Login To User Account works on 4.1.1 like a charm

RedKilla 01-21-2011 06:51 PM

Tried that one too..No Luck..I havent gotten this to work since vb 3.8

iBaker 01-23-2011 01:13 AM

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

Boofo 01-23-2011 05:58 PM

Quote:

Originally Posted by iBaker (Post 2145214)
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.

nul7 01-29-2011 11:46 AM

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

Quote:

Originally Posted by iBaker (Post 2145214)
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.


Boofo 02-08-2011 10:43 AM

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'];


Xerosis 02-16-2011 11:07 PM

not for 4.1.1 version ):

Boofo 02-16-2011 11:18 PM

Then you have something else going on as that is how vb does it in their code.

Rofo 02-16-2011 11:26 PM

Quote:

Originally Posted by Xerosis (Post 2163428)
not for 4.1.1 version ):

Is this correct?

DeadSilence_ 02-23-2011 05:44 PM

Are you going to make a 4.1.x version?

Boofo 02-23-2011 05:51 PM

I'm using it on vb 4.1 just fine.

rjmjr69 02-24-2011 07:08 AM

Yeah no luck with 4.1.2

Michlerish 02-24-2011 07:33 AM

I just upgraded from 4.0.6 to 4.1.2, and this mod is still working perfectly for me.

I disabled it before the upgrade, then enabled afterward.

vitrag24 02-24-2011 12:44 PM

Quote:

Originally Posted by Michlerish (Post 2166170)
I just upgraded from 4.0.6 to 4.1.2, and this mod is still working perfectly for me.

I disabled it before the upgrade, then enabled afterward.

any edit or worked directly?

elz3abi M.D 04-09-2011 02:01 PM

work perfectly with me 4.1.3

garrettjewell 04-11-2011 12:48 AM

nagging question, can i see members pm's?

Boofo 04-11-2011 01:00 AM

You can see everything they see when you are logged in as them.

Been Told 04-11-2011 08:07 AM

Quote:

Originally Posted by vitrag24 (Post 2166243)
any edit or worked directly?

You can't install it on anything newer than vB 4.0. They probably had it installed before upgrading to vB4.
What you can try is edit the XML file.
Change:
Code:

<dependency dependencytype="vbulletin" minversion="4.0.0 alpha 1" maxversion="4.1.0 alpha 1" />
to something like
Code:

<dependency dependencytype="vbulletin" minversion="4.1.2" maxversion="4.1.5" />
I haven't tested it on my install (4.1.3) yet.

Special Pages 04-24-2011 10:23 PM

Please update this for 4.1.1! Thanks!

Rofo 04-25-2011 01:00 AM

Quote:

Originally Posted by Special Pages (Post 2188279)
Please update this for 4.1.1! Thanks!

Running 4.1.1 and this Mod is working great.

RcHelp 04-26-2011 03:44 AM

Running 4.1.3 and it's working like a charm. Great help when members say they are having a problem that I'm not! Highly suggested!

dustoff99 04-26-2011 01:36 PM

Received this error when I tried to import (vB 4.1.3 site):

The following dependencies were not met: 1.This product is not compatible with version 4.1.3 of vBulletin. (Compatible starting with 4.0.0 alpha 1 / Incompatible with 4.1.0 alpha 1 and greater)

4l3ghi 04-29-2011 10:03 AM

inompatible with 4.1.3 T.T

Boofo 04-29-2011 10:20 AM

I have it working on 4.1.3 just fine. Just change the dependency line in the xml.

Strauss 04-29-2011 03:33 PM

Quote:

Originally Posted by Boofo (Post 2189949)
I have it working on 4.1.3 just fine. Just change the dependency line in the xml.

how do you do that?

Boofo 04-29-2011 03:47 PM

<a href="https://vborg.vbsupport.ru/showpost.php?p=2183294&postcount=344" target="_blank">https://vborg.vbsupport.ru/showp...&postcount=344</a>

dustoff99 04-29-2011 04:27 PM

Quote:

Originally Posted by Boofo (Post 2190032)

Thanks Boofo, that worked for me. However in the 2nd screenshot, I don't have the same option to log in as user (missing that link). I have to either edit profile > Quick User Links or just jump into the adminCP > Users > Search for Users > etc...

Did you get your link to show up in the persons profile page?

Boofo 04-29-2011 04:43 PM

Yes, there is a plugin edit that needs to be made for the link to show up in the profile for later version of vb 4. It should be in the first few pages of this thread somewhere.

dustoff99 04-29-2011 06:06 PM

Quote:

Originally Posted by Boofo (Post 2190046)
Yes, there is a plugin edit that needs to be made for the link to show up in the profile for later version of vb 4. It should be in the first few pages of this thread somewhere.

Thank you again, found it on page 5 and probably every page after that. :D

Works great....

Boofo 04-29-2011 06:20 PM

Glad you got it working. ;)

Hakan39 04-29-2011 06:33 PM

Invalid version. does not work :(

Boofo 04-29-2011 06:58 PM

Quote:

Originally Posted by Hakan39 (Post 2190078)
Invalid version. does not work :(

It does work. Did you even read any of the last few posts?

dustoff99 05-01-2011 01:26 PM

Odd, now when I am in my adminCP and click "Log In As This User", my (ie9) browser attempts to block a popup. Then it takes me back to my adminCP versus the users profile. I did click allow this popup and it didn't open the User Profile page.

Checked with my safari browser and it worked great. It launched a new window and was on as the user.

My OS: Windows 7
IE 9

deverill2010 05-04-2011 04:28 PM

I want to install this but just want to double check it is what I think it is.

When you log in as a user, do you inherit their permissions. I.e you see ONLY what they see?

I need this now and again to check I have permissions set up right on articles etc so it's handy not having to physically log out, on as a user and back out and on again.

Boofo 05-04-2011 04:30 PM

Yes, you actually become that user, so to speak. I use it for the same purpose, checking permissions.

deverill2010 05-04-2011 05:04 PM

Thanks, Best get installed then will save me a load of time :)


All times are GMT. The time now is 09:44 AM.

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.01749 seconds
  • Memory Usage 1,833KB
  • 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
  • (11)bbcode_code_printable
  • (11)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
  • (40)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