Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons

Reply
 
Thread Tools
Cyb - Login To User Account Details »»
Cyb - Login To User Account
Version: 2.3, by Valter Valter is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.8.x Rating:
Released: 01-09-2009 Last Update: 04-10-2009 Installs: 954
DB Changes Uses Plugins Auto-Templates
 
No support by the author.

Info:
This will allow forum administrators to simply login to user accounts (to test forum functions, permissions etc...). SuperAdmin can choose admins who are able to use this function. SuperAdmin can set also who can login to other admin accounts. "Login As User" is shown in member profiles and Quick User Links (can be disabled). Option is automatically hidden in your own account and if target user is admin while you have no permissions to login to admin accounts.

See screenshots.


Installation:
1. Import XML file (as product): AdminCP > Plugin System > Manage Products > [Add/Import Product]


Variables:
-Link to login to user in memberinfo: $cyb_ltoua_link_mi
-Logged in as user alert: $cyb_ltoua_alert


To set options:
Go to: AdminCP > vBulletin Options > Cyb - Login To Other User Account


Versions:
v1.0 - May 20. 2006.
-First Release
v1.1 - May 21. 2006.
-Now SuperAdmin can log into other admins
v1.2 - Aug 04. 2006.
-Release of this hack for vB v3.6
v1.5 - Aug 29. 2006.
-Added option to easily go back to admin account
-Alert can be enabled/disabled
-Added "Product Version Checking"
-Only Admins allowed to use function can see "Login As" links
-Several code improvements
v1.6 - Sep 01. 2006.
-Fixed bug (error message at the top of "add new user" page)
-Fixed bug (uncached template)
v1.7 - Sep 05. 2006.
-Now only SuperAdmin can access settings where you choose which Admins can use the hack
-You can also set Admins who will be able to use other Admins accounts (only SuperAdmin can set this)
-Alert moved to navbar so it is now shown on any page to Admin who is logged in as someone else
v1.8 - Apr 23. 2007.
-"Last activity" not changed for target user when admin used account
-"Login As User" automatically hidden in your own account and if target user is admin and you have no permissions to login to admin accounts
-Admin not logged out from ACP when back to original account, except session expired regularly
-Added option to modify alert box CSS
-Many other code improvements and optimizations
-If you have older version of this hack installed please uninstall it before installing latest version or it will not work properly
v1.9.1 - Jul 23. 2007.
-Fixed bug (Security Exploit)
-Fixed bug ("login as user" doesn't work if you access user profile via last post info)
-"Go back" alert moved to header (for must of users there is no need to edit custom styles anymore)
-Now you can go back from banned user accounts without clearing cookies manually
v2.0 - Nov 08. 2007.
-New: Actions logged in Moderator Log
-Fixed bug where admins with primary usergroup different than 6 are not able to use hack
-Several minor bugs fixed
--You MUST uninstall older version before installing this one in order to get it working properly
v2.1 - May 03. 2008.
-Compatible with vBulletin 3.7
-Minor bugs fixed
v2.2 - Jun 23. 2008.
-Added option to disable logs
-Added option to switch to vB 3.6.x compatibility mode
-Fixed bug (session lost for target user when you go back to admin)
-Fixed bug (sessions lost for guests/bots when you login as another user)
-Made several compatibility improvements
v2.3 - Apr 11. 2009.
-Bug fix (non-Admins able to login to user accounts in some cases)
-Bug fix (Admin can not search product entries in ModLog by product ID)
-Bug fix (logging error if username contains special characters)
-Bug fix (Admin must be member of usergroup 6 to use product)
-Minor bugs fixed


Click INSTALL if you like this hack.

Download Now

File Type: zip Cyb - Login To User Account 2.3.zip (6.9 KB, 4409 views)

Screenshots

File Type: jpg loginasuser.jpg (25.0 KB, 0 views)
File Type: jpg edituser.jpg (101.0 KB, 0 views)
File Type: jpg alert.jpg (16.5 KB, 0 views)
File Type: jpg adminset.jpg (32.6 KB, 0 views)
File Type: jpg acp.jpg (60.1 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #112  
Old 08-13-2009, 05:25 PM
Sador's Avatar
Sador Sador is offline
 
Join Date: Mar 2009
Posts: 181
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by markuswarren View Post
I did manage to work out how to do the addition to the user pop-up menu, and I've been rather lax in posting what I did, so I'll rectify that now:

Upon editing postbit_legacy look for:

$template_hook[postbit_user_popup]

then after copy and paste the following:

Code:
	<if condition="is_member_of($vbulletin->userinfo, array( 6))">
	<tr><td class="vbmenu_option"><a href="member.php?do=cyb_loginasuser&u=$post[userid]">Log In As User</td></tr>
	</if>
The conditional checks to see if the user is in the admin group and thus only presents the option to admin users.

I've been using this for a little while and it works like a charm.
Hm, for some reason this doesn't seem to work at my board. Doesn't add anything to the pop up menu.

Still, thanks for sharing.
Reply With Quote
  #113  
Old 08-14-2009, 11:34 AM
markuswarren markuswarren is offline
 
Join Date: May 2009
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sador View Post
Hm, for some reason this doesn't seem to work at my board. Doesn't add anything to the pop up menu.

Still, thanks for sharing.
Try sticking "xxxxxxxxxxx" or something that will display inside the conditional to check that this portion of it is working, as it sounds as though the conditional check might not be working.

I'm using the Matahari style by sultan themes, and it does differ, in terms of where items are located, to the default style. For example, the navbar items are not in the same location as in Default Style. Therefore it is possible that putting the code in postbit_legacy might not be where it should go, but it would make sense that it is, regardless of style being used.
Reply With Quote
  #114  
Old 08-14-2009, 04:16 PM
Sador's Avatar
Sador Sador is offline
 
Join Date: Mar 2009
Posts: 181
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by markuswarren View Post
Try sticking "xxxxxxxxxxx" or something that will display inside the conditional to check that this portion of it is working, as it sounds as though the conditional check might not be working.

I'm using the Matahari style by sultan themes, and it does differ, in terms of where items are located, to the default style. For example, the navbar items are not in the same location as in Default Style. Therefore it is possible that putting the code in postbit_legacy might not be where it should go, but it would make sense that it is, regardless of style being used.
Ah, I found the problem. Postbit_legacy is used only for people who are using legacy mode. So, the code was alright, just had to put it in postbit instead of postbit_legacy. Thanks for the help!
Reply With Quote
  #115  
Old 08-21-2009, 05:19 AM
dandanch dandanch is offline
 
Join Date: Nov 2008
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

doesn't seem to be working for 3.8.4 won't let you log in
to the users account do you have a fix?thanks
Reply With Quote
  #116  
Old 08-24-2009, 12:22 PM
RedFoxy's Avatar
RedFoxy RedFoxy is offline
 
Join Date: Sep 2007
Location: Italy
Posts: 179
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok I found and fix the troubles about "Cyb - Advanced Forum Rules" and "Cyb - Login To User Account", to fix it you must edit "Cyb - Login To User Account - MI" and:

Find:
Code:
					$cyb_ltoua_link_mi = "<li class=\"thead\" style=\"float:$stylevar[right]\"><a href=\"member.php?$session[sessionurl]do=cyb_loginasuser&amp;u=$userinfo[userid]\">$vbphrase[cyb_ltua_title]</a></li>";
Replace With:
Code:
					$cyb_ltoua_link_mi = "<table cellpadding=\"4\" width=\"100%\" cellspacing=\"1\" border=\"0\"><tr valign=\"top\"><td class=\"thead\">$vbphrase[cybltua_hackname]</td></tr><tr valign=\"top\"><td class=\"vbmenu_option\"><a href=\"member.php?$session[sessionurl]do=cyb_loginasuser&amp;u=$userinfo[userid]\">$vbphrase[cyb_ltua_title]</a></td></tr></table>";
Reply With Quote
  #117  
Old 08-25-2009, 04:47 AM
dandanch dandanch is offline
 
Join Date: Nov 2008
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

on my 3.8.4 boards to get it working again all i did was uninstalled it and re-instilled
it should work fine..
Reply With Quote
  #118  
Old 08-25-2009, 08:04 AM
DeanoUK DeanoUK is offline
 
Join Date: Sep 2004
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed on www.ukcigarforums.com, along with most over Cyb mods! Thanks bud!
Reply With Quote
  #119  
Old 08-25-2009, 09:21 PM
LordDB LordDB is offline
 
Join Date: Aug 2006
Location: CoffeeFads.Co.Uk
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Amiga Harrison View Post
I also get this error message in exactly the same way with this mod installed.
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/modcp/user.php(348) : eval()'d code on line 29

Worth noting is that another similar (but not as good) mod called Admin login as user also produces exactly the same error.

So I think this error must occur with any mod currently designed to log a mod/admin in as another user.

I hope you can find a fix for this. It doesn't stop either mod from working, just shows the error at the top of this search user mp page. So it can be lived with.
uninstall the version you have at present, and install this version here:

https://vborg.vbsupport.ru/showthread.php?t=177947
Reply With Quote
  #120  
Old 09-05-2009, 10:54 PM
hypoharry hypoharry is offline
 
Join Date: Jul 2009
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Amazing collection of mods on my forums now but this is the best one buy far
Reply With Quote
  #121  
Old 09-08-2009, 04:37 PM
Dutch_Boy Dutch_Boy is offline
 
Join Date: Dec 2007
Location: The Netherlands
Posts: 214
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Love it !! Thanks for the great mod !!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:30 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09702 seconds
  • Memory Usage 2,348KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (6)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete