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

XF 1.2 Forum stats - Comment out Members:

#1
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
#2
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
#3
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;}
 

Brogan

XenForo moderator
Staff member
#6
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.
 
#7
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?