View Full Version : Add-On Releases - Duckways: Admin - Log in as
Jorandh
07-12-2018, 09:00 PM
https://vborg.vbsupport.ru/external/2018/03/5.png
Admin - Log in as
What is this mod all about?
Sometimes it comes in handy to access the account of one of your users. To fix issues, to debug or whatever. This plugin shows an "Log in as" button on the profile page for admins and super moderators. When clicked your session will be set to log in as the other user without filling in a password.
Button on profile page (only visible for admin and super moderator):
https://vborg.vbsupport.ru/external/2018/07/15.png
About Duckways
We're a company with a team of developers who have been working a lot on a vBulletin 4 system for two of our customers. The largest one with over 200,000 users and 4 million posts.
This one migrated to vBulletin 5 recently and we've faced quite some issues in vBulletin 5 which we'll fix by writing custom modifications. Some of those, which are worth sharing, will be added here on vBulletin.org. If you're missing a feature or add-on, please feel free to contact us.
How to install:
- Download the zip file below
- Upload the content of the upload folder to your vBulletin root.
- Install the XML by importing it as a new product.
Version history
1.0.0 - Initial release
Support
Please use this thread to ask questions or to report bugs.
megabink
07-13-2018, 04:59 PM
I used this a lot on my vB 4 version a few years back and i am very happy it finally made it to vB 5.
Thanks a million @Jorandh :up:
Fleiding
07-14-2018, 07:20 AM
I used this a lot on my vB 4 version a few years back and i am very happy it finally made it to vB 5.
Thanks a million @Jorandh :up:
Same here! This is now easily one of the best mods of vB5!
Jorandh
07-14-2018, 11:06 AM
Same here! This is now easily one of the best mods of vB5!
You would help us a lot by clicking the button "Vote for mod of the month" button! :D
Thanks for your support. We're currently preparing the zip files for an Trade/Sales feedback plugin and 2 other cool plugins that will come online very soon!
Stay tuned, the vBulletin 5 mod section is going to get active again...!
keyla31
07-14-2018, 02:10 PM
Works perfect, thank you so much!
megabink
07-14-2018, 03:14 PM
You would help us a lot by clicking the button "Vote for mod of the month" button! :D
!
Done!
MarkFL
07-14-2018, 04:03 PM
Mod Of The Month (MOTM) was discontinued some time ago. I don't even see the button.
Jorandh
07-14-2018, 04:50 PM
Mod Of The Month (MOTM) was discontinued some time ago. I don't even see the button.
Yikes.... Did this community go this inactive? It used to be so much more active around here....
megabink
07-15-2018, 04:01 PM
Mod Of The Month (MOTM) was discontinued some time ago. I don't even see the button.
Yes your right the button is gone...i used the rate (stars) option instead.
snakes1100
10-13-2018, 04:08 PM
Anyone having an issue with the link not showing up using 5.4.4?
snakes1100
10-13-2018, 05:41 PM
Okay, scratch that, it appears that you have to use the xml from \upload\core\packages\duckwaysloginas
If you use the xml from the main xml folder, it wont work.
snakes1100
10-14-2018, 03:01 PM
A link to log back into your account should be added to this.
JoseyCampbell
11-04-2018, 08:06 PM
Not Working
MarkFL
11-04-2018, 10:48 PM
Not Working
Not to be snarky, but that tells the product developer virtually nothing. When you take your car to the shop, do you simply tell them "it's not working correctly" or do you give them some kind of information that helps them to identify the issue?
JoseyCampbell
11-05-2018, 12:06 AM
Not to be snarky, but that tells the product developer virtually nothing. When you take your car to the shop, do you simply tell them "it's not working correctly" or do you give them some kind of information that helps them to identify the issue?
Sorry was in a rush. Ill give more details in a few
JoseyCampbell
11-05-2018, 12:08 AM
This is what i get when i try to use the mod.
Invalid Page URL. If this is an error and the page should exist, please contact the system administrator and tell them how you got this message.
JoseyCampbell
11-09-2018, 06:49 PM
So is there any insight or did you just come to say something about a lack of context in my first post?
kevius
11-10-2018, 02:11 PM
A link to log back into your account should be added to this.
+1
Is it possible to make an update with this possibility ?
tks a lot
Jorandh
12-12-2018, 12:14 PM
+1
Is it possible to make an update with this possibility ?
tks a lot
We'll look into updating this plugin for the latest version of vB :) Stay tuned!
XGC Viper XI
01-27-2019, 09:54 PM
Does all admins get access to use this? If so is there a admin permission I can give to selected admins? Or is it only for headadmins?
This would be a good mod but I don't want all admins and super moderators having complete access to other profiles.
Hi :)
Installed on vB5.5.4 and the hook was showing on all user groups. How can I fix this?
Thanks
panzerscope
10-14-2019, 11:27 AM
Hi :)
Installed on vB5.5.4 and the hook was showing on all user groups. How can I fix this?
Thanks
I have sent a PM to the dev who made this. Hopefully we see a response.
Artes_Marciales
12-05-2019, 04:42 PM
I love this MOD but I think it doesn't work in vB5.5.5
I hope they make it compatible with vb 5.5.5
Thanks!
Just too sad vBulletin makes it next to impossible to create useful tools and hooks.
I regret I was stupid enough to "upgrade" from vB3 and buy a vB5 license.
Lesson learnt and never ever again I will waste my money for another "great" upgrade.
It is obvious the coding has been set to prevent any third party to be applied as it used to when hardly any hooks works anymore yet new to come.
Thank you to all of you guys who have brought us all the fun over the years.
And to the vBulletin - You really suck in caring for your customers. Not even a default chatbox
available. :down:
CQ2
clauz
04-05-2020, 09:28 AM
Just too sad vBulletin makes it next to impossible to create useful tools and hooks.
I regret I was stupid enough to "upgrade" from vB3 and buy a vB5 license.
Lesson learnt and never ever again I will waste my money for another "great" upgrade.
It is obvious the coding has been set to prevent any third party to be applied as it used to when hardly any hooks works anymore yet new to come.
Thank you to all of you guys who have brought us all the fun over the years.
And to the vBulletin - You really suck in caring for your customers. Not even a default chatbox
available. :down:
CQ2
I totally agree.
Since 8 years (I guess VB5 was released in 2012) VB5 is still an incomplete software.
No major improvements, not even 10% of VB4 options are available for VB5.
After 8 years!
yilmaz
09-04-2020, 02:59 AM
It will work if you do this in vB5.6.x
File to be edited reauth.php
file path
core/packages/duckwaysloginas/admin/reauth.php
Find
vB5_Auth::doLoginRedirect();
Replace it with
$referrer = $_SERVER['HTTP_REFERER'];
header('Location: '.$referrer.'');
done
Hello,
It works fine on VB Version 5.6.3 after doing the edit mentioned above on the reauth.php file.
Have a Nice Day!
RUBE
It will work if you do this in vB5.6.x
File to be edited reauth.php
file path
core/packages/duckwaysloginas/admin/reauth.php
Find
vB5_Auth::doLoginRedirect();
Replace it with
$referrer = $_SERVER['HTTP_REFERER'];
header('Location: '.$referrer.'');
done
Much obliged yilmaz
I will make another attempt and use the fix you have provided. However my over all impression of vB5 is I have been sold the "cat in the bag"
CQ2
yilmaz
03-08-2021, 06:47 PM
Much obliged yilmaz
I will make another attempt and use the fix you have provided. However my over all impression of vB5 is I have been sold the "cat in the bag"
CQ2
This is more practical
<?php
define('CSRF_PROTECTION', false);
$currentSession = vB_Api::instance('user')->fetchUserinfo();
// Let's log off and log in to a new account
if ( isset ( $_GET['userid'] )
&& can_administer()
&& is_member_of($currentSession, [ 6 ] ) )
{
$user = (object)vB_Api::instance('user')->fetchUserinfo( $_GET['userid'] );
vB::getDbAssertor()->delete('session', array('sessionhash' => vB::getCurrentSession()->get('dbsessionhash')));
$username = vB_String::htmlSpecialCharsUni( $user->username );
$userinfo = vB::getDbAssertor()->getRow('user', array('userid' => $user->userid));
$auth = array_intersect_key($userinfo, array_flip(['userid', 'lastvisit', 'lastactivity']));
$loginInfo = vB_User::processNewLogin($auth, '');
vB5_Auth::setLoginCookies($loginInfo, '', false);
$url = unhtmlspecialchars($vbulletin->url);
print_cp_redirect_old($url);
die();
}
migratoria
03-11-2021, 08:17 PM
This is more practical
Thank you
clauz
08-25-2021, 11:15 AM
Hello,
The "login as user" can be seen outside group "6" (Administrators).
Also Super Moderators can use this feature?
How can I disable it for them?
Chris Tucker
03-14-2022, 06:24 PM
Ive followed the directions on an attempted install on vB 5.6.6 a couple of times and not had any luck. Can the developer offer any guidance? Thanks in advance.
This is more practical
THANK you Yilmaz, you have been always helpful.
Best Regards.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.