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)

Abe1 01-26-2008 10:00 PM

Admin Log In As User
 
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.

Subah 01-26-2008 10:53 PM

First ;)
Thanks for the update :)

katie hunter 01-26-2008 11:02 PM

Hey abe, does this modification eats any queries ?

Abe1 01-26-2008 11:04 PM

Quote:

Originally Posted by katie hunter (Post 1429662)
Hey abe, does this modification eats any queries ?

Just on the member profile page I believe. It gives the link or not to log in as another user. (1 query)

fariborz khan 01-26-2008 11:04 PM

Thanks for the update

Michael Biddle 01-26-2008 11:30 PM

Thanks for the update. But any reason the screen shots are for the old 3.6.x system?

Abe1 01-26-2008 11:43 PM

Quote:

Originally Posted by whitemike (Post 1429682)
Thanks for the update. But any reason the screen shots are for the old 3.6.x system?

They are the same just for the first pic. When I get some time.

Howell 01-26-2008 11:46 PM

Excellent!

I had modified your 3.6.x version to work on 3.7.0 but have installed this instead.

Thanks. :D

Seiyaboy 01-27-2008 12:59 AM

Are there any other major changes other than making this work for 3.7.0 as well? I'm staying with 3.6.7 and I intend to not want to do extra updates for a code that is already bug-less.

gforce75 01-27-2008 01:47 AM

Thnk you for the fix. Alot of 3.6.5-3.6.8 mods work fine, but ah... you gotta update several things. 3.7 is not that glitchy. Just a headache for skin upgrades and adding new features.

Hornstar 01-27-2008 02:44 AM

Thanks for the update, this hack has come in useful a few times recently when some members were experiencing problems on there account which was odd and this allowed me to solve it much easier.

JakeS 01-27-2008 07:26 AM

Thanks for update, will come in handy when I upgrade to 3.7 :)

projectego 01-27-2008 08:53 AM

[high]* projectego clicks install. :) Thanks![/high]

Namaless 01-27-2008 12:19 PM

But where found the link into member page?? I check image but this is vb 3.6.8 not vb 3.7.

Thanks!

jazde86 01-27-2008 12:53 PM

Huch, I've the link at the header in 3.6.5 two times...

First: http://forum.url.de/index.php?&log_out_admin_log_in_as_user=true
Second: http://forum.url.de/index.php?[sessionurl]&log_out_admin_log_in_as_user=true

dcpaq2xx 01-27-2008 01:50 PM

For some reason I am seeing two messages at the top of the screen saying "You are currently logged in as another user. Click here to log back into your account".

What would be causing this? Have I forgotten to remove something?

Thanks

Doug

dcpaq2xx 01-27-2008 02:08 PM

Well... I think I may have found the problem...

Following these instructions... ( I am running 3.6.7 PL1)

*****NOTE TO 3.6.0 - 3.6.6 USERS*****
This hack uses a hook that was not put into vB until version 3.6.6. You can follow the following steps to get this hack working on your forum.

Open file global.php

Find:
--------------------------------------------------------------------
if (!empty($db->explain))
--------------------------------------------------------------------

Place BEFORE:
--------------------------------------------------------------------
($hook = vBulletinHook::fetch_hook('global_setup_complete') ) ? eval($hook) : false;
--------------------------------------------------------------------
Save file.

Open file includes/xml/hooks_vbulletin.xml

Find:
--------------------------------------------------------------------
<hook>global_start</hook>
--------------------------------------------------------------------

Place BEFORE:
--------------------------------------------------------------------
<hook>global_setup_complete</hook>
--------------------------------------------------------------------
Save file.

I find that these entries are already existing in the files and create duplicate entries. Which is 'probably' the reason for getting two notices at the top of the page.

Doug

jazde86 01-27-2008 02:13 PM

Here not... one entry in the files, but two entries on top of the forums.

dcpaq2xx 01-27-2008 02:22 PM

I dont understand what your saying, can you elaborate a little more?

Thanks

Doug

Abe1 01-27-2008 04:04 PM

Quote:

Originally Posted by Seiyaboy (Post 1429718)
Are there any other major changes other than making this work for 3.7.0 as well? I'm staying with 3.6.7 and I intend to not want to do extra updates for a code that is already bug-less.

Just makes it easier to upgrade.
Quote:

Originally Posted by Namaless (Post 1430016)
But where found the link into member page?? I check image but this is vb 3.6.8 not vb 3.7.

Thanks!

Right next to edit user.
Quote:

Originally Posted by jazde86 (Post 1430037)
Huch, I've the link at the header in 3.6.5 two times...

First: http://forum.url.de/index.php?&log_out_admin_log_in_as_user=true
Second: http://forum.url.de/index.php?[sessionurl]&log_out_admin_log_in_as_user=true

Remove the current template edit.

Abe1 01-27-2008 04:07 PM

Quote:

Originally Posted by dcpaq2 (Post 1430091)
I dont understand what your saying, can you elaborate a little more?

Thanks

Doug

You have to REMOVE the current template edit in header. This hack does it automaticly now.

dcpaq2xx 01-27-2008 04:15 PM

Guys,

I had NO trouble what so ever with this hack until now. Why try to fix or change what is not broken? :rolleyes:

I have completely removed this hack. If I decide to reinstall I will stay with version 2 until this mess with version 3 can be fixed...

Doug

dcpaq2xx 01-27-2008 04:17 PM

Quote:

Originally Posted by Abe1 (Post 1430151)
You have to REMOVE the current template edit in header. This hack does it automaticly now.

I did remove it from the header. I followed the instructions as it says to do.

My decision still stands to keep this hack removed, until these things are cleared up and the instructions are drastically improved. Very misleading.

Doug

Abe1 01-27-2008 04:42 PM

Quote:

Originally Posted by dcpaq2 (Post 1430162)
I did remove it from the header. I followed the instructions as it says to do.

My decision still stands to keep this hack removed, until these things are cleared up and the instructions are drastically improved. Very misleading.

Doug

Can you please tell me what is not correct now? I'm not sure what you are having trouble with.

dcpaq2xx 01-27-2008 04:57 PM

I dont know what is not correct, All i know is that i get two notices up in the header area, and I no longer have the login as user link in the admin cp in the user edit area.

I uninstalled version two and followed the instructions exactly as it says in the notepad file called "Insructions vb3_6_x"

Doug

Abe1 01-27-2008 05:01 PM

Quote:

Originally Posted by dcpaq2 (Post 1430192)
I dont know what is not correct, All i know is that i get two notices up in the header area, and I no longer have the login as user link in the admin cp in the user edit area.

I uninstalled version two and followed the instructions exactly as it says in the notepad file called "Insructions vb3_6_x"

Doug

Not sure why the link is not in ACP but are you using another style that may have the template edit in it?

dcpaq2xx 01-27-2008 05:29 PM

No I use only one template.

Doug

Abe1 01-27-2008 10:29 PM

Quote:

Originally Posted by dcpaq2 (Post 1430218)
No I use only one template.

Doug

Any way I can test your ACP? No one else reporting the problem.

donal 01-27-2008 11:27 PM

A am getting the following error :

Code:

XML Error: not well-formed (invalid token) at Line 1

Abe1 01-27-2008 11:35 PM

Quote:

Originally Posted by donal (Post 1430440)
A am getting the following error :

Code:

XML Error: not well-formed (invalid token) at Line 1

When?

cassis2k 02-06-2008 05:27 AM

Thanks for the update ;)
CLICK INSTALL OK

Boofo 02-06-2008 06:32 AM

Abe, what will happen if you log in as a user that is currently on the site? And will this show up in the who's online when you are logged in as the user?

avsunforum 02-06-2008 04:01 PM

3.7.0 Beta 4 problem

Boofo 02-06-2008 04:16 PM

Quote:

Originally Posted by avsunforum (Post 1437480)
3.7.0 Beta 4 problem

And what is the problem?

Abe1 02-10-2008 09:50 PM

Quote:

Originally Posted by Boofo (Post 1437272)
Abe, what will happen if you log in as a user that is currently on the site? And will this show up in the who's online when you are logged in as the user?

vB will show YOU only that, that user is online. No-one else will see that. The record of that user being online does not exist.
Quote:

Originally Posted by avsunforum (Post 1437480)
3.7.0 Beta 4 problem

Thanks! Will try to fix it ASAP!

haha!!!!!!!!!!!!!!!! Any reason why you did not say WHAT is a problem?

Boofo 02-10-2008 10:13 PM

Quote:

Originally Posted by Abe1 (Post 1440392)
vB will show YOU only that, that user is online. No-one else will see that. The record of that user being online does not exist.

Great! One last question... what if that user is online at the same time? Like you go in as them before you realize they are online.

Abe1 02-11-2008 01:06 AM

Quote:

Originally Posted by Boofo (Post 1440402)
Great! One last question... what if that user is online at the same time? Like you go in as them before you realize they are online.

Will just be like normal.

Boofo 02-11-2008 01:26 AM

So no user would ever know you had used their account. Sounds good to me. ;)

Abe1 02-11-2008 01:29 AM

Quote:

Originally Posted by Boofo (Post 1440493)
So no user would ever know you had used their account. Sounds good to me. ;)

Correct. Just one thing, if you use read a thread and you use the database storage for marking threads as read, it will mark it as read. If you use the cookie option, you can read as many threads as you want and the user will not notice.

Boofo 02-11-2008 01:33 AM

I never thought about that. Do you have an option for it with this or is that the setting in the Admin CP that needs to be changed? I use the db way right now.


All times are GMT. The time now is 02:23 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.01427 seconds
  • Memory Usage 1,827KB
  • 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
  • (2)bbcode_code_printable
  • (17)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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