XF 1.5 Removing the Members tab


Active member

I am trying to remove the Members tab, as I think this functionality should be part of the Forums tab and not a separate website section. I have removed the tab itself thanks to a quick CSS code in the EXTRA.css (courtesy of @Russ from pixelexit.com), however this means that when you are on a page where the Members tab would have been selected, no tab is selected which looks strange in my design. What I feel should happen is the Forums tab should remain selected, as the Members, to me at least, is part of the Forums.

Now I have found the following files in the XENFORO_DIR/library/XenForo/Route/Prefix directory which if edited from 'members' to 'forums' will highlight the Forums tab within member actions:

return $router->getRouteMatch('XenForo_ControllerPublic_Member', $action, 'members');

return $router->getRouteMatch('XenForo_ControllerPublic_Online', $action, 'members');

return $router->getRouteMatch('XenForo_ControllerPublic_ProfilePost', $action, 'members');

return $router->getRouteMatch('XenForo_ControllerPublic_RecentActivity', 'index', 'members');

return $router->getRouteMatch('XenForo_ControllerPublic_SpamCleaner', $action, 'members');

return $router->getRouteMatch('XenForo_ControllerPublic_Warning', $action, 'members');

This takes care of the Who's Online, profile pages, etc. However I would prefer to do this without a code edit if possible, for ease of upgrade reasons. Is there a template or other edit I can make to automate this without a PHP edit?

Also, the Search functionality by default does not highlight any tab, which is strange. Again this should keep the Forums tab highlighted.

Xenforo doesn't seem to realise that some websites are more than just a forum page, and the forum is just a part of their website. It's very frustrating - the forums should, in my opinion, act as a self-contained part of the site.

Any help or guidance would be very much appreciated :)
Top Bottom