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?


All times are GMT. The time now is 12:47 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.01446 seconds
  • Memory Usage 1,739KB
  • 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
  • (3)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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