PDA

View Full Version : Administrative and Maintenance Tools - Admin Log In As User


Pages : [1] 2

Abe1
03 Aug 2006, 21:11
Admin Log In As User 3.0

PLEASE CLICK ON THIS LINK TO DOWNLOAD AND FOR SUPPORT FOR THIS HACK: http://www.vbulletin.org/forum/showthread.php?t=168819

Version 3.0 was created for both vb3.6 and vb3.7. I will no longer give support in this thread for this hack. Please click 'install' in the vb3.7 section for notifications about updates.

vphost
03 Aug 2006, 21:34
Does this record the IP of the Superadmin as well or will this be 'invisible'?

Will this list / add this user to the active user list?

Abe1
03 Aug 2006, 21:44
Does this record the IP of the Superadmin as well or will this be 'invisible'?

Will this list / add this user to the active user list?
It does not record you logging in. Also, others will not see you as online.

Scooterpig
04 Aug 2006, 00:01
Is it possible to change the color of the text or background for the logged in wording as per center pic please?

Abe1
04 Aug 2006, 00:32
Is it possible to change the color of the text or background for the logged in wording as per center pic please?
You can edit the template how ever you would like.

JakeS
04 Aug 2006, 07:19
Just to let you know you forgot to close a url tag in the header

currently is

<!-- Start Admin Log In As User -->
<if condition="$_REQUEST['admin_log_in_as_user'] OR $_COOKIE[COOKIE_PREFIX . 'admin_log_in_as_user']">
<div align="center" style="color: red; background-color: white; border: 1px solid black; padding:2px"><a href="$vboptions[forumhome].php$session?[sessionurl]&amp;log_out_admin_log_in_as_user=true">$vbphrase[admin_log_out_as_user]</div>
</if>
<!-- End Admin Log In As User -->


should be

<!-- Start Admin Log In As User -->
<if condition="$_REQUEST['admin_log_in_as_user'] OR $_COOKIE[COOKIE_PREFIX . 'admin_log_in_as_user']">
<div align="center" style="color: red; background-color: white; border: 1px solid black; padding:2px"><a href="$vboptions[forumhome].php$session?[sessionurl]&amp;log_out_admin_log_in_as_user=true">$vbphrase[admin_log_out_as_user]</a></div>
</if>
<!-- End Admin Log In As User -->

tinjon
04 Aug 2006, 14:35
for those who prefer "manual" way of doing things, here's an idea.

1. duplicate the 'adminstrator' group. don't format your title. just make it look like the registered user group. but give administrative permission.
2. register/make a new nick and put this under the newly created admin group.

so it will look as if there is no admin online because u will appear like any other user.

there you go. secret, undercover admin. ;)

Abe1
04 Aug 2006, 19:27
Just to let you know you forgot to close a url tag in the header

currently is

<!-- Start Admin Log In As User -->
<if condition="$_REQUEST['admin_log_in_as_user'] OR $_COOKIE[COOKIE_PREFIX . 'admin_log_in_as_user']">
<div align="center" style="color: red; background-color: white; border: 1px solid black; padding:2px"><a href="$vboptions[forumhome].php$session?[sessionurl]&amp;log_out_admin_log_in_as_user=true">$vbphrase[admin_log_out_as_user]</div>
</if>
<!-- End Admin Log In As User -->


should be

<!-- Start Admin Log In As User -->
<if condition="$_REQUEST['admin_log_in_as_user'] OR $_COOKIE[COOKIE_PREFIX . 'admin_log_in_as_user']">
<div align="center" style="color: red; background-color: white; border: 1px solid black; padding:2px"><a href="$vboptions[forumhome].php$session?[sessionurl]&amp;log_out_admin_log_in_as_user=true">$vbphrase[admin_log_out_as_user]</a></div>
</if>
<!-- End Admin Log In As User -->
Thanks. I updated the zip file.

Abe1
04 Aug 2006, 19:28
for those who prefer "manual" way of doing things, here's an idea.

1. duplicate the 'adminstrator' group. don't format your title. just make it look like the registered user group. but give administrative permission.
2. register/make a new nick and put this under the newly created admin group.

so it will look as if there is no admin online because u will appear like any other user.

there you go. secret, undercover admin. ;)
What if you want to test a users account because they are compalining about something. What is your 'manual' way?

tinjon
05 Aug 2006, 01:04
What if you want to test a users account because they are compalining about something. What is your 'manual' way? move the account to registered user group temporarily.

xug
05 Aug 2006, 01:59
When I jump on my test board into the admin panel and want to add a new (test) user I get the following error:

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

This is a clean vB3.6.0 fresh install, no hacks, no addons, this is the first one

Abe1
06 Aug 2006, 01:47
When I jump on my test board into the admin panel and want to add a new (test) user I get the following error:

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

This is a clean vB3.6.0 fresh install, no hacks, no addons, this is the first one
I'll look into this. Other users had reported this in last version but I was unable to re-produce. If you have any more info on this bug, please post it.

TomJames
08 Aug 2006, 05:10
I will be installing this tomorrow, great idea, I often have the problem of members not knowing how to do something, so this will help lots.

Great hack.

Stoebi
10 Aug 2006, 19:30
I'll look into this. Other users had reported this in last version but I was unable to re-produce. If you have any more info on this bug, please post it.

Hi,

it happens with php 5 (here 5.1.1) installed. I've read the function array_merge() goes another way, but which?



Regards, Stoebi

Bydigi
11 Aug 2006, 08:26
@abe1; Thanks :)

Abe1
11 Aug 2006, 17:09
Hi,

it happens with php 5 (here 5.1.1) installed. I've read the function array_merge() goes another way, but which?



Regards, Stoebi
Thanks for the tip. I'll see what I can find.

ktp101
18 Aug 2006, 19:52
installed, thanks :)

Stoebi
19 Aug 2006, 18:52
Thanks for the tip. I'll see what I can find.

Working with php4/php5:
Replace the content of the hook useradmin_edit_start with:

if (in_array($vbulletin->userinfo[userid], preg_split('#\s*,\s*#s', $vbulletin->config['SpecialUsers']['superadministrators'], -1, PREG_SPLIT_NO_EMPTY)))
{
if (!is_array($quicklinks))
{
$quicklinks = array();
}
$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'],));
}




Regards, Stoebi

whitetigergrowl
19 Aug 2006, 19:52
LOL Wow I can see this one getting abused more than a $2 hooker.

jibious
20 Aug 2006, 00:03
LOL Wow I can see this one getting abused more than a $2 hooker.
If an admin knows anything about their SQL database, then you'd already be able to 'abuse' it in the most extreme method - without no one EVER knowing.

whitetigergrowl
21 Aug 2006, 05:19
If an admin knows anything about their SQL database, then you'd already be able to 'abuse' it in the most extreme method - without no one EVER knowing.

Luckily alot of them dont. ;)

haddockman
24 Aug 2006, 06:52
LOL Wow I can see this one getting abused more than a $2 hooker.

Together with the Read PMs hack I feel like George Orwell in 1984! :D

Thanks again for this hack, Abe1 :)

Ninth Dimension
25 Aug 2006, 19:41
Nice hack, thank you very much, although I think there is a problem with it.

When I log in as a user, and try to view someone elses member profile page, it only shows the page of the person you're logged into. I realise this might not be the most important thing that needs fixing, but I figured I'd let you know anyway.

/installed

Oh, and one more thing, I don't know if this is important or not, but the link you click to log back in as yourself looks like this: index.php?[sessionurl]&log_out_admin_log_in_as_user=true (note: [sessionurl]). It still works as it's meant to (I think), but this didn't look right.

Abe1
25 Aug 2006, 19:59
Nice hack, thank you very much, although I think there is a problem with it.

When I log in as a user, and try to view someone elses member profile page, it only shows the page of the person you're logged into. I realise this might not be the most important thing that needs fixing, but I figured I'd let you know anyway.

/installed

Oh, and one more thing, I don't know if this is important or not, but the link you click to log back in as yourself looks like this: index.php?[sessionurl]&log_out_admin_log_in_as_user=true (note: [sessionurl]). It still works as it's meant to (I think), but this didn't look right.
I know about the sessionurl problem. I keep forgetting to fix that.

I'm not sure I understand the first problem.

Stoebi
25 Aug 2006, 20:09
I know about the sessionurl problem. I keep forgetting to fix that.

I'm not sure I understand the first problem.

Hi,

thx Abe1 for a new update, but i can't find any changes. :(


Regards, Stoebi

Abe1
25 Aug 2006, 20:22
Hi,

thx Abe1 for a new update, but i can't find any changes. :(


Regards, Stoebi
One one released today? I only update the zip with the aml file having the version check url.

Ninth Dimension
25 Aug 2006, 21:17
I'm not sure I understand the first problem.

OK, well I've just had another look, and what I said was not totally correct anyway.

If I log in as one of my members, then view their profile page (say http://theice.co.uk/member.php?u=77 for example), then it'll show their info. But if I view my own profile page while logged in as one of my members (in this case http://theice.co.uk/member.php?u=1), rather than showing my info, it shows the info of the person I'm logged in as.

Anyway, I don't supose its all that important, I thought I'd just let you know.

Oh, and if you fix the [sessionid] thing, let me know (or have you already? and if so, do you just import the product and overwrite?)

Abe1
27 Aug 2006, 01:17
OK, well I've just had another look, and what I said was not totally correct anyway.

If I log in as one of my members, then view their profile page (say http://theice.co.uk/member.php?u=77 for example), then it'll show their info. But if I view my own profile page while logged in as one of my members (in this case http://theice.co.uk/member.php?u=1), rather than showing my info, it shows the info of the person I'm logged in as.

Anyway, I don't supose its all that important, I thought I'd just let you know.

Oh, and if you fix the [sessionid] thing, let me know (or have you already? and if so, do you just import the product and overwrite?)
just add a '$' before '[sessionid]'

Stoebi
27 Aug 2006, 02:29
just add a '$' before '[sessionid]'

Hi

Where i can find sessionid, because i didn't find the word sessionid in Instructions.txt and product-abe1_admin_log_as_user.xml, only sessionurl?

Regards, Stoebi

Abe1
27 Aug 2006, 02:59
Hi

Where i can find sessionid, because i didn't find the word sessionid in Instructions.txt and product-abe1_admin_log_as_user.xml, only sessionurl?

Regards, Stoebi
One of the teplate edits.

Stoebi
27 Aug 2006, 03:06
One of the teplate edits.

Sorry Abe1

Admin Log In As User version 2.0

FOR UPGRADE AND FRESH INSTALLATIONS!

1) Import product-abe1_admin_log_as_user.xml into PRODUCTS. Allow Overwrite "YES" (admincp -> Plugin System -> Manage Products -> [Add/Import Product])

2) Do the template edits

in header:

find:
--------------------------------------------------------------------
<!-- logo -->
--------------------------------------------------------------------

BEFORE place this:
--------------------------------------------------------------------
<!-- Start Admin Log In As User -->
<if condition="$_REQUEST['admin_log_in_as_user'] OR $_COOKIE[COOKIE_PREFIX . 'admin_log_in_as_user']">
<div align="center" style="color: red; background-color: white; border: 1px solid black; padding:2px"><a href="$vboptions[forumhome].php$session?[sessionurl]&amp;log_out_admin_log_in_as_user=true">$vbphrase[admin_log_out_as_user]</a></div>
</if>
<!-- End Admin Log In As User -->
--------------------------------------------------------------------



in MEMBERINFO:

find:
--------------------------------------------------------------------
<td class="vbmenu_control"><a href="infraction.php?$session[sessionurl]do=report&amp;u=$userinfo[userid]">$vbphrase[give_infraction]</a></td>
--------------------------------------------------------------------

AFTER place this:
--------------------------------------------------------------------
<!-- Start Admin Log In As User -->
</if>
<if condition="$show_admin_log_as_user_link">
<td class="vbmenu_control"><a href="$vboptions[forumhome].php?$session[sessionurl]u=$userinfo[userid]&amp;admin_log_in_as_user=$userinfo[userid]">$vbphrase[log_in_as_user]</a></td>
<!-- End Admin Log In As User -->
--------------------------------------------------------------------

Done.

None sessionid :(


Regards, Stoebi

Abe1
27 Aug 2006, 03:15
sorry, sessionurl in the header.

Stoebi
27 Aug 2006, 05:00
sorry, sessionurl in the header.

Thx a lot Abe1 :)


When I log in as a user, and try to view someone elses member profile page, it only shows the page of the person you're logged into. I realise this might not be the most important thing that needs fixing, but I figured I'd let you know anyway.

I can't reproduce it. I've logged in as testuser for example and i can see the member profile page from the other registered user (blabla, stoebi, tester) on my test forum.

Edit:
I can reproduce it only if i want to see the profile pages from admins.

For example:
Webmaster = Admin
Webmaster logged in as Stoebi
As Stoebi i want to see the profile page from me (Webmaster), and i see my own profile page (Stoebi not the page from Webmaster)

Another example:
Stoebi is now Superadministrator and is logged in as user blabla, but as user blabla now i can't view the profile page from Stoebi and Webmaster.
I see my own profile page (blabla)


Regards, Stoebi

Abe1
27 Aug 2006, 13:11
Thx a lot Abe1 :)



I can't reproduce it. I've logged in as testuser for example and i can see the member profile page from the other registered user (blabla, stoebi, tester) on my test forum.

Edit:
I can reproduce it only if i want to see the profile pages from admins.

For example:
Webmaster = Admin
Webmaster logged in as Stoebi
As Stoebi i want to see the profile page from me (Webmaster), and i see my own profile page (Stoebi not the page from Webmaster)

Another example:
Stoebi is now Superadministrator and is logged in as user blabla, but as user blabla now i can't view the profile page from Stoebi and Webmaster.
I see my own profile page (blabla)


Regards, Stoebi
Do you need to log in as another user just to see your profile page?

Ninth Dimension
27 Aug 2006, 13:30
I've tred adding a $ to the start of [sessionurl], but it then just shows $[sessionurl] in the URL. Are you sure it's not meant to be something like $something[sessionurl], maybe $_SESSION[sessionurl] or something like that?

Stoebi
27 Aug 2006, 14:21
Do you need to log in as another user just to see your profile page?

You need to logged in as Abe1 for example to your ACP.
Then log in as another User, for example Testuser and try to look at your (Abe1) profile.


I've tred adding a $ to the start of [sessionurl], but it then just shows $[sessionurl] in the URL. Are you sure it's not meant to be something like $something[sessionurl], maybe $_SESSION[sessionurl] or something like that?

My HEADER, it works fine now:
find:
--------------------------------------------------------------------
<!-- logo -->
--------------------------------------------------------------------

BEFORE place this:
--------------------------------------------------------------------
<!-- Start Admin Log In As User -->
<if condition="$_REQUEST['admin_log_in_as_user'] OR $_COOKIE[COOKIE_PREFIX . 'admin_log_in_as_user']">
<div align="center" style="color: red; background-color: white; border: 1px solid black; padding:2px"><a href="$vboptions[forumhome].php?$session[sessionurl]log_out_admin_log_in_as_user=true">$vbphrase[admin_log_out_as_user]</a></div>
</if>
<!-- End Admin Log In As User -->
--------------------------------------------------------------------



Regards, Stoebi

Ninth Dimension
27 Aug 2006, 15:00
Stoebi, much better, thank you :)

darksoulz
28 Aug 2006, 16:47
I'm not sure what's not working right, but in our case when you click the link to login as a different user, we get the header line saying we are logged in as the other user and click to log back in to our account. But everything else is showing up like we're not logged in at all most of the time. It seems to randomly show it as logged in as that user sometimes, but most of the time not. The only thing I can think of is maybe a conflict with another addon? Cant think of what it could be though.

PassLab.net
30 Aug 2006, 23:03
perfect, installed

redlabour
31 Aug 2006, 07:26
It does still not work - and i have updated today. I can use a other Account but if i click on "Private Messages" the System wants me to log in. :/

Stoebi
31 Aug 2006, 08:13
It does still not work - and i have updated today. I can use a other Account but if i click on "Private Messages" the System wants me to log in. :/

I can't reproduce it, tested with php 4 and php 5. Cookies are cleared before testing? It sometimes helps with such strange behavior.


Regards, Stoebi

redlabour
31 Aug 2006, 13:49
I can't reproduce it, tested with php 4 and php 5. Cookies are cleared before testing? It sometimes helps with such strange behavior.


Regards, Stoebi

Yes, Problem appears with IE6 and IE7 and FF.

And as is see now it allways happens and not only after klicking on the PM.

NeonG
31 Aug 2006, 20:55
Can Admins see the Links (like "Login as X) ?

The-Ensemble
16 Sep 2006, 20:43
Does this give you free reign in their account? so you can use their account post, read pm etc?

Abe1
17 Sep 2006, 03:59
Can Admins see the Links (like "Login as X) ?
Only super admins.

Abe1
17 Sep 2006, 03:59
Does this give you free reign in their account? so you can use their account post, read pm etc?
Full access to their account. The ACP will still be your account though.

teenhut
27 Sep 2006, 17:45
Is there any option that when making posts from one of member's account(I logged into as), it uses that person's ip rather than mine?

Abe1
27 Sep 2006, 19:54
Is there any option that when making posts from one of member's account(I logged into as), it uses that person's ip rather than mine?
What IP address would that be then? A user can have a tun.

mojo8850
01 Oct 2006, 15:33
What if you want to test a users account because they are compalining about something. What is your 'manual' way?


Well I Suppose He Never Thought Of That Then Has He.. LOL

question?
01 Oct 2006, 18:19
The file you have uploaded is not a valid module file.

Limerick
01 Oct 2006, 18:43
The file you have uploaded is not a valid module file.

You're right, it's because it's a product and not a module :D ;)

twobob
15 Oct 2006, 06:00
Hi Guys. Does this work with vB 3.6.2? Thanks, twobob

Shazz
15 Oct 2006, 06:44
Hi Guys. Does this work with vB 3.6.2? Thanks, twobob
Worked fine on my Test site

twobob
15 Oct 2006, 07:07
Awesome MOD! Thanks!

JamieLee2k
21 Oct 2006, 21:20
I can't seem to get this working for my other admins to use, I have been reading and you said about superadmins being the only access yet 1 of my admins and myself can see it, yet others can't so I don't know whats wrong, is it possible to have it so all admins can use it

Abe1
21 Oct 2006, 23:45
I can't seem to get this working for my other admins to use, I have been reading and you said about superadmins being the only access yet 1 of my admins and myself can see it, yet others can't so I don't know whats wrong, is it possible to have it so all admins can use it
Super admins are set in the config file.

JamieLee2k
22 Oct 2006, 14:49
Call me thick but I ain't got a clue what you are on about by Super Admins, do I create a usergroup called superadministrators or change the config file, or what

Abe1
22 Oct 2006, 19:18
Go look at the bottom of your vb config file. there is an option about super admins.

tester559
23 Oct 2006, 19:02
Excellent addition :)

Am I correct in saying that only admins will have the log in as user option shown in the member profile? any other user will not see this.

Stu

Abe1
24 Oct 2006, 00:45
Excellent addition :)

Am I correct in saying that only admins will have the log in as user option shown in the member profile? any other user will not see this.

Stu
Yes.

Luggruff
24 Oct 2006, 03:45
strange, same as with CYB's hack.. I'm userID 2.. I'm in the config:
// ****** SUPER ADMINISTRATORS ******
// The users specified below will have permission to access the administrator permissions
// page, which controls the permissions of other administrators
$config['SpecialUsers']['superadministrators'] = '1, 2';

..still, only the guy with UserID 1 can view this.. and It's getting seriouslt agitating! o_0

Abe1
24 Oct 2006, 04:57
strange, same as with CYB's hack.. I'm userID 2.. I'm in the config:
// ****** SUPER ADMINISTRATORS ******
// The users specified below will have permission to access the administrator permissions
// page, which controls the permissions of other administrators
$config['SpecialUsers']['superadministrators'] = '1, 2';

..still, only the guy with UserID 1 can view this.. and It's getting seriouslt agitating! o_0
get rid of the space. should be '1,2'

Luggruff
24 Oct 2006, 11:05
get rid of the space. should be '1,2'

Allready tried that, sorry =\

Luggruff
24 Oct 2006, 20:04
Ok seriously, now I feel dumb. I've been trying to edit a config.php file located in the wrong folder. ha!

Now it works fine, only that when I log onto a user that is offline, I can see him/her as online in "who's online" ..am I alone or can everyone else see the user as online too?

JoshHighland
24 Oct 2006, 23:03
question.. if I log in as a user then read their private messages, when they come in, will it show their PM's as read?

Abe1
24 Oct 2006, 23:14
Ok seriously, now I feel dumb. I've been trying to edit a config.php file located in the wrong folder. ha!

Now it works fine, only that when I log onto a user that is offline, I can see him/her as online in "who's online" ..am I alone or can everyone else see the user as online too?
Only you can see that he is online. No one else can see you online. Go look in the users profile. It will show them offline.

Abe1
24 Oct 2006, 23:14
question.. if I log in as a user then read their private messages, when they come in, will it show their PM's as read?
You have to mark them as unread.

Luggruff
25 Oct 2006, 07:56
Only you can see that he is online. No one else can see you online. Go look in the users profile. It will show them offline.
sweet<3duude!

Luke Brown256
25 Oct 2006, 13:59
Hi abe with your hack i saw that:


unset($vbulletin->db->shutdownqueries['lastvisit']);


That will stop the users last visit information being updated when the admin logs in.

But where in your code does it stop the user from being displayed in who is online?

Luke

Abe1
26 Oct 2006, 03:12
Hi abe with your hack i saw that:


unset($vbulletin->db->shutdownqueries['lastvisit']);


That will stop the users last visit information being updated when the admin logs in.

But where in your code does it stop the user from being displayed in who is online?

Luke
If the visit info is not updated, then they wont show up online.

try this

Open 2 diff browsers.

In one log in as your self

In the other, log in to an off line user using this hack.

Use the other browser to look at who is online. You will see that the user you just logged in as is not online. Also, you will notice that his last log-in time did not change.

Abe1
26 Oct 2006, 03:14
Also, you can go into debug mode and look at all the queries that are run when you are logged in as that user. There are NO update or insert queries that run. Only queries that select info from the database.

tank14
30 Oct 2006, 00:55
Great idea doens't work for me though. It just says at the top I am loged in as another user but in the box of pms it still has my name. Then I lcik another page and the little bar at the top disapears. I dont know what is wrong =(

Abe1
30 Oct 2006, 02:06
Great idea doens't work for me though. It just says at the top I am loged in as another user but in the box of pms it still has my name. Then I lcik another page and the little bar at the top disapears. I dont know what is wrong =(
Do you have cookies enabled?

tank14
30 Oct 2006, 19:28
Do you have cookies enabled?
It would not work with vBulletin without it...

tank14
30 Oct 2006, 19:32
in other words yes. I want this so work so badly.

Luggruff
02 Nov 2006, 14:23
Has this been brought up?

..When loggin in to another user and I'm trying to view my own profile (My ADMIN account's profile) ..I just turn up at the user I'm logged on to's profile =\

Abe1
03 Nov 2006, 03:36
Has this been brought up?

..When loggin in to another user and I'm trying to view my own profile (My ADMIN account's profile) ..I just turn up at the user I'm logged on to's profile =\
Yes. I dont plan on trying to fix this since I don't believe its a big issue.

RedTurtle
10 Nov 2006, 09:47
It seems to not work on 3.6.3 ... worked on the previous versions though. Has anyone else had this problem?

Thanks.

49er
10 Nov 2006, 19:37
It seems to not work on 3.6.3 ... worked on the previous versions though. Has anyone else had this problem?

Thanks.
Same here after downloading it.. :surprised:

exilera
11 Nov 2006, 18:12
Really doesn't work with 3.6.3?

HansMuenchen
11 Nov 2006, 18:43
Really doesn't work with 3.6.3?

Here for me it works!

Greetings out of Munich
Hans

Abe1
12 Nov 2006, 05:27
It seems to not work on 3.6.3 ... worked on the previous versions though. Has anyone else had this problem?

Thanks.
Just tested it on my forum at it works. Can you give me more details?

angeldevil
12 Nov 2006, 07:47
how use it? help me!!!

49er
12 Nov 2006, 23:03
Just tested it on my forum at it works. Can you give me more details?

Version 3.6.3 Cant, get it to work? What details do you require. :)

PossumX
13 Nov 2006, 00:34
This mod rocks. Now I can validate user complaints of issues as them and eithe rule in or rule out board based issues (obviously testing on multiple browsers, across multiple machines)

Abe1
13 Nov 2006, 05:14
Version 3.6.3 Cant, get it to work? What details do you require. :)
What doesn't work? When you click to login, the button, so on.

Luggruff
13 Nov 2006, 08:23
This mod rocks. Now I can validate user complaints of issues as them and eithe rule in or rule out board based issues (obviously testing on multiple browsers, across multiple machines)

test different browsers by logging on to another user? No.
If you use firefox, and you log on to a user that usually uses internet explorer, the fact that you are using firefox does not change -_-
If you want to test it in IE, you'll need to open IE and go to your forum.

MediaHound
14 Nov 2006, 17:18
This mod rocks. Now I can validate user complaints of issues as them and eithe rule in or rule out board based issues (obviously testing on multiple browsers, across multiple machines)

Make sure you ask them if they use WebTV.
WebTV and vBulletin are not good friends anymore.

49er
14 Nov 2006, 17:23
What doesn't work? When you click to login, the button, so on.

There is no icon in the profile to go to the members account! :surprised:

I have a site on 3.6.2 and works ok on here, just on 3.6.3 that i don't have it.

RedTurtle
14 Nov 2006, 18:11
There is no icon in the profile to go to the members account! :surprised:

I have a site on 3.6.2 and works ok on here, just on 3.6.3 that i don't have it.
I'm having the exact same problem. Worked fine on 3.6.2 but when I upgraded to 3.6.3 I no longer see a link in the Member Profile to Log In As [username].

I made sure to copy over the code from my 3.6.2 template too. Still no go.

MediaHound
14 Nov 2006, 19:37
I get this malformed link at the top when logged in as another user:
http://www.example.com/index.php?[sessionurl]&log_out_admin_log_in_as_user=true

should not "sessionurl" be parsed into some session hash?

Abe1
15 Nov 2006, 05:06
I get this malformed link at the top when logged in as another user:
http://www.example.com/index.php?[sessionurl]&log_out_admin_log_in_as_user=true

should not "sessionurl" be parsed into some session hash?
This was fixed a log time ago. Make sure your template edits are up to date.

Abe1
15 Nov 2006, 05:06
I'm having the exact same problem. Worked fine on 3.6.2 but when I upgraded to 3.6.3 I no longer see a link in the Member Profile to Log In As [username].

I made sure to copy over the code from my 3.6.2 template too. Still no go.
If you make the template edits I dont know why it wont show. Are you still a super admin?

RedTurtle
15 Nov 2006, 13:54
Yep, I'm a super admin. Let me try completely removing and adding it again.

RedTurtle
15 Nov 2006, 14:08
Doh. I'm sorry -- I'm an idiot. I forgot I changed my config.php when I upgraded and was no longer a super admin.

Changed that and its working again -- thanks Abe!

MediaHound
19 Nov 2006, 01:29
This was fixed a log time ago. Make sure your template edits are up to date.

It's a totally new installation.
Have you fixed the distro or is it buried in some of these pages on the thread?
Thanks!

Abe1
19 Nov 2006, 12:47
It's a totally new installation.
Have you fixed the distro or is it buried in some of these pages on the thread?
Thanks!
They are the regular template edits.

MediaHound
19 Nov 2006, 13:57
They are the regular template edits.

So when you say "this was fixed a long time ago" in the other post,
what was wrong with it the first time around?

The template edit is just pasting some new info before the logo, its a piece of cake. I didn't screw that up.

But when I 'm logged in as another user, that link has no session url parsed out, its just [sessionurl] in brackets.
It really doesn't matter, it doesn't break anything, and the link still gets me logged out of that user just fine.
Although, I wonder, what was wrong with it the first time around and how was it resolved?

Abe1
21 Nov 2006, 00:51
So when you say "this was fixed a long time ago" in the other post,
what was wrong with it the first time around?

The template edit is just pasting some new info before the logo, its a piece of cake. I didn't screw that up.

But when I 'm logged in as another user, that link has no session url parsed out, its just [sessionurl] in brackets.
It really doesn't matter, it doesn't break anything, and the link still gets me logged out of that user just fine.
Although, I wonder, what was wrong with it the first time around and how was it resolved?
I think I added the $ to parse the variable.

mikeylikesitz
24 Nov 2006, 16:02
gret hack, Installed!

Qwest
27 Nov 2006, 04:08
excellent hack.

I just used it to fix a problem on my boards worked perfectly. Easy click use.

installed.

rossdagley
29 Nov 2006, 10:39
Working perfectly here. Thanks for providing your time to make this free of charge :)

mauro1947
29 Nov 2006, 12:59
Hi!
Does this mod works on vBulletin 3.6.4?
Someone probes?
Thanks!!
Bye!

Abe1
03 Dec 2006, 21:30
Hi!
Does this mod works on vBulletin 3.6.4?
Someone probes?
Thanks!!
Bye!
Works fine.

mauro1947
04 Dec 2006, 11:12
Hi!
A lot of thanks.
When i can, i will install
Thanks
Bye!

begore
04 Dec 2006, 15:00
Brilliant, perfect for problem solving.

Installed!

taxick
06 Dec 2006, 16:17
Hey..

Nice Hack - Love it :D

I have fund are bug :)

When i Add are new user, vir AdminCP -> Users -> Add New User i get this error on the top

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

Can you fix this problem :)

Sorry for my bad english

taxick
21 Dec 2006, 11:50
HMM????

blind-eddie
21 Dec 2006, 12:53
Great Hack, this is much better then the other log in as user hack I was using, Thanks....

Battle_Ring
21 Dec 2006, 16:45
not workign for me i did the template edits and uploaded the product file and theres nothing anywhere about logging in as user

blind-eddie
21 Dec 2006, 21:39
Go to your member list , look on the right side of page. You will see Log in as user next to add ----name---- to ignor list...also in your admin cp go to users, look up any member...above their name on their page in admincp where you edit their privlages, click on the drop down, at the very bottem is log in as user....while logged in as user look above your header...you will then see "you are logged in as another user, click here to log back into your account".....good luck

Every thing I just said is in the screen shots above

Abe1
24 Dec 2006, 13:02
not workign for me i did the template edits and uploaded the product file and theres nothing anywhere about logging in as user
Make sure you set your self as a super admin.

Mattikana
24 Dec 2006, 13:19
typo in description:
a low -> allow

aj8690
25 Dec 2006, 05:46
Hi guys. I really like this, thanks a lot!

But I'm having a little trouble with it. When I log in as a user and go to view their PMs or to their CP, it will ask me for a user name and password as if I don;t have permission. It only does this about half of the time though. Maybe someone knows what the problem is?

My site url is www.PureTalkForum.com

Thanks.

AJ

winpro19
27 Dec 2006, 03:29
Hey
Great useful hack!

Any fixes to this error though yet? When you add new user..
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in \admincp\user.php(464) : eval()'d code on line 9

Brew
31 Dec 2006, 04:28
I love mods like this.

Quick, easy....works flawlessly...

Good job :banana:

ps. I am using vb3.6.4

Frimon86
02 Jan 2007, 22:33
Nice mod but why do you have to be a super admin to use it?

mackers8923
08 Jan 2007, 04:00
When I use this mod and login as a user, I show up as online with that users username! Can anyone view this?

KURTZ
08 Jan 2007, 04:08
i use the Cyb's Hack (http://www.vbulletin.org/forum/showthread.php?t=122989&page=1&pp=15) (it's very similar but newest than yours) and runs without any problem ...

Abe1
11 Jan 2007, 00:45
When I use this mod and login as a user, I show up as online with that users username! Can anyone view this?
Only you see your self online. No-one else sees you online. Go to the uses profile and you will see that the user shows up and not signed on and has not signed on since THEIR last time.

TheFrienzNet
12 Jan 2007, 17:03
Wow thanks.

Takamine334
15 Jan 2007, 18:45
Hey, very cool add-on! Thank you abe1 :)

dennysperez
16 Jan 2007, 16:42
This is not working for me on v3.6.3. When I click the option "Log in as this user" on the user management page, in my admin cp, I just get a login window to my forum. I enter my login info, but it doesn't take it. :( I would really appreciate how to fix this, since I'm having some issues with a mod that I need to correct.

Abe1
16 Jan 2007, 17:02
I would have to check on your forum. I dont know why. It should work. Are you using a diff url then you have set in you acp?

Comp
16 Jan 2007, 20:34
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /admincp/user.php(464) : eval()'d code on line 9


I have this problem .. What can I do ?

Abe1
16 Jan 2007, 20:59
I have this problem .. What can I do ?
Problem with PHP5. I have to come up with a new version to fix it.

Spank
01 Feb 2007, 17:46
Great hack, I can see this coming in useful if a member reports something wrong we can check if it's there user account. Of course we'd never dream of using this to play nasty jokes. =D

One issue though if I login as Member A and then click on my Admin username it takes me to Member A's profile. Probably won't cause a problem, just thought I'd let you know.

StrifeX
01 Feb 2007, 21:14
Looking good, an extremely similar version of Cyb's login as user then right? :)

Abe1
02 Feb 2007, 02:42
Great hack, I can see this coming in useful if a member reports something wrong we can check if it's there user account. Of course we'd never dream of using this to play nasty jokes. =D

One issue though if I login as Member A and then click on my Admin username it takes me to Member A's profile. Probably won't cause a problem, just thought I'd let you know.
I know about that. Didn't think it was worth trying to fix.

Abe1
02 Feb 2007, 02:44
Looking good, an extremely similar version of Cyb's login as user then right? :)
I think I released this first. Also, I think there is a little more security here.

Nathan2006
02 Feb 2007, 08:44
Thank you for the 3.6x update Abe :)

Install

rnmcd
05 Feb 2007, 14:11
So, is it possible that the actual user will notice that someone else logged into their account?

Abe1
12 Feb 2007, 13:09
So, is it possible that the actual user will notice that someone else logged into their account?
No.

princeedward
12 Feb 2007, 20:59
clicked install bro....great hack... thanks for this... ;)

bagfullofrice
05 Mar 2007, 21:56
For some reason this mod doesn't work for me. I've added the template modifications, and I've installed the product, with overwrite on. The option to login as a user is just not there. :(

Deimos
05 Mar 2007, 22:25
I'm getting the same thing, I think it's since the upgrade to the latest version of VB

Abe1
05 Mar 2007, 22:45
You have to make sure you are a super admin. Check your config file.

blind-eddie
06 Mar 2007, 03:26
oops

JakeS
06 Mar 2007, 10:45
Anyone else get this after installing hack and going to add new user?

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

Because it appears to be this mod which is causing this for me.

Abe1
06 Mar 2007, 12:10
Anyone else get this after installing hack and going to add new user?

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

Because it appears to be this mod which is causing this for me.
This is because you have PHP5. I keep forgetting to release an update. I'll try ASAP.

JakeS
06 Mar 2007, 12:13
This is because you have PHP5. I keep forgetting to release an update. I'll try ASAP.:eek: how did you know I had php 5.2.0?

Abe1
06 Mar 2007, 12:46
:eek: how did you know I had php 5.2.0?
Your not the first with this problem.

drew010
07 Mar 2007, 09:55
i found this one bug by accident, but if i log in as a user and then delete them from the admin cp, if i go back to the forum without logging out everything is backwards (right to left reading) and lots of things don't show up. no big deal but just thought id post it. not sure if this was mentioned earlier, if so sorry, i just read the last few pages.

Abe1
07 Mar 2007, 14:08
i found this one bug by accident, but if i log in as a user and then delete them from the admin cp, if i go back to the forum without logging out everything is backwards (right to left reading) and lots of things don't show up. no big deal but just thought id post it. not sure if this was mentioned earlier, if so sorry, i just read the last few pages.
Is it really worth trying to fix??

Does it effect anything really in the long run?

JakeS
13 Mar 2007, 09:27
This is because you have PHP5. I keep forgetting to release an update. I'll try ASAP.You remembered yet :D?

Distance
13 Mar 2007, 10:50
I had to recently downgrade my php back to 4.4.4

causing lots of problems.


Is this usual behaviour.. I am logged in as another user, i browse to a page but when i click log back in as admin it taks me back to index.php with

index.php?[sessionurl]&log_out_admin_log_in_as_user=true at the end of my domain in the URL bar.

Josh

Abe1
13 Mar 2007, 13:27
I had to recently downgrade my php back to 4.4.4

causing lots of problems.


Is this usual behaviour.. I am logged in as another user, i browse to a page but when i click log back in as admin it taks me back to index.php with

index.php?[sessionurl]&log_out_admin_log_in_as_user=true at the end of my domain in the URL bar.

Josh
wont effect anything.

Black Tiger
14 Mar 2007, 17:44
Ah nice, I had used such hack in 3.0.x and I'm glad you made it for 3.6.x too, thanks!

groeken
17 Mar 2007, 23:13
Hello Abe1,
i've got a question to your great mod.
Well, I want to use this hack for support issues like 'i cant change my signature" or "there is no link, really". I thought it would be great if I or a other admin could see what the user see.
So I made some changes in the php-code (i hope it's okay?) to allow the user group "admins" to use the mod.

Now I've got a question. In Germany their are so many laws... their forbid a lot of things like to dirsturb the privacy of other poeple.. When i want to use the Hack as a support-feature i need something like agreement with the user that allows a admin to use the mod.

So my idea was to change the link in the memberinfo and in the ACP user profile to "Get Authorization".. When the admin uses this link the user will get a question at the top of the forum where he allows the admin to use the hack. After the user give his agreement in the ACP the link will change from "Get Authorization" to "log in as user".. maybe their could else be a little info at the ACP start-page.

I know their are a few changes needed to realize it, but would it be possible to realize it with your hack?

groeken

Abe1
18 Mar 2007, 00:43
Hello Abe1,
i've got a question to your great mod.
Well, I want to use this hack for support issues like 'i cant change my signature" or "there is no link, really". I thought it would be great if I or a other admin could see what the user see.
So I made some changes in the php-code (i hope it's okay?) to allow the user group "admins" to use the mod.

Now I've got a question. In Germany their are so many laws... their forbid a lot of things like to dirsturb the privacy of other poeple.. When i want to use the Hack as a support-feature i need something like agreement with the user that allows a admin to use the mod.

So my idea was to change the link in the memberinfo and in the ACP user profile to "Get Authorization".. When the admin uses this link the user will get a question at the top of the forum where he allows the admin to use the hack. After the user give his agreement in the ACP the link will change from "Get Authorization" to "log in as user".. maybe their could else be a little info at the ACP start-page.

I know their are a few changes needed to realize it, but would it be possible to realize it with your hack?

groeken
I'll think about it.

Za4a Tuner
30 Mar 2007, 18:13
I want to use this hack for support issues like 'i cant change my signature" or "there is no link, really".
Now I've got a question. In Germany their are so many laws... their forbid a lot of things like to dirsturb the privacy of other poeple.. When i want to use the Hack as a support-feature i need something like agreement with the user that allows a admin to use the mod.
Why do it by so a hard way?
Ask the User for his password -> log in with the correct password -> and if evrything is done ... send a pn to the user to change his password.


another question to this "law-problem"
What's about an option, wich will send a PN to the user, that an admin has logged into his account?
for example (A -> Admin / U -> User)
A loge into the account of U =>
nothing will happen =>
A log out -> send a PN to U ==> A has logged into your account
Can this be realized? Maybe with an option to set this option ON or OFF?

Doctor Death
01 Apr 2007, 22:41
What a great mod, works perfectly.

foulplay
04 Apr 2007, 09:33
Any Fix yet for PHP5?? Those arrays keep coming up when trying to add new users.

Abe1
06 Apr 2007, 15:16
Version 2.1 (04/06/07):

Fixed header template edit.
array_merge problem for php5 users fixed

aj8690
06 Apr 2007, 15:23
Thanks for the update. :)

RS_Jelle
06 Apr 2007, 15:35
Nice update :)

Maybe a suggestion for a future release: don't show the login link in your own profile.

BANDiT600
06 Apr 2007, 15:52
Version 2.1 (04/06/07):
array_merge problem for php5 users fixed

What was the problem, could you explain lil' bit more?

Abe1
06 Apr 2007, 15:58
What was the problem, could you explain lil' bit more?
Some error users were getting when creating a new user.

Abe1
06 Apr 2007, 15:59
Nice update :)

Maybe a suggestion for a future release: don't show the login link in your own profile.
Does it really make a diff?

foulplay
07 Apr 2007, 23:51
Awesome! THanks for the PHP5 fix! Works perfect now!:)

bollie
09 Apr 2007, 12:07
Nice hack ;)

Naxon
09 Apr 2007, 20:57
Upgraded version installed :)

rayw
11 Apr 2007, 04:29
Brilliant mod, works perfectly, dangerous too! :p

Rambo.
13 Apr 2007, 13:14
How do I edit the templates? Where is this located?

rayw
13 Apr 2007, 13:29
Ok, I have just discovered that if you log in as another user, then create a new thread or post a reply, when viewing the forum home page, the username of the person you were logged in as appears in the Last Post column but if you click on their name, it links back to the admin who logged in as them.

Is this supposed to happen????

Abe1
13 Apr 2007, 13:31
Ok, I have just discovered that if you log in as another user, then create a new thread or post a reply, when viewing the forum home page, the username of the person you were logged in as appears in the Last Post column but if you click on their name, it links back to the admin who logged in as them.

Is this supposed to happen????
Can you describe with a little more details?

Abe1
13 Apr 2007, 13:31
How do I edit the templates? Where is this located?
Please read the vB manual.

rayw
13 Apr 2007, 13:37
Can you describe with a little more details?

Go into a users profile and Log In As User. Now reply to an already created thread. Now go back to the forum home page and the users name will appear in the Last Post column under the thread you just reply too. Click on the users name. It should take you to the profile of that particular user but it doesn't.

At least this is what is happening to me.

Abe1
13 Apr 2007, 13:41
Go into a users profile and Log In As User. Now reply to an already created thread. Now go back to the forum home page and the users name will appear in the Last Post column under the thread you just reply too. Click on the users name. It should take you to the profile of that particular user but it doesn't.

At least this is what is happening to me.
I just tested both a quick reply and a normal reply and both showed no problem when using the links to go to the users profile.

rayw
13 Apr 2007, 13:46
:confused:

Well, I have no idea what is going on with my board then! I will have to have a bit of a play around I think.

Thanks for the quick replies. :)

djbaxter
13 Apr 2007, 13:46
Frankly, what you're trying to do sounds more than a little sleazy and unethical anyway. Why are you posting as one of your members?

rayw
13 Apr 2007, 13:52
Frankly, what you're trying to do sounds more than a little sleazy and unethical anyway. Why are you posting as one of your members?

Testing the mod! And considering it is a user I created anyway, why does it matter? I wouldn't be posting with one of my actual members accounts.

s0lidgr0und
13 Apr 2007, 14:45
People take this mod way too seriously. I only use it to change settings for my less computer savvy members. It's fantastic.

Rambo.
13 Apr 2007, 14:52
Please read the vB manual.

I am pretty familiar with VB bro, just need to know which template file it is. Just gimme that info please, and I will know what you mean.

Thanks.

Abe1
13 Apr 2007, 15:06
I am pretty familiar with VB bro, just need to know which template file it is. Just gimme that info please, and I will know what you mean.

Thanks.
Oh.

Read the instructions. It says what template to edit.

Rambo.
13 Apr 2007, 15:07
Oh.

Read the instructions. It says what template to edit.

Yea I understand that part bud, just where are the templates located? In the ftp? If so, where abouts?

Abe1
13 Apr 2007, 15:08
Yea I understand that part bud, just where are the templates located? In the ftp? If so, where abouts?
Templates are edited in the Admin Control Panal.

Rambo.
13 Apr 2007, 15:10
Templates are edited in the Admin Control Panal.

Under what tab section?

Abe1
13 Apr 2007, 15:11
Under what tab section?
styles and templates


are you sure you know vb well ???

Rambo.
13 Apr 2007, 15:14
styles and templates


are you sure you know vb well ???

Ah yea, i got it:

<!-- This is where the top logo image goes -->

Is it that part that corresponds with:

find:
--------------------------------------------------------------------
<!-- logo -->
--------------------------------------------------------------------

BEFORE place this:
--------------------------------------------------------------------
<!-- Start Admin Log In As User -->
<if condition="$_REQUEST['admin_log_in_as_user'] OR $_COOKIE[COOKIE_PREFIX . 'admin_log_in_as_user']">
<div align="center" style="color: red; background-color: white; border: 1px solid black; padding:2px"><a href="$vboptions[forumhome].php?$session[sessionurl]&amp;log_out_admin_log_in_as_user=true">$vbphrase[admin_log_out_as_user]</a></div>
</if>
<!-- End Admin Log In As User -->
--------------------------------------------------------------------


EDIT: OK i figured it out. Thanks, its all fine now

aam
08 May 2007, 21:48
People take this mod way too seriously. I only use it to change settings for my less computer savvy members. It's fantastic.

Very useful, particularly to help diagnose issues / problems.

bandanafz1
09 May 2007, 15:28
Many thanks for this mod...

I'm new to VB and very much finding my way around.... at first I couldn't figure out why I could not see the Log In as User option and thought I had done something wrong....

But this is for the Super Admin only doh!

All working fine and very useful for my VB community.

69lakalle
09 May 2007, 18:07
reaaaally niceeeeeee i always wanted to do dis !!

JimInnes
12 May 2007, 09:16
Thank you, this will help me a lot! I have many newby members to assist.

Jim

Fireproof
22 May 2007, 00:30
This is awesome - thanks!!!

PlymWS
16 Jun 2007, 09:08
Straight in to 3.6.7 PL1.

Great mod !

saidsrc
22 Jun 2007, 12:39
thanks installed and marked

Fireproof
22 Jun 2007, 20:06
I must have edited or installed something that broke this Mod!! It has been working fine for the last month or so. But now, when I click "Log in as User", it logs me out, but I'm not logged in as that user - i'm showing as not logged in AT ALL - just like a guest.

Any clues to where I can look to fix this?

Abe1
24 Jun 2007, 12:17
I must have edited or installed something that broke this Mod!! It has been working fine for the last month or so. But now, when I click "Log in as User", it logs me out, but I'm not logged in as that user - i'm showing as not logged in AT ALL - just like a guest.

Any clues to where I can look to fix this?
No clue.

RedGTiVR6
05 Jul 2007, 16:31
I am having the same problem as the above user.

I just installed this mod. I click on the link to log in as the user and it just takes me to that users profile page and I'm not logged in at all as anyone?

Kinneas
08 Jul 2007, 12:47
I am also having this problem.

If I try and log in as another user, the header shows "You are logged in as another user", but it's like I'm browsing as a guest.

Abe1
08 Jul 2007, 12:49
I am also having this problem.

If I try and log in as another user, the header shows "You are logged in as another user", but it's like I'm browsing as a guest.
I need to check out your ACP to figure it out.

Kinneas
08 Jul 2007, 13:19
That's not a problem, I can give you a temp admin account to take a look. Shall I PM you the details?

Abe1
08 Jul 2007, 13:20
That's not a problem, I can give you a temp admin account to take a look. Shall I PM you the details?
Yes.

Bellardia
17 Jul 2007, 00:43
The thing about this mod is that when you post under the user's account, your IP is linked to the user.

nymyth
18 Jul 2007, 16:17
how do i add this to postbit legacy?

agilent
20 Jul 2007, 20:31
I just installed this mod, but when I click the drop down list from within the users profile (while logged on as Super Admin), it does not show an option to Login As User, any suggestions?

agilent
21 Jul 2007, 08:18
Okay, I got it to work when logged in as Administrator, but not when logged in as Super Moderator.

Any suggestions on what I need to change to allow me to login as user when I am logged in as Super Moderator?

deezelpope
21 Jul 2007, 10:08
You need to re-read the release post of this thread.:rolleyes:

Kinneas
27 Jul 2007, 15:11
Okay, I got it to work when logged in as Administrator, but not when logged in as Super Moderator.

Any suggestions on what I need to change to allow me to login as user when I am logged in as Super Moderator?
Don't think you can. Abe1 only designed it to work for Super Admins.

cooldude714
01 Aug 2007, 09:14
I would mark as installed but it doesn't work for me. See this picture (http://www.fozleague.com/error.JPG).

I can't post either, even though it says I am logged in as them at the top.

Abe1
01 Aug 2007, 12:00
I would mark as installed but it doesn't work for me. See this picture (http://www.fozleague.com/error.JPG).

I can't post either, even though it says I am logged in as them at the top.
Can you figure out if another hack is causing this?

rnmcd
08 Aug 2007, 16:41
What happens if the user is logged in at the same time you are logged in as that user?

cynthetiq
08 Aug 2007, 18:27
this mod is totally hot!!!!

I can troubleshoot user issues directly and not rely on someone. It also seems easier than logging in and out; in and out; in and out.

thanks!

Abe1
10 Aug 2007, 12:54
What happens if the user is logged in at the same time you are logged in as that user?
Nothing. Works like normal.

BadgerDog
13 Aug 2007, 23:41
INSTALLED ....

Very nice.... :up:

Works well with v3.6.7pl1 ....

Thanks ... :)

Regards,
Badger

agilent
14 Aug 2007, 10:05
Just wanted to stop in and compliment on how great this mod is working.

Ninth Dimension
19 Aug 2007, 17:05
I've just installed on my 3.6.8 forum, but it's not working. The link in the member profile page isn't showing up, and even if i bypass this, it shows the text at the top saying that I'm logged into a user on the forumhome page, but i'm not at all, and that's the only page it shows it on..

Any ideas?

Abe1
19 Aug 2007, 18:23
I've just installed on my 3.6.8 forum, but it's not working. The link in the member profile page isn't showing up, and even if i bypass this, it shows the text at the top saying that I'm logged into a user on the forumhome page, but i'm not at all, and that's the only page it shows it on..

Any ideas?
Are you a super admin?

vitrag24
19 Aug 2007, 19:20
rocking add-on as usual by Abe1.
but can you explain me use or purpose for which i can use this?

Abe1
19 Aug 2007, 22:30
Help members who have problems with their account.

vitrag24
20 Aug 2007, 07:47
will this work on vb 3.6.4?

deezelpope
20 Aug 2007, 11:33
Yes.:)

PtitLu
24 Aug 2007, 01:04
Works great with 3.6.8 and may be useful on huge forums.
Thanks.

cooldude714
29 Aug 2007, 09:18
this doesn't work at all..

rayphua
29 Aug 2007, 09:30
Works great for mine. And it's reliable.

Doctor Death
29 Aug 2007, 10:33
Works great for mine. And it's reliable.

Mine too... love it!

derfelix
10 Sep 2007, 17:05
Works as a charm.. also with vblogetin and with a tiny mod also in vbgallery...
simply great!!!!

Just a little suggestion.. (enhancement) by changing the template edit.. you can have the username as who you are logged in in the header...

how? install as is..
then open header template and find:
$vbphrase[admin_log_out_as_user]
and replace with:
<phrase 1="$bbuserinfo[username]">$vbphrase[admin_log_out_as_user]</phrase>
then go to your phrase manager.. find the phrase : admin_log_out_as_user
open for edit..
from:
<b>You are currently logged in as another user. Click here to log back into your account.</b>
to:
<b>You are currently logged in as <span style="color:#FF0000;">{1}</span>. Click here to log back into your account.</b>

you now have at the top of each page for example:
You are currently logged in as Felix. Click here to log back into your account.

thats it and thx for the great hack

Felix

JohnBee
18 Sep 2007, 02:40
Works as a charm.. also with vblogetin and with a tiny mod also in vbgallery...
simply great!!!!

Just a little suggestion.. (enhancement) by changing the template edit.. you can have the username as who you are logged in in the header...

how? install as is..
then open header template and find:
$vbphrase[admin_log_out_as_user]and replace with:
<phrase 1="$bbuserinfo[username]">$vbphrase[admin_log_out_as_user]</phrase>then go to your phrase manager.. find the phrase : admin_log_out_as_user
open for edit..
from:

to:


you now have at the top of each page for example:
You are currently logged in as Felix. Click here to log back into your account.

thats it and thx for the great hack

Felix
Thats wonderful stuff! thanks for this.
Sometimes, It's the smaller mods that make all the difference. This hack has been one of my favorites for a long time now. .thumbsup.

ACIKillJoy
18 Sep 2007, 06:54
great addition to my site. already used it to fix 3 peoples issues and only had it installed for an hour.

and Felix's addition is also supurb.
Installed

rooney72
19 Sep 2007, 18:24
When I'm redirected as the new user I still have to log in with username and password of user. In essence I cannot get in unless I know the pass

djurispup
21 Sep 2007, 12:27
How would I set 'safe' users so admin can not go in.

JohnBee
21 Sep 2007, 17:00
When I'm redirected as the new user I still have to log in with username and password of user. In essence I cannot get in unless I know the passDefinately something wrong with your setup.

Abe1
24 Sep 2007, 00:21
When I'm redirected as the new user I still have to log in with username and password of user. In essence I cannot get in unless I know the pass
I would need to log in as a suber admin to test this out.

Abe1
24 Sep 2007, 00:21
How would I set 'safe' users so admin can not go in.
You can't.

Abe1
24 Sep 2007, 02:09
Version 2.2 (09/23/07):

Fixed looking at your own member info page when logged in as someone else.
Fixed bug with showing your blogs when logged in as another user.
Admin permission if can log in as other users, not only super admins can use this hack now.

Hornstar
24 Sep 2007, 02:13
Thanks for the update, next time my member has problems with anything, I will be able to know what is occurring better now. thanks

KingPin6
24 Sep 2007, 02:38
*cough* just me or the mod files for 2.2 vanished?

EDIT* ok im going crazy there they are....

EDIT 2* Ah I see new version 2.3. :) thanx for the update.

Abe1
24 Sep 2007, 02:42
*cough* just me or the mod files for 2.2 vanished?

EDIT* ok im going crazy there they are....

EDIT 2* Ah I see new version 2.3. :) thanx for the update.
Just updated the file one more time. Make sure you have the latest.

mauro1947
24 Sep 2007, 02:48
Thanks.
You should change description:

This hack will allow super admins to log in as any user.

Now, not only Super Admins ;)
Thanks
Regards!

Abe1
24 Sep 2007, 02:49
Thanks.
You should change description:



Now, not only Super Admins ;)
Thanks
Regards!
Good point. Will do.

mauro1947
24 Sep 2007, 02:54
Doesnt work :(

Database error in vBulletin 3.6.8:

Invalid SQL:
SELECT admin_log_in_as_user FROM vB_administrator WHERE userid = '9';

MySQL Error : Unknown column 'admin_log_in_as_user' in 'field list'
Error Number : 1054
Date : Monday, September 24th 2007 @ 04:50:08 AM
Script : member.php?u=9
Referrer :
IP Address : 201.xxx.37.xxx
Username : mauro1947
Classname : vB_Database

Abe1
24 Sep 2007, 02:55
Please download the latest file. I fixed it.

mauro1947
24 Sep 2007, 03:04
Fixed now :D
Thanks a lot.

Spank
24 Sep 2007, 03:12
Is it still possible to have only Super Admins be able to use this with the udate? I don't want my other Admins to be able to use this feature.

Abe1
24 Sep 2007, 03:16
Is it still possible to have only Super Admins be able to use this with the udate? I don't want my other Admins to be able to use this feature.
It's an admin permission now. You can set which admins can or can't use this hack.

dot2slash
24 Sep 2007, 03:17
since the update the option to log in is gone ...

logged in as admin view member profile shows just this in the source

<!-- Start Admin Log In As User -->
</tr>


(try on clean install of 3.6.8) and updated a 3.6.8 where admin log in 2.2 was installed before
no error messages.

any idea ?

Abe1
24 Sep 2007, 03:20
since the update the option to log in is gone ...

logged in as admin view member profile shows just this in the source

<!-- Start Admin Log In As User -->
</tr>


(try on clean install of 3.6.8) and updated a 3.6.8 where admin log in 2.2 was installed before
no error messages.

any idea ?
Did you give your self permission to use this hack. It now uses administrator permissons.



{Oh, I wish some people would just learn how to read.}

yoyoyoyo
24 Sep 2007, 03:28
How do we set the "Admin permission if can log in as other users"?

Spank
24 Sep 2007, 03:30
It's an admin permission now. You can set which admins can or can't use this hack.

Nice, thanks. Just upgraded. When logged in as another user and you click on your actual username it logs you back in as yourself. Does that make sense?

Abe1
24 Sep 2007, 03:31
Nice, thanks. Just upgraded. When logged in as another user and you click on your actual username it logs you back in as yourself. Does that make sense?
I dont think so.

Abe1
24 Sep 2007, 03:32
How do we set the "Admin permission if can log in as other users"?
Same way you set all administrator permissions. ACP->usergroups->admin permissions.

mauro1947
24 Sep 2007, 03:33
Into Admin CP go to user profile.
GoTo Set Admin Permissions and change "Can Log in as Another User" to Yes.
Regards!

yoyoyoyo
24 Sep 2007, 03:41
Ok - I guess I was confused - I thought that the admin could set it so any user could have the option to log in as another user, if the admin set the persmissions - but I guess this is just for admins. I was hoping to be able to extend this to super moderators or specific users as well. thanks for the explanation and the update.

periphrastic
24 Sep 2007, 03:44
okay, this could possibly be a horrendous question, and i'm sure it's been addressed. but at the risk of being ridiculed,

where is this "logo" ? i cannot locate it but in my 'default' template
i've imported and changed the templates accordingly (and added the code before the 'logo' in my default template) but there is no option to log in as user.

thanks

Spank
24 Sep 2007, 04:01
Have you updated the admin permissions?

periphrastic
24 Sep 2007, 04:06
absolutely.

it's working fine now.

the problem now is that when i log in as another user and click on any link in his profile (return to forums index, find all posts by, etc.) i am returned to my own user id with all my information, not the other users.

any advisement? thanks

Spank
24 Sep 2007, 07:44
I've got the same when clicking on private messages or looking at my actual profile .

Subah
24 Sep 2007, 10:10
Thank you for the Update , but why you skip 2.2 ?

Subah
24 Sep 2007, 10:22
Sorry i fix the problem :)