vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Miscellaneous Hacks - Cyb - Login To User Account (https://vborg.vbsupport.ru/showthread.php?t=201286)

Valter 01-09-2009 10:00 PM

Cyb - Login To User Account
 
1 Attachment(s)
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.

mastertek2000 01-10-2009 11:50 PM

marked installed thanks

dt_truck11 01-11-2009 04:46 AM

when i log into a members account it doesnt show up as im logged in. it still shows that im logged in as myself.

SnowBot 01-11-2009 04:49 AM

Installed :)

-=Leb=- 01-11-2009 10:30 AM

your mod is easier, dont need to edit memberinfo to add the link. Thx cyb, you'r awesome :)

MindStar 01-11-2009 02:08 PM

Quote:

Originally Posted by dt_truck11 (Post 1708222)
when i log into a members account it doesnt show up as im logged in. it still shows that im logged in as myself.

I get the same thing :confused:

Valter 01-11-2009 02:42 PM

Clear forum cookies, then try again.

MindStar 01-11-2009 02:52 PM

Quote:

Originally Posted by Cybernetec (Post 1708635)
Clear forum cookies, then try again.

Yup, that's fixed it.

I had to manually delete my forum cookies in Firefox; when I tried logging out I kept getting logged back in again. Weird! :confused:

basil2070 01-11-2009 03:22 PM

I installed this, but I see no link when I search for any members to login in their username.

VAN 01-13-2009 05:56 PM

Installed on 3.8. Logging in as a user works, but switching back does not. I get a white screen that says "You have no permission to use this function!".

I've cleared cookies already. Ideas?

Falon 01-13-2009 07:07 PM

Is it works on 3.7x ?

Golzarion 01-13-2009 07:18 PM

The really important notice : the last version of this plugin causes the security conflict with vbseo ! Of course it depended on your vbseo setting.... but vbseo user should be more careful to use this plugin. Just an advise not offensive words...

Bulldog Stang 01-14-2009 04:54 AM

Quote:

Originally Posted by VAN (Post 1711216)
Installed on 3.8. Logging in as a user works, but switching back does not. I get a white screen that says "You have no permission to use this function!".

I've cleared cookies already. Ideas?

Same problem on my end as well .. any fixes ???

SnowBot 01-14-2009 05:20 AM

works fine here, try reinstalling and disabling some of your other mods, just incase they are messing it up. Like i say it works great here on both my test forum and live board.

VAN 01-15-2009 03:17 PM

Quote:

Originally Posted by SnowBot (Post 1711790)
try reinstalling and disabling some of your other mods, just incase they are messing it up.

It's a clean and fresh upgrade to 3.8 - no other mods installed. I removed and re-installed and I'm still having the same problem, so this one has to go for now.

kellyandmark04 01-17-2009 12:43 AM

I overwrote my previous version of this program that I was using on my 3.7.4 and now when I'm in someones profile under the ADMINCP I have log in as this user and log in as user how do I get rid of the other links???

kellyandmark04 01-17-2009 01:20 AM

Nevermind I got it, I found that the other product from my previous version was still in the manage products page under a differet name and after a uninstall it took care of it and deleted the other.

M3xital 01-17-2009 10:45 AM

Thanks, working great!!

algor65 01-19-2009 04:15 PM

Quote:

Originally Posted by basil2070 (Post 1708671)
I installed this, but I see no link when I search for any members to login in their username.

The same happens to me...

TazzMann 01-20-2009 04:59 PM

Quote:

Originally Posted by VAN (Post 1711216)
Installed on 3.8. Logging in as a user works, but switching back does not. I get a white screen that says "You have no permission to use this function!".

I've cleared cookies already. Ideas?

I am having this same issue

TazzMann

Jason UK 01-20-2009 05:46 PM

Same issues here.

"You have no permissions to use this function!"

I am getting that in the Admin panel when I click "Set Admins"

It is weird, I am doing that as an Admin account.

Maybe I am being ignorant as to what a Super Admin is about.

Jason UK 01-21-2009 05:42 AM

Ok, me being dumb.

All you had to do guys is edit your config.php and put your user ID in the super administrator bit.

http://www.vbulletin.com/docs/html/what_is_superadmin

Then it will work fine.

VAN 01-21-2009 06:22 PM

Quote:

Originally Posted by Jason UK (Post 1719793)
Ok, me being dumb.

All you had to do guys is edit your config.php and put your user ID in the super administrator bit.

I've had my id listed there since day one. Still doesn't work.

VAN 01-21-2009 06:56 PM

The one below works with 3.8 Gold (but with one template edit)

https://vborg.vbsupport.ru/showthread.php?t=168819

steve1966 01-21-2009 07:41 PM

this one by cyb is working for me

mastertek2000 02-17-2009 09:05 AM

this is not working on 3.8.1 any idea????????????

gmerin 02-20-2009 08:12 PM

Quote:

Originally Posted by VAN (Post 1711216)
Installed on 3.8. Logging in as a user works, but switching back does not. I get a white screen that says "You have no permission to use this function!".

I've cleared cookies already. Ideas?

just installed and I have the same issue. I've tried all the suggestions here with no success.

gmerin 02-20-2009 08:21 PM

Quote:

Originally Posted by VAN (Post 1720400)
The one below works with 3.8 Gold (but with one template edit)

https://vborg.vbsupport.ru/showthread.php?t=168819

this one works perfectly on my v3.8.1

cono1717 02-23-2009 05:42 PM

This is so useful, thanks for the mod!

JohnBee 03-03-2009 04:38 AM

This ones wacked
Cookie problems and doesn't allow return on 3.8.1
Hope it gets fixed, I really liked this mod

peterle1 03-03-2009 02:18 PM

Quote:

Originally Posted by JohnBee (Post 1759038)
This ones wacked
Cookie problems and doesn't allow return on 3.8.1
Hope it gets fixed, I really liked this mod

You can only return when you lokk at a thread.
Think one can change this with an template edit.

KURTZ 03-05-2009 10:34 AM

onto 3.8.1 i've a 'no permission' error when i select the button, but if i refresh the page i'm logged with the other account ... it's weird ...

any tip to fix this?

monika 03-07-2009 11:01 AM

Thanks. works on 3.8.1:)

KURTZ 03-11-2009 02:49 PM

Quote:

Originally Posted by KURTZ (Post 1760937)
onto 3.8.1 i've a 'no permission' error when i select the button, but if i refresh the page i'm logged with the other account ... it's weird ...

any tip to fix this?

news about this issue? :confused:

Megatr0n 03-14-2009 02:53 PM

Done.

Valter 03-14-2009 06:35 PM

Thanks, this will be fixed.

You should remove error details from your post. ;)

updated 03-24-2009 09:03 PM

This seems to have a problem with logging in to a username that has an apostrophe/single quote in it. Otherwise seems fine in 3.8.1.

Invalid SQL: INSERT INTO `moderatorlog`
(userid, dateline, action, ipaddress)
VALUES ('x', '123456789', 'Logged in as <a href="http://----.com/member.php?u=1234">Example's Badname</a>', '1.2.3.4');

For a temporary workaround, I just changed the line that constructs that phrase ($cybltua_loginfo = ) to put in a userid instead of the name.

Thanks.

Sweeks 03-30-2009 09:16 AM

There is a serious security bug in this modification which can allow a member to access any user account. DO NOT INSTALL! Been hacked twice because of this product!
________
TOYOTA 4RUNNER

KURTZ 03-30-2009 09:52 AM

*uninstalled: waiting for Cyb's feedbacks and fixes ...

OmniBuzz 03-30-2009 02:48 PM

Installed and uninstalled (few issues with ssl) I 'll check it later...


All times are GMT. The time now is 03:02 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.05819 seconds
  • Memory Usage 1,816KB
  • 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
  • (11)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
  • (40)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