Community

Forums » SEPHP Help and Tips

Network Stats

    • 307 posts
    March 13, 2018 4:41 PM EDT

    Hey All

    I would like to modify what is shown in the Network Stats and remove the amount of members registered. 

    I see that it is in a container called layout_core_statistics but I am unsure where to find this in the file structure as I am new to SE.

    Any help appreciated

    • 2292 posts
    March 14, 2018 6:36 AM EDT

    https://support.socialengine.com/php/customer/en/portal/articles/1638402-technical-overview?b_id=14386 that'll help some.

    Disregarding "layout" we see that you have "core_statistics" and so we look in the Core module for the widget "statistics" and we find that it's got a controller and a tpl file. First we check the tpl file as that's the easiest to work with and less likely to screw up on us.

    There it is:

    <li> <span><?php echo $this->locale()->toNumber($this->member_count); ?></span> <div><?php echo $this->translate(array('member', 'members', $this->member_count)) ?></div> </li>
    • 307 posts
    March 14, 2018 9:52 AM EDT

    BOOM - simple once you know where to look - thanks!

    • 2292 posts
    March 15, 2018 5:11 AM EDT

    You're welcome. :)