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

Guide for adding 'Current Members' listing for add-ons?

Discussion in 'XenForo Development Discussions' started by Kevin, Aug 17, 2011.

  1. Kevin

    Kevin Well-Known Member

    I've been following the various guides about creating custom add-ons with pages & routes but I'm not finding any guides that also talk about how to update the 'Current Visitors' page so that the activity for the person on the new page (eg: mySite.com/myPage.com) shows them as being on the new page (myPage) as opposed to the generic viewing index.

    Thanks :oops:
     
  2. skhms

    skhms Active Member

    From XenForo_ControllerPublic_Index.
    PHP:
    public static function getSessionActivityDetailsForList(array $activities)
    {
        return new 
    XenForo_Phrase('viewing_forum_list');
    }
    Add that function, with a slightly different phrase perhaps, to your own controller and you should be good to go. :)
    For more advanced stuff check XenForo_ControllerPublic_Thread.

    /SK
     
  3. ragtek

    ragtek Guest

Share This Page