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

Viewing Page

Discussion in 'XenForo Development Discussions' started by siwi, Sep 3, 2013.

  1. siwi

    siwi Member

    Hi there

    My addon create a new page in Xenforo. But when a user is viewing this page, in the member card we can see "viewing unknown page".
    So my question how can I set a name for the viewing page?

    Best Regards
    Silvan
     
  2. Jeremy

    Jeremy XenForo Moderator Staff Member

    You need to set the session activity in your controller. I don't know the name off hand, but any XenForo controller includes the function.
     
    siwi, Chris D and Pereira like this.
  3. Chris D

    Chris D XenForo Developer Staff Member

    Yeah Jeremy is spot on.

    Some of the controllers functions are a little bit more simple than others.

    So unless your session activity needs to detail the content being viewed or similar for a simple action check out the relevant function in the Conversation controller which simply returns the Engaged in Conversation phrase.
     
    siwi likes this.
  4. siwi

    siwi Member

    Thanks to you both. I found the function which I looked for:
    public static function getSessionActivityDetailsForList(array $activities)

    And it works for me!

    Thanks
     
    Daniel Hood, Chris D and Pereira like this.

Share This Page