D
DirtRider
Guest
Ah thanks that worked for me. I see it does not show me the start conversation option if I am logged in as a user
Try clicking on the member card of a user other than the user you are logged in as.Ah thanks that worked for me. I see it does not show me the start conversation option if I am logged in as a user
Sounds like you have a permissions issue with that user not being able to start a conversation then. This add-on will replicate exactly what that person can see, so it sounds like their report was accurate.Yes this is what I did as they reporting they cannot start a conversation with me so I needed to test this feature on their account. I also tried to see if they could start one with another member also does not show that option.
public function updateSessionActivity($userId, $ip, $controllerName, $action, $viewState, array $inputParams, $viewDate = null, $robotKey = '')
{
if (!XenForo_Application::get('session')->isRegistered('loggedInAs')
|| !XenForo_Application::get('options')->get('waindigo_loginAsUser_stealthLogin'))
{
parent::updateSessionActivity($userId, $ip, $controllerName, $action, $viewState, $inputParams, $viewDate, $robotKey);
}
}
if (strlen($listener[0][0]) > strlen($addOnId) && substr($listener[0][0], 0, strlen($addOnId)) == $addOnId) {
There's a few breaking changes that have affected this add-on, @Waindigo that I have fixed for myself.
First, Waindigo_LoginAsUser_Extend_XenForo_Model_User From Line: 97. Change to:
PHP:public function updateSessionActivity($userId, $ip, $controllerName, $action, $viewState, array $inputParams, $viewDate = null, $robotKey = '') { if (!XenForo_Application::get('session')->isRegistered('loggedInAs') || !XenForo_Application::get('options')->get('waindigo_loginAsUser_stealthLogin')) { parent::updateSessionActivity($userId, $ip, $controllerName, $action, $viewState, $inputParams, $viewDate, $robotKey); } }
Second, Waindigo_Listener_ControllerPreDispatch Line: 176. Change to:
PHP:if (strlen($listener[0][0]) > strlen($addOnId) && substr($listener[0][0], 0, strlen($addOnId)) == $addOnId) {
This fix is incorrect. Please wait for update to be released.Thanks for the fix. Where can I find Waindigo_Listener_ControllerPreDispatch?
I've looked at
/library/Waindigo/LoginAsUser/Listener
But couldn't find line 176.
This fix is incorrect. Please wait for update to be released.
I managed to fix this by Chris' first fix. Just edit the file in /library/Waindigo/LoginAsUser/Here's what the server error code looks like. It completely breaks the site when enabled and not even in use.
Server Error
Declaration of Waindigo_LoginAsUser_Extend_XenForo_Model_User::updateSessionActivity() should be compatible with that of XenForo_Model_User::updateSessionActivity()
- XenForo_Application::handlePhpError() in XenForo/Autoloader.php at line 119
- XenForo_Autoloader::autoload() in XenForo/Autoloader.php at line 119
- XenForo_Autoloader->autoload() in XenForo/Application.php at line 897
- XenForo_Application::autoload() in XenForo/Application.php at line 421
- XenForo_Application::resolveDynamicClass() in XenForo/Model.php at line 189
- XenForo_Model::create() in XenForo/Visitor.php at line 403
- XenForo_Visitor::setup() in XenForo/Session.php at line 366
- XenForo_Session::startAdminSession() in XenForo/ControllerAdmin/Abstract.php at line 48
- XenForo_ControllerAdmin_Abstract->_setupSession() in XenForo/Controller.php at line 304
- XenForo_Controller->preDispatch() in XenForo/FrontController.php at line 334
- XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
- XenForo_FrontController->run() in blahblah/admin.php at line 13
Yes. Whatever I did I got the popup saying I was banned. Perfectly logical - but a big problem and this could happen on multi manager sites.Hey @Morgain I just want to clarify your issue so I don't repeat that process. You basically logged in as a banned user and was unable to switch back correct?
We use essential cookies to make this site work, and optional cookies to enhance your experience.