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)

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


All times are GMT. The time now is 05:46 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.01159 seconds
  • Memory Usage 1,757KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (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