• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Lack of interest Alternative to "Viewing unknown page" phrase on current visitors page

xf_phantom

Well-known member
#1
It would be nice, if the admins would get a better message (e.g.the controllername) instead of the default "viewing unknown page" phrase on the current visitors page.

Once you have several addons, it's really hard to find the controller without a custom getSessionActivityDetailsForList function causing this message.
 
Last edited:

Jeremy

Well-known member
#3
If you are viewing a page that doesn't define the session activity, it displays "Viewing Unknown Page." The suggestion has nothing to do with the phrase for when you are viewing the page.
 

Amaury

Well-known member
#4
If you are viewing a page that doesn't define the session activity, it displays "Viewing Unknown Page." The suggestion has nothing to do with the phrase for when you are viewing the page.
Well, that I understand, but Current Visitors does define session activity, doesn't it?
 

xf_phantom

Well-known member
#9
A possible solution would be to implement it into http://xenforo.com/community/threads/add-template-title-to-debuginfo.57480/ (if such cool debugbar make it ever into the core:D )

Replacing the current code with
PHP:
  public static function getSessionActivityDetailsForList(array $activities)
  {
  if (XenForo_Application::debugMode()){
  return 'getSessionActivityDetailsForList not implemented in ' . get_called_class();
  }
  return parent::getSessionActivityDetailsForList($activities);
  }
would also be a HUGE improvement:p
 

Attachments

Last edited by a moderator: