Announcement

Collapse
No announcement yet.

Hiding statiscs on forum home

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Hiding statiscs on forum home

    In the forum home template how do I show the number of members to admins and mods only? This is only because I'm running a competition to guess the 5000th user and want it only visible to admins and mods after 4900 members as I don't want any members to snipe at the last minute.

    Cheers

    Vulture

  • #2
    Look for the following:

    Code:
    </tbody>
    <tbody id="collapseobj_forumhome_stats" style="$vbcollapse[collapseobj_forumhome_stats]">
    	<tr>
    		<td class="alt2"><img src="$stylevar[imgdir_misc]/stats.gif" alt="<phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>" border="0" /></td>
    		<td class="alt1">
    		<div class="smallfont">
    			[color=red]<if condition="$bbuserinfo[usergroupid] == 6 OR $bbuserinfo[usergroupid] == 5 OR $bbuserinfo[usergroupid] == 7">[/color]<div>$vbphrase[threads]: $totalthreads, $vbphrase[posts]: $totalposts, $vbphrase[members]: $numbermembers</div>[color=red]</if>[/color]
    			<div><phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase></div>
    		</div>
    		</td>
    	</tr>
    </tbody>
    Add the code in red. That should do it.

    MGM out

    Comment


    • #3
      Thanks.

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...
      X