vb.org Archive

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

Kolbi 08-19-2009 03:54 PM

I?m gettin this issue on 3.8.4:
Quote:

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

Quote:

Originally Posted by dacho (Post 1830589)
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:

Code:

<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]&amp;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....&postcount=215

carmichael1973 09-06-2009 12:47 AM

Quote:

Originally Posted by carmichael1973 (Post 1877500)
Just repace the code in the admin_log_in_as_user_member_info_link_vb37 template with this:

Code:

<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]&amp;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:

Code:

<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]&amp;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.

yhdf 11-04-2009 11:09 PM

Quote:

Originally Posted by satlazone (Post 1900887)
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!

Abe1 11-16-2009 05:21 AM

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

Quote:

Originally Posted by carmichael1973 (Post 1880360)
Or if you want to set this for multiple users use this:

Code:

<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]&amp;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

Quote:

Originally Posted by bderen (Post 1927403)
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

Quote:

Originally Posted by carmichael1973 (Post 1804092)
ok... the problem is inside this plugin code!

PHP 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&amp;u=" $vbulletin->GPC['userid'] . "&amp;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?


All times are GMT. The time now is 06:46 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02730 seconds
  • Memory Usage 1,784KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (1)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (23)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete