Viewing Unknown Page

Matthew Hawley

Well-known member
How do I set a name for my addon for when it says "viewing unknown page?"

I found this in a thread
Code:
public static function getSessionActivityDetailsForList(array $activities)

But I don't adding that "as is" will do anything.

What else do I have to do?
 
How do I set a name for my addon for when it says "viewing unknown page?"

I found this in a thread
Code:
public static function getSessionActivityDetailsForList(array $activities)

But I don't adding that "as is" will do anything.

What else do I have to do?


Looking at the Xenforo ControllerPublic methods you'll need to add something like this to your ControllerPublic/* files/classes


PHP:
/**
    * Session activity details.
    * @see XenForo_Controller::getSessionActivityDetailsForList()
    */
    public static function getSessionActivityDetailsForList(array $activities)
    {
        return new XenForo_Phrase('viewing_category');
    }

You basically return a phrase of what exactly is the user currently doing in your case.
 
Top Bottom