• 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?

Kevin

Well-known member
#1
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:
 

skhms

Active member
#2
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