PDA

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


Pages : [1] 2

Abe1
08-02-2006, 10:00 PM
Admin Log In As User 3.0

PLEASE CLICK ON THIS LINK TO DOWNLOAD AND FOR SUPPORT FOR THIS HACK: https://vborg.vbsupport.ru/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
08-03-2006, 08:34 PM
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
08-03-2006, 08:44 PM
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
08-03-2006, 11:01 PM
Is it possible to change the color of the text or background for the logged in wording as per center pic please?

Abe1
08-03-2006, 11:32 PM
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
08-04-2006, 06:19 AM
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
08-04-2006, 01:35 PM
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
08-04-2006, 06:27 PM
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
08-04-2006, 06:28 PM
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
08-05-2006, 12:04 AM
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
08-05-2006, 12:59 AM
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
08-06-2006, 12:47 AM
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-08-2006, 04:10 AM
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
08-10-2006, 06:30 PM
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
08-11-2006, 07:26 AM
@abe1; Thanks :)

Abe1
08-11-2006, 04:09 PM
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
08-18-2006, 06:52 PM
installed, thanks :)

Stoebi
08-19-2006, 05:52 PM
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
08-19-2006, 06:52 PM
LOL Wow I can see this one getting abused more than a $2 hooker.

jibious
08-19-2006, 11:03 PM
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
08-21-2006, 04:19 AM
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
08-24-2006, 05:52 AM
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
08-25-2006, 06:41 PM
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
08-25-2006, 06:59 PM
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
08-25-2006, 07:09 PM
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
08-25-2006, 07:22 PM
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
08-25-2006, 08:17 PM
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
08-27-2006, 12:17 AM
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
08-27-2006, 01:29 AM
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
08-27-2006, 01:59 AM
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
08-27-2006, 02:06 AM
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
08-27-2006, 02:15 AM
sorry, sessionurl in the header.

Stoebi
08-27-2006, 04:00 AM
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
08-27-2006, 12:11 PM
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
08-27-2006, 12:30 PM
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
08-27-2006, 01:21 PM
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
08-27-2006, 02:00 PM
Stoebi, much better, thank you :)

darksoulz
08-28-2006, 03:47 PM
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
08-30-2006, 10:03 PM
perfect, installed

redlabour
08-31-2006, 06:26 AM
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
08-31-2006, 07:13 AM
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
08-31-2006, 12:49 PM
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
08-31-2006, 07:55 PM
Can Admins see the Links (like "Login as X) ?

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

Abe1
09-17-2006, 02:59 AM
Can Admins see the Links (like "Login as X) ?
Only super admins.

Abe1
09-17-2006, 02:59 AM
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
09-27-2006, 04:45 PM
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
09-27-2006, 06:54 PM
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
10-01-2006, 02:33 PM
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?
10-01-2006, 05:19 PM
The file you have uploaded is not a valid module file.

Limerick
10-01-2006, 05:43 PM
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
10-15-2006, 05:00 AM
Hi Guys. Does this work with vB 3.6.2? Thanks, twobob

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

twobob
10-15-2006, 06:07 AM
Awesome MOD! Thanks!

JamieLee2k
10-21-2006, 08:20 PM
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
10-21-2006, 10:45 PM
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
10-22-2006, 01:49 PM
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
10-22-2006, 06:18 PM
Go look at the bottom of your vb config file. there is an option about super admins.

tester559
10-23-2006, 06:02 PM
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
10-23-2006, 11:45 PM
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
10-24-2006, 02:45 AM
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
10-24-2006, 03:57 AM
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
10-24-2006, 10:05 AM
get rid of the space. should be '1,2'

Allready tried that, sorry =\

Luggruff
10-24-2006, 07:04 PM
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
10-24-2006, 10:03 PM
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
10-24-2006, 10:14 PM
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
10-24-2006, 10:14 PM
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
10-25-2006, 06:56 AM
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
10-25-2006, 12:59 PM
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
10-26-2006, 02:12 AM
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
10-26-2006, 02:14 AM
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
10-29-2006, 11:55 PM
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
10-30-2006, 01:06 AM
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
10-30-2006, 06:28 PM
Do you have cookies enabled?
It would not work with vBulletin without it...

tank14
10-30-2006, 06:32 PM
in other words yes. I want this so work so badly.

Luggruff
11-02-2006, 01:23 PM
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
11-03-2006, 02:36 AM
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
11-10-2006, 08:47 AM
It seems to not work on 3.6.3 ... worked on the previous versions though. Has anyone else had this problem?

Thanks.

49er
11-10-2006, 06:37 PM
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-11-2006, 05:12 PM
Really doesn't work with 3.6.3?

HansMuenchen
11-11-2006, 05:43 PM
Really doesn't work with 3.6.3?

Here for me it works!

Greetings out of Munich
Hans

Abe1
11-12-2006, 04:27 AM
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
11-12-2006, 06:47 AM
how use it? help me!!!

49er
11-12-2006, 10:03 PM
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
11-12-2006, 11:34 PM
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
11-13-2006, 04:14 AM
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
11-13-2006, 07:23 AM
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
11-14-2006, 04:18 PM
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
11-14-2006, 04:23 PM
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
11-14-2006, 05:11 PM
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
11-14-2006, 06:37 PM
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
11-15-2006, 04:06 AM
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
11-15-2006, 04:06 AM
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
11-15-2006, 12:54 PM
Yep, I'm a super admin. Let me try completely removing and adding it again.

RedTurtle
11-15-2006, 01:08 PM
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
11-19-2006, 12:29 AM
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
11-19-2006, 11:47 AM
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
11-19-2006, 12:57 PM
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
11-20-2006, 11:51 PM
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
11-24-2006, 03:02 PM
gret hack, Installed!

Qwest
11-27-2006, 03:08 AM
excellent hack.

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

installed.

rossdagley
11-29-2006, 09:39 AM
Working perfectly here. Thanks for providing your time to make this free of charge :)

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

Abe1
12-03-2006, 08:30 PM
Hi!
Does this mod works on vBulletin 3.6.4?
Someone probes?
Thanks!!
Bye!
Works fine.

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

begore
12-04-2006, 02:00 PM
Brilliant, perfect for problem solving.

Installed!

taxick
12-06-2006, 03:17 PM
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
12-21-2006, 10:50 AM
HMM????

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

Battle_Ring
12-21-2006, 03:45 PM
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
12-21-2006, 08:39 PM
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
12-24-2006, 12:02 PM
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
12-24-2006, 12:19 PM
typo in description:
a low -> allow

aj8690
12-25-2006, 04:46 AM
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
12-27-2006, 02:29 AM
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
12-31-2006, 03:28 AM
I love mods like this.

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

Good job :banana:

ps. I am using vb3.6.4

Frimon86
01-02-2007, 09:33 PM
Nice mod but why do you have to be a super admin to use it?

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

KURTZ
01-08-2007, 03:08 AM
i use the Cyb's Hack (https://vborg.vbsupport.ru/showthread.php?t=122989&page=1&pp=15) (it's very similar but newest than yours) and runs without any problem ...

Abe1
01-10-2007, 11:45 PM
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
01-12-2007, 04:03 PM
Wow thanks.

Takamine334
01-15-2007, 05:45 PM
Hey, very cool add-on! Thank you abe1 :)

dennysperez
01-16-2007, 03:42 PM
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
01-16-2007, 04:02 PM
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
01-16-2007, 07:34 PM
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
01-16-2007, 07:59 PM
I have this problem .. What can I do ?
Problem with PHP5. I have to come up with a new version to fix it.

Spank
02-01-2007, 04:46 PM
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
02-01-2007, 08:14 PM
Looking good, an extremely similar version of Cyb's login as user then right? :)

Abe1
02-02-2007, 01:42 AM
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-02-2007, 01:44 AM
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-02-2007, 07:44 AM
Thank you for the 3.6x update Abe :)

Install

rnmcd
02-05-2007, 01:11 PM
So, is it possible that the actual user will notice that someone else logged into their account?

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

princeedward
02-12-2007, 07:59 PM
clicked install bro....great hack... thanks for this... ;)

bagfullofrice
03-05-2007, 08:56 PM
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
03-05-2007, 09:25 PM
I'm getting the same thing, I think it's since the upgrade to the latest version of VB

Abe1
03-05-2007, 09:45 PM
You have to make sure you are a super admin. Check your config file.

blind-eddie
03-06-2007, 02:26 AM
oops

JakeS
03-06-2007, 09:45 AM
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
03-06-2007, 11:10 AM
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
03-06-2007, 11:13 AM
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
03-06-2007, 11:46 AM
:eek: how did you know I had php 5.2.0?
Your not the first with this problem.

drew010
03-07-2007, 08:55 AM
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
03-07-2007, 01:08 PM
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
03-13-2007, 08:27 AM
This is because you have PHP5. I keep forgetting to release an update. I'll try ASAP.You remembered yet :D?

Distance
03-13-2007, 09:50 AM
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
03-13-2007, 12:27 PM
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
03-14-2007, 04:44 PM
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
03-17-2007, 10:13 PM
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
03-17-2007, 11:43 PM
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
03-30-2007, 05:13 PM
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
04-01-2007, 09:41 PM
What a great mod, works perfectly.

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

Abe1
04-06-2007, 02:16 PM
Version 2.1 (04/06/07):

Fixed header template edit.
array_merge problem for php5 users fixed

aj8690
04-06-2007, 02:23 PM
Thanks for the update. :)

RS_Jelle
04-06-2007, 02:35 PM
Nice update :)

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

BANDiT600
04-06-2007, 02:52 PM
Version 2.1 (04/06/07):
array_merge problem for php5 users fixed

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

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

Abe1
04-06-2007, 02:59 PM
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
04-07-2007, 10:51 PM
Awesome! THanks for the PHP5 fix! Works perfect now!:)

bollie
04-09-2007, 11:07 AM
Nice hack ;)

Naxon
04-09-2007, 07:57 PM
Upgraded version installed :)

rayw
04-11-2007, 03:29 AM
Brilliant mod, works perfectly, dangerous too! :p

Rambo.
04-13-2007, 12:14 PM
How do I edit the templates? Where is this located?

rayw
04-13-2007, 12:29 PM
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
04-13-2007, 12:31 PM
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
04-13-2007, 12:31 PM
How do I edit the templates? Where is this located?
Please read the vB manual.

rayw
04-13-2007, 12:37 PM
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
04-13-2007, 12:41 PM
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
04-13-2007, 12:46 PM
: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
04-13-2007, 12:46 PM
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
04-13-2007, 12:52 PM
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
04-13-2007, 01:45 PM
People take this mod way too seriously. I only use it to change settings for my less computer savvy members. It's fantastic.

Rambo.
04-13-2007, 01:52 PM
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
04-13-2007, 02:06 PM
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.
04-13-2007, 02:07 PM
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
04-13-2007, 02:08 PM
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.
04-13-2007, 02:10 PM
Templates are edited in the Admin Control Panal.

Under what tab section?

Abe1
04-13-2007, 02:11 PM
Under what tab section?
styles and templates


are you sure you know vb well ???

Rambo.
04-13-2007, 02:14 PM
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
05-08-2007, 08:48 PM
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
05-09-2007, 02:28 PM
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
05-09-2007, 05:07 PM
reaaaally niceeeeeee i always wanted to do dis !!

JimInnes
05-12-2007, 08:16 AM
Thank you, this will help me a lot! I have many newby members to assist.

Jim

Fireproof
05-21-2007, 11:30 PM
This is awesome - thanks!!!

PlymWS
06-16-2007, 08:08 AM
Straight in to 3.6.7 PL1.

Great mod !

saidsrc
06-22-2007, 11:39 AM
thanks installed and marked

Fireproof
06-22-2007, 07:06 PM
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
06-24-2007, 11:17 AM
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
07-05-2007, 03:31 PM
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
07-08-2007, 11:47 AM
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
07-08-2007, 11:49 AM
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
07-08-2007, 12:19 PM
That's not a problem, I can give you a temp admin account to take a look. Shall I PM you the details?

Abe1
07-08-2007, 12:20 PM
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
07-16-2007, 11:43 PM
The thing about this mod is that when you post under the user's account, your IP is linked to the user.

nymyth
07-18-2007, 03:17 PM
how do i add this to postbit legacy?

agilent
07-20-2007, 07:31 PM
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
07-21-2007, 07:18 AM
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
07-21-2007, 09:08 AM
You need to re-read the release post of this thread.:rolleyes:

Kinneas
07-27-2007, 02:11 PM
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
08-01-2007, 08:14 AM
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
08-01-2007, 11:00 AM
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-08-2007, 03:41 PM
What happens if the user is logged in at the same time you are logged in as that user?

cynthetiq
08-08-2007, 05:27 PM
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
08-10-2007, 11:54 AM
What happens if the user is logged in at the same time you are logged in as that user?
Nothing. Works like normal.

BadgerDog
08-13-2007, 10:41 PM
INSTALLED ....

Very nice.... :up:

Works well with v3.6.7pl1 ....

Thanks ... :)

Regards,
Badger

agilent
08-14-2007, 09:05 AM
Just wanted to stop in and compliment on how great this mod is working.

Ninth Dimension
08-19-2007, 04:05 PM
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
08-19-2007, 05:23 PM
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
08-19-2007, 06:20 PM
rocking add-on as usual by Abe1.
but can you explain me use or purpose for which i can use this?

Abe1
08-19-2007, 09:30 PM
Help members who have problems with their account.

vitrag24
08-20-2007, 06:47 AM
will this work on vb 3.6.4?

deezelpope
08-20-2007, 10:33 AM
Yes.:)

PtitLu
08-24-2007, 12:04 AM
Works great with 3.6.8 and may be useful on huge forums.
Thanks.

cooldude714
08-29-2007, 08:18 AM
this doesn't work at all..

rayphua
08-29-2007, 08:30 AM
Works great for mine. And it's reliable.

Doctor Death
08-29-2007, 09:33 AM
Works great for mine. And it's reliable.

Mine too... love it!

derfelix
09-10-2007, 04:05 PM
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
09-18-2007, 01:40 AM
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
09-18-2007, 05:54 AM
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
09-19-2007, 05:24 PM
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
09-21-2007, 11:27 AM
How would I set 'safe' users so admin can not go in.

JohnBee
09-21-2007, 04:00 PM
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
09-23-2007, 11:21 PM
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
09-23-2007, 11:21 PM
How would I set 'safe' users so admin can not go in.
You can't.

Abe1
09-24-2007, 01:09 AM
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
09-24-2007, 01:13 AM
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
09-24-2007, 01:38 AM
*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
09-24-2007, 01:42 AM
*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
09-24-2007, 01:48 AM
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
09-24-2007, 01:49 AM
Thanks.
You should change description:



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

mauro1947
09-24-2007, 01:54 AM
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
09-24-2007, 01:55 AM
Please download the latest file. I fixed it.

mauro1947
09-24-2007, 02:04 AM
Fixed now :D
Thanks a lot.

Spank
09-24-2007, 02:12 AM
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
09-24-2007, 02:16 AM
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
09-24-2007, 02:17 AM
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
09-24-2007, 02:20 AM
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
09-24-2007, 02:28 AM
How do we set the "Admin permission if can log in as other users"?

Spank
09-24-2007, 02:30 AM
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
09-24-2007, 02:31 AM
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
09-24-2007, 02:32 AM
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
09-24-2007, 02:33 AM
Into Admin CP go to user profile.
GoTo Set Admin Permissions and change "Can Log in as Another User" to Yes.
Regards!

yoyoyoyo
09-24-2007, 02:41 AM
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
09-24-2007, 02:44 AM
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
09-24-2007, 03:01 AM
Have you updated the admin permissions?

periphrastic
09-24-2007, 03:06 AM
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
09-24-2007, 06:44 AM
I've got the same when clicking on private messages or looking at my actual profile .

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

Subah
09-24-2007, 09:22 AM
Sorry i fix the problem :)