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

Viewing Unknown Page

Discussion in 'XenForo Development Discussions' started by Matthew Hawley, Jan 16, 2014.

  1. Matthew Hawley

    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?
     
  2. Vincent Gabriel

    Vincent Gabriel Active Member


    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.
     

Share This Page