Alter Ego Detector

Alter Ego Detector 1.7.8

No permission to download
@Liam W - I've tried setting the bypass to 'Allow' for the members I want to white-list but am still getting reports for them.

The permission isn't where I expected to see it though - it's listed under General Moderator Permissions - is that correct (since these members are not moderators)?

Cheers,
Shaun :D
 
Last edited:
@Liam W any feedback on why the bypass is not working?

Thanks,
Shaun :D
Either the permission is set to no or never somewhere, or there is a bug ;)

Ok, annoyingness aside, could you confirm with the permissions analyser that it is definitely set to allow?

Liam
 
Either the permission is set to no or never somewhere, or there is a bug ;)

Ok, annoyingness aside, could you confirm with the permissions analyser that it is definitely set to allow?

Liam

Thanks for the quick reply Liam.

Yes, it's set to Allow (but as I mentioned previously, it appears under Moderator permissions - is this what is stopping it working?):

upload_2013-12-4_17-22-57.webp

Shouldn't this permission be under General Permissions?

Cheers,
Shaun :D
 
@Clickfinity no, the permissions group doesn't matter (as far as I am aware). I put it there as it is likely to be used for moderators ;)

I'll have a check - it might be that the cookie isn't getting deleted, or the permissions check is ignored if a cookie already exists.

Liam
 
@Liam W, your isBanned Check is broken in 1.3:
PHP:
        $bypasscheck = $visitor->hasPermission('general', 'aedbypass');

        $isBannedCheck = ($options->aedcheckbanned ? !$visitor->get('is_banned') : true);

        if ($cookie && !$bypasscheck && $isBannedCheck)
        {
            if ($cookie != $thisuserid)
            {
                // AE DETECTED

                $options = XenForo_Application::getOptions();

$options does not exist at that point. the line "$options = XenForo_Application::getOptions();" needs moving up with the other initialization, like around line 10.
 
@Liam W, your isBanned Check is broken in 1.3:
PHP:
        $bypasscheck = $visitor->hasPermission('general', 'aedbypass');

        $isBannedCheck = ($options->aedcheckbanned ? !$visitor->get('is_banned') : true);

        if ($cookie && !$bypasscheck && $isBannedCheck)
        {
            if ($cookie != $thisuserid)
            {
                // AE DETECTED

                $options = XenForo_Application::getOptions();

$options does not exist at that point. the line "$options = XenForo_Application::getOptions();" needs moving up with the other initialization, like around line 10.

Ah, thanks for that. Zend studio isn't clever enough to pick that up...
 
This does not actually check the database for multiple accounts retroactive once installed, correct? IOW it only begins working once installed by checking registrations? By checking log ins? Not sure how.
 
Nice add-on.

Can you add a couple of additional options/changes please.
  1. give option in ACP to enable/disable PM being sent to the alter ego user.
  2. block Super Admin from being detected as having an alter ego.
Let me know if you can do these, thanks.
 
Getting 2 server errors with the new updates:

ErrorException: Undefined variable: options - library/AlterEgoDetector/ControllerPublic/Login.php:27
Generated By: Russell Street, Yesterday at 8:46 AM
Stack Trace
#0 forum/library/AlterEgoDetector/ControllerPublic/Login.php(27): XenForo_Application::handlePhpError(8, 'Undefined varia...', '/home/wdwvnet/p...', 27, Array)
#1 forum/library/XenForo/FrontController.php(337): AlterEgoDetector_ControllerPublic_Login->actionLogin()
#2 public_html/forum/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#3 /public_html/forum/index.php(13): XenForo_FrontController->run()
#4 {main}
Request State
array(3) {
["url"] => string(37) "http://forum/forum/login/login"
["_GET"] => array(0) {
}
["_POST"] => array(7) {
["login"] => string(14) "russell street"
["register"] => string(1) "0"
["password"] => string(8) "********"
["remember"] => string(1) "1"
["cookie_check"] => string(1) "1"
["redirect"] => string(52) "/forum/threads/what-are-you-wearing-today.86/page-37"
["_xfToken"] => string(8) "********"

Code:
ErrorException: Trying to get property of non-object - library/AlterEgoDetector/ControllerPublic/Login.php:27
Generated By: Russell Street, Yesterday at 8:46 AM
Stack Trace

#0 public_html/forum/library/AlterEgoDetector/ControllerPublic/Login.php(27): XenForo_Application::handlePhpError(8, 'Trying to get p...', '/home/wdwvnet/p...', 27, Array)
#1 public_html/forum/library/XenForo/FrontController.php(337): AlterEgoDetector_ControllerPublic_Login->actionLogin()
#2 public_html/forum/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#3 public_html/forum/index.php(13): XenForo_FrontController->run()
#4 {main}

Request State

array(3) {
  ["url"] => string(37) "http://forum/forum/login/login"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(7) {
    ["login"] => string(14) "russell street"
    ["register"] => string(1) "0"
    ["password"] => string(8) "********"
    ["remember"] => string(1) "1"
    ["cookie_check"] => string(1) "1"
    ["redirect"] => string(52) "/forum/threads/what-are-you-wearing-today.86/page-37"
    ["_xfToken"] => string(8) "********"
  }
}
 
Getting 2 server errors with the new updates:



Code:
ErrorException: Trying to get property of non-object - library/AlterEgoDetector/ControllerPublic/Login.php:27
Generated By: Russell Street, Yesterday at 8:46 AM
Stack Trace

#0 public_html/forum/library/AlterEgoDetector/ControllerPublic/Login.php(27): XenForo_Application::handlePhpError(8, 'Trying to get p...', '/home/wdwvnet/p...', 27, Array)
#1 public_html/forum/library/XenForo/FrontController.php(337): AlterEgoDetector_ControllerPublic_Login->actionLogin()
#2 public_html/forum/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#3 public_html/forum/index.php(13): XenForo_FrontController->run()
#4 {main}

Request State

array(3) {
  ["url"] => string(37) "http://forum/forum/login/login"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(7) {
    ["login"] => string(14) "russell street"
    ["register"] => string(1) "0"
    ["password"] => string(8) "********"
    ["remember"] => string(1) "1"
    ["cookie_check"] => string(1) "1"
    ["redirect"] => string(52) "/forum/threads/what-are-you-wearing-today.86/page-37"
    ["_xfToken"] => string(8) "********"
  }
}

The most recent one?

Willnlook into it.

Sorr for not replying all, I didn't get subscription emails for some reason.
 
Nice add-on.

Can you add a couple of additional options/changes please.
  1. give option in ACP to enable/disable PM being sent to the alter ego user.
  2. block Super Admin from being detected as having an alter ego.
Let me know if you can do these, thanks.

1 possible, 2 already exists - user group/user permissions.
 
This does not actually check the database for multiple accounts retroactive once installed, correct? IOW it only begins working once installed by checking registrations? By checking log ins? Not sure how.

Correct. Checks for a cookie on login.
 
Top Bottom