View Full Version : Administrative and Maintenance Tools - Admin Log In As User
smirkley
04-02-2009, 07:15 PM
Verified the problem also exists in my upgrade to 3.8.2
EagleNick
04-02-2009, 07:58 PM
I don't have this error at all. I can add a user perfectly fine without interruption or messages at the top of the screen.
I am using vB 3.8.2 and the 3.10 version of this modification.
Apparently, it is conflicting with another modification you have. :)
smirkley
04-03-2009, 02:17 AM
I do appreciate that, but I havent found that to be true yet.
I suppose more testing is in order, but apparently several users and I express the same issue.
Let me see what I can find out, but I am pretty sure I covered all bases.
EagleNick
04-03-2009, 09:01 AM
I do appreciate that, but I havent found that to be true yet.
I suppose more testing is in order, but apparently several users and I express the same issue.
Let me see what I can find out, but I am pretty sure I covered all bases.
I'm not questioning or discrediting your reports; I'm just stating that I don't have the problem... despite the several modifications I have installed.
smirkley
04-03-2009, 03:28 PM
I do appreciate that. I didnt take it as any discredit attempt.
I am in the process of trying to track down any conflicts that may be causing or conflicting here, and I hope to have more info soon as possible. I will post here if I find something out.
mystikmedia
04-05-2009, 07:47 PM
I must be doing something very wrong. I installed it, and went to the usergroups section to enable it for the administrators group, but the option to do so is not there. Has that changed?
Sweeks
04-09-2009, 08:41 AM
Works perfect 3.8.1 pl1
________
HANDJOB VIDEO (http://www.++++tube.com/categories/24/handjob/videos/1)
GHC Webmaster
04-09-2009, 09:59 AM
I must be doing something very wrong. I installed it, and went to the usergroups section to enable it for the administrators group, but the option to do so is not there. Has that changed?
Haven't installed this yet, but I guess you shouldn't be looking in the usergroup permissions but in the admin permissions instead.
Edit: Now installed, and my remark above is correct. It does say so in the instructions by the way:
Go to (admincp -> Usergroups -> Administrator Permissions -> [Edit Permissions])
mystikmedia
04-09-2009, 02:08 PM
Thanks much for the clarification. Found it now. :)
3.10 Simplified Chinese UTF-8 Version
RocCityDad
04-14-2009, 08:47 AM
thanks... sweeks for posting the link to this.
smirkley
04-15-2009, 05:51 PM
I am in the process of trying to track down any conflicts that may be causing or conflicting here, and I hope to have more info soon as possible. I will post here if I find something out.
Well, I have on my production forum tested with ALL hacks disabled individually as well as all at once, with exception to this one, and the problem persists.
I am at wits end, and do not find any conflicts, etc.
Dont know what else to do.
Classico
04-28-2009, 12:19 PM
Love this hack.
Great when needing to log into dummy accounts with different usergroups to verify proper operation of features while not an admin.
I have a (appearing) small problem though as I get an error I have verified as a result of this mod being installed, and problem goes away if I disable this mod, and comes back when re-enabled. All other mods I am using do not provide this fault in my testing.
I see this while NOT logged in as another user, as of course I am accessing the admin cp using my admin account.
With this mod (ver.3.10) installed and enabled, and using vb3.8.1 PL1, go to the admin CP and click on "Add New User" under the "Users" sidebar menu.
The Add New User page is rendered ok, but at the top this is shown...
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/admincp/user.php(544) : eval()'d code on line 11
Any help appreciated.
Thanks.
Anybody else with this problem too?
I notice the error reproduces itself in admincp as well as modcp.
Same problem here with 3.8.2! I have the same message error when i try to create a new user.
That is a problem with this mod.
Any solution?
carmichael1973
05-04-2009, 02:35 AM
Same problem here with 3.8.2! I have the same message error when i try to create a new user.
That is a problem with this mod.
Any solution?
I'm right there with everyone else. I've used similar hacks for a long time and use it regularly. I'll look into it myself tomorrow.
Nice work though!!
carmichael1973
05-04-2009, 02:44 AM
ok... the problem is inside this plugin code!
$admin_log_in_as_userinfo = $vbulletin->db->query_first("SELECT admin_log_in_as_user FROM " . TABLE_PREFIX . "administrator WHERE userid = '" . $vbulletin->userinfo['userid'] . "'");
if ($admin_log_in_as_userinfo['admin_log_in_as_user'])
{
$quicklinks = array_merge(
$quicklinks,
array(
"../member.php?" . $vbulletin->session->vars['sessionurl'] . "do=getinfo&u=" . $vbulletin->GPC['userid'] . "&admin_log_in_as_user=" . $vbulletin->GPC['userid']
=> $vbphrase['log_in_as_user']
)
);
}
I'll get into it tomorrow and see what the issue is!
But here is a work around for now... "This will only remove the ability to login as member from admincp"
Disable the plugin for the admincp link - (see attached image)
Classico
05-04-2009, 07:47 PM
Disable the plugin for the admincp link - (see attached image)
Just did it and the error is gone "with the wind". ;)
Thanks for the help and i?ll be wainting for the upgrade when you have the time. :up:
This is a great mod! :)
chrisbeau
05-07-2009, 02:18 PM
Working good for me, but can it be altered to stop admin using it on other admin, or supermods using it on admin ?
islamicvd
05-10-2009, 05:25 PM
really great update :)
I used this on vb 3.6.4 and worked great. Upgraded forum to 3.8.2 and upgraded this plugin to latest.
I found selection in the user page in the admin cp (and works fine) but I can't find the option to 'login as user' in the user's profile page on 3.8.2. Is it still there?
Makc666
05-23-2009, 07:08 PM
I found selection in the user page in the admin cp (and works fine) but I can't find the option to 'login as user' in the user's profile page on 3.8.2. Is it still there?
Check the product's options. There is such setting there.
grayloon
05-28-2009, 03:13 PM
I installed on 3.8.0, and I'm getting the same error at the top of the AdminCP Add User page. I followed the recommendation of carmichael1973 to temporarily fix it.
An update for 3.8.x would be appreciated.
marshal_ramdev
05-31-2009, 07:56 AM
nice 1 :) thanks ;)
dacho
06-15-2009, 12:41 PM
If i want to reject the other admin's to get in to my user (in to the owner user) ? ther is a possibility to do that ?
blind-eddie
06-15-2009, 01:37 PM
If i want to reject the other admin's to get in to my user (in to the owner user) ? ther is a possibility to do that ?
Set your config.php permissions first, then admincp/usergroup/Admin Permissions, uncheck Log in as user.
dacho
06-16-2009, 10:11 AM
Set your config.php permissions first, then admincp/usergroup/Admin Permissions, uncheck Log in as user.
10x man but i ask : If i want to reject the other admin's (that i give them the permissions to log in as user) but i don't want them to get in to my user (in to the owner user) ?
If ther is a possibility to do that ?
only to reject to get in to user id-1
moonclamp
07-28-2009, 07:29 PM
Anybody else with this problem too?
I notice the error reproduces itself in admincp as well as modcp.
I don't have this error at all. I can add a user perfectly fine without interruption or messages at the top of the screen.
I am using vB 3.8.2 and the 3.10 version of this modification.
Apparently, it is conflicting with another modification you have. :)
Well, I have on my production forum tested with ALL hacks disabled individually as well as all at once, with exception to this one, and the problem persists.
I am at wits end, and do not find any conflicts, etc.
Dont know what else to do.
I am running three forums with this hack (3.7.1 x1 and 3.8.
3 x2), I get the message on one of the 3.8.3 forums but not on the others. Same server too.
All hacked to death, but not with exactly the same mods.
moonclamp
07-28-2009, 07:43 PM
Oh, I've thought of something.
One the two versions that don't give me the error I haven't reverted the templates - So it's only the full 3.8.3 templated version that's causing me the trouble.
Jaydee 2
08-13-2009, 01:24 AM
Hi,
just installed and i've got the same problem in 3.8.2:
I found selection in the user page in the admin cp (and works fine) but I can't find the option to 'login as user' in the user's profile page on 3.8.2. Is it still there?
There is NO option to select anything in this add-on. All plugins are active and "member_complete" seems to work up to 3.7.x, but not in 3.8.x.
In ACP-Profile there is an "Login to User" profile, but not in any user-profile in forum (member.php).
I guess the reason is: There are many changes in user-profiles since 3.8.0 and "member_complete" has an option for vb36 and vb37, but not vb38.
I've tried to complete this, but got a parse_error:
eval
('$admin_log_in_as_user_link = "' . fetch_template('admin_log_in_as_user_member_info_l ink_vb38')] . '";');
}
Any idea how to solve it in 3.8.x ?
Sometimes it could be a little more comfortable to use it directly from profile.
Otherwise: Great job, thanks! :)
blind-eddie
08-13-2009, 01:55 PM
Hi,
just installed and i've got the same problem in 3.8.2:
There is NO option to select anything in this add-on. All plugins are active and "member_complete" seems to work up to 3.7.x, but not in 3.8.x.
In ACP-Profile there is an "Login to User" profile, but not in any user-profile in forum (member.php).
I guess the reason is: There are many changes in user-profiles since 3.8.0 and "member_complete" has an option for vb36 and vb37, but not vb38.
I've tried to complete this, but got a parse_error:
eval
('$admin_log_in_as_user_link = "' . fetch_template('admin_log_in_as_user_member_info_l ink_vb38')] . '";');
}
Any idea how to solve it in 3.8.x ?
Sometimes it could be a little more comfortable to use it directly from profile.
Otherwise: Great job, thanks! :)
================================================== ==========
To get this to work in 3.8,
Admincp/Styles & Templates/Search in Templates
Search for MEMBERINFO
Find
<if condition="can_moderate()">
<li class="thead"><a href="moderator.php?$session[sessionurl]do=useroptions&u=$userinfo[userid]">$vbphrase[edit_user_profile]</a></li>
Add after
<!-- Start Admin Log In As User -->
<if>$admin_log_in_as_user_link
<!-- End Admin Log In As User -->
Jaydee 2
08-13-2009, 02:19 PM
Hi blind-eddie,
even done in about 1 minute and works fine.
Thanks a lot for that hint. :)
greets
J?rg
Kolbi
08-19-2009, 03:54 PM
I?m gettin this issue on 3.8.4:
Warnung: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/modcp/user.php(348) : eval()'d code (Zeile 14)
Can you bugfix it?
carmichael1973
09-01-2009, 12:13 AM
10x man but i ask : If i want to reject the other admin's (that i give them the permissions to log in as user) but i don't want them to get in to my user (in to the owner user) ?
If ther is a possibility to do that ?
only to reject to get in to user id-1
Just repace the code in the admin_log_in_as_user_member_info_link_vb37 template with this:
<li class="thead"><if condition="$userinfo['userid'] == '1'">You Cannot Login As This User<else /><a href="$vboptions[forumhome].php?$session[sessionurl]u=$userinfo[userid]&admin_log_in_as_user=$userinfo[userid]">$vbphrase[log_in_as_user]</a></if></li>
It just adds a simple <if> conditional
:D
trigon
09-01-2009, 06:17 PM
@Abe1, can you update your readme for Vb3.8.x with this? https://vborg.vbsupport.ru/showpost.php?p=1674640&postcount=215
carmichael1973
09-06-2009, 12:47 AM
Just repace the code in the admin_log_in_as_user_member_info_link_vb37 template with this:
<li class="thead"><if condition="$userinfo['userid'] == '1'">You Cannot Login As This User<else /><a href="$vboptions[forumhome].php?$session[sessionurl]u=$userinfo[userid]&admin_log_in_as_user=$userinfo[userid]">$vbphrase[log_in_as_user]</a></if></li>
It just adds a simple <if> conditional
:D
Or if you want to set this for multiple users use this:
<if condition="in_array($userinfo[userid], array(1,2,3))">You Cannot Login As This User<else /><a href="$vboptions[forumhome].php?$session[sessionurl]u=$userinfo[userid]&admin_log_in_as_user=$userinfo[userid]">$vbphrase[log_in_as_user]</a></if>
I have tested it, and it does work!!!:)
Marek58
10-05-2009, 06:40 AM
Polish version
Armageddonz
10-09-2009, 12:25 PM
How do I install this?
satlazone
10-16-2009, 12:48 PM
theres an error on this page: /admincp/user.php?do=add
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/admincp/user.php(545) : eval()'d code on line 11
joyceleong
10-22-2009, 04:00 AM
Working great with my 3.8.4.
Thanks for this great plugin.
theres an error on this page: /admincp/user.php?do=add
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/admincp/user.php(545) : eval()'d code on line 11
Confronts the same error when i stop the product its does not appear :confused:
odln018
11-14-2009, 08:30 PM
Will this be converted to 4.0?
Marek58
11-15-2009, 07:23 AM
Polish version
Classico
11-15-2009, 11:03 PM
Does this work in VB4.0?
Thanks!
4.0 version posted here: https://vborg.vbsupport.ru/showthread.php?t=228077
Classico
11-16-2009, 07:41 AM
Excelent!! Nice work!! :up:
Thank you !!;)
bderen
12-08-2009, 07:58 PM
Or if you want to set this for multiple users use this:
<if condition="in_array($userinfo[userid], array(1,2,3))">You Cannot Login As This User<else /><a href="$vboptions[forumhome].php?$session[sessionurl]u=$userinfo[userid]&admin_log_in_as_user=$userinfo[userid]">$vbphrase[log_in_as_user]</a></if>
I have tested it, and it does work!!!:)
sorry to be such a noob but where exactly do i modify and enter this code
carmichael1973
12-08-2009, 08:49 PM
sorry to be such a noob but where exactly do i modify and enter this code
Inside the admin_log_in_as_user_member_info_link_vb37 template.
Make sure you edit the array portion to reflect the actual user id's of the profiles you wish to exclude the link from.
chick
12-11-2009, 07:58 PM
This mod is great, I can't count how many times members ask... how do I insert video into my profile, or I can't gt a background images to show... now I can just click and do it for them instead of going to the admin panel.
Thank you, installed.
Raptor
12-28-2009, 11:32 PM
ok... the problem is inside this plugin code!
$admin_log_in_as_userinfo = $vbulletin->db->query_first("SELECT admin_log_in_as_user FROM " . TABLE_PREFIX . "administrator WHERE userid = '" . $vbulletin->userinfo['userid'] . "'");
if ($admin_log_in_as_userinfo['admin_log_in_as_user'])
{
$quicklinks = array_merge(
$quicklinks,
array(
"../member.php?" . $vbulletin->session->vars['sessionurl'] . "do=getinfo&u=" . $vbulletin->GPC['userid'] . "&admin_log_in_as_user=" . $vbulletin->GPC['userid']
=> $vbphrase['log_in_as_user']
)
);
}I'll get into it tomorrow and see what the issue is!
But here is a work around for now... "This will only remove the ability to login as member from admincp"
Disable the plugin for the admincp link - (see attached image)
yep this worked - thanks
christon26
11-19-2010, 01:35 AM
I have this mod installed and when I go to manually add a new user I have the following line at the top of the page:
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/admincp/user.php(545) : eval()'d code on line 11
It doesn't stop me adding a new user and disabling the mod takes the message away, so it's really just a nuisance at the moment LOL...how can I have the mod enabled and get rid of the error message?
I am using vb 3.8.6 PL1
MagicThemeParks
01-08-2011, 02:23 PM
Works great with 3.8.5
friscomike
01-20-2011, 12:20 AM
Howdy,
I was upgrading from 3.8.6 to 4.1.1 and received an error about bitfield collisions. I believe it was from this addon installed long ago.
Can anyone tell me how to remove the bitfield collision from the database?
# Upgrading to 4.1.1
# Processing Blog
#
An error has occurred. Please contact vBulletin Support for assistance.
Module: vbblog, Step 1 Error.
A conflict was detected in the bitfields. You cannot continue with the installation of this product until this has been fixed. The conflicts found were:
* Bitfield Collision: canalwayspostmessage = canpostnonmembergroup
* Bitfield Collision: canalwayspostmessage = canpostnonmembergroup
Best,
mike
pacobob
04-13-2011, 01:14 PM
I am having an issue with this in opera and firefox, running the latest version in both. When i Log in as a user the first page comes up fine but after 1 or sometimes 2 clicks it kicks me out to my account and I am no longer in as them. I know it is setup right as in IE it works just fine, i click around the site as much as i want and it is fine. It is like the other browsers are loosing the info they need.
Any suggestions would be great as i really hate using IE. :)
Thanx!
PokerVillain
03-06-2014, 05:01 PM
I've changed the max version, and I'm running Vbulletin 4.2.2. The mod has imported OK but I can't find the option to Login as user anywhere! Any help?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.