XF 1.2 Forum stats - Comment out Members:

william1872

Member
Hi all,

I wanted to temp comment out the 'Members:' displayed on my forum, however I'm not sure which template / code to comment out?

Only need this to be a temp thing until we grow our member base, we're currently just under 100 members and I wanted to make the total member count private until we gain traction.

Any help appreciated : )
 

Jeremy

Well-known member
I'm assuming you are talking about the members online block. If so, edit the sidebar_online_users template and surround it with a <xen:comment> and </xen:comment> tag.
 

Shelley

Well-known member
Hi all,

I wanted to temp comment out the 'Members:' displayed on my forum, however I'm not sure which template / code to comment out?

Only need this to be a temp thing until we grow our member base, we're currently just under 100 members and I wanted to make the total member count private until we gain traction.

Any help appreciated : )
You could add the following in your extra.css template.

Edit: this would hide the whole line. Members: and the members count

Code:
#boardStats .memberCount {display: none;}
 

william1872

Member
I'm assuming you are talking about the members online block. If so, edit the sidebar_online_users template and surround it with a <xen:comment> and </xen:comment> tag.
Thanks Jeremy, it's the total number of members registered on our forum
 

Brogan

XenForo moderator
Staff member
You can do what Shelley suggest above which will hide it.
If you want to remove it completely, edit the forum_list template and wrap this bit of code in xen:comment tags:
Code:
<dl class="memberCount"><dt>{xen:phrase members_count}:</dt>
                        <dd>{xen:number $boardTotals.users}</dd></dl>
Like so:
Code:
<xen:comment><dl class="memberCount"><dt>{xen:phrase members_count}:</dt>
                        <dd>{xen:number $boardTotals.users}</dd></dl></xen:comment>
Or just delete it completely.
 

william1872

Member
Thanks guys really appreciate your help, as you can tell I totally suck at coding although starting to find my way around xenforo, really like it : )

I've done the code update but it's still showing, however I'm on cloudflare, just flushed the cache and hoping that'll do the trick?
 
Top