1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. This forum is for release discussion only. Discussions that do not relate specifically to the resource release should be discussed in another, more appropriate forum.
    Dismiss Notice
  3. This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

Hide Member Count From Guests

Discussion in 'Template Modifications [Archive]' started by Scar3croW, Apr 14, 2011.

  1. Scar3croW

    Scar3croW New Member

    This template edit hides the member count from guests.

    Open forum_list and find:
    Code:
    <dl class="memberCount"><dt>{xen:phrase members_count}:</dt>
    <dd>{xen:number $boardTotals.users}</dd></dl>
    Add this before:
    Code:
    <xen:if is="{$visitor.user_id}">
    and this after:
    Code:
    <xen:else />
    
    </xen:if>
     

    Attached Files:

  2. Tilkißey

    Tilkißey Well-Known Member

    if you dont use else code, you can close xen:if tag like </xen:if> directly
    example
    HTML:
    <xen:if is="{$visitor.user_id}">
    <dl class="memberCount"><dt>{xen:phrase members_count}:</dt>
    <dd>{xen:number $boardTotals.users}</dd></dl>
    </xen:if>
    so, xen:else isnt necessary for using just condition is TRUE ;)
     
    Rob Fritz likes this.

Share This Page