vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 5.x Products & Extensions (https://vborg.vbsupport.ru/forumdisplay.php?f=258)
-   -   Add-On Releases - Duckways: Admin - Log in as (https://vborg.vbsupport.ru/showthread.php?t=326564)

Jorandh 07-12-2018 09:00 PM

Duckways: Admin - Log in as
 
1 Attachment(s)
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

Quote:

Originally Posted by megabink (Post 2595550)
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

Quote:

Originally Posted by Fleiding (Post 2595556)
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

Quote:

Originally Posted by Jorandh (Post 2595560)
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

Quote:

Originally Posted by MarkFL (Post 2595575)
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

Quote:

Originally Posted by MarkFL (Post 2595575)
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

Quote:

Originally Posted by JoseyCampbell (Post 2597185)
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

Quote:

Originally Posted by MarkFL (Post 2597189)
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

Quote:

Originally Posted by snakes1100 (Post 2596788)
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

Quote:

Originally Posted by kevius (Post 2597317)
+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.

CQ2 10-02-2019 05:03 PM

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

Quote:

Originally Posted by CQ2 (Post 2600853)
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!

CQ2 04-04-2020 11:56 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

clauz 04-05-2020 09:28 AM

Quote:

Originally Posted by CQ2 (Post 2602469)
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

Code:

vB5_Auth::doLoginRedirect();
Replace it with
Code:

$referrer = $_SERVER['HTTP_REFERER'];
header('Location: '.$referrer.'');

done

RUBE 09-09-2020 11:28 AM

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

CQ2 03-08-2021 09:51 AM

Quote:

Originally Posted by yilmaz (Post 2603886)
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

Code:

vB5_Auth::doLoginRedirect();
Replace it with
Code:

$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

1 Attachment(s)
Quote:

Originally Posted by CQ2 (Post 2606593)
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 Code:

<?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, [ ] ) )
{
    
$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($userinfoarray_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

Quote:

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

I’ve 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.

ka99 09-04-2022 07:16 AM

Quote:

Originally Posted by yilmaz (Post 2606595)
This is more practical

THANK you Yilmaz, you have been always helpful.

Best Regards.


All times are GMT. The time now is 02:47 AM.

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.01344 seconds
  • Memory Usage 1,823KB
  • 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
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (33)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete