new Text for not loogedIn on hascontent="true"

  • Thread starter Thread starter bogus
  • Start date Start date
B

bogus

Guest
Hello.
I would like to display a text for Not logged in Users in the "Staff online now" Block

This is the core code of the Block, i use
Code:
<xen:if hascontent="true">
            <ul>
                <xen:contentcheck>
                    <xen:foreach loop="$onlineUsers.records" value="$user">
                        <xen:if is="{$user.is_moderator} OR {$user.is_admin}">
                        <li>
                            <xen:username user="$user" class="Tooltip" title="{$user.username}, {xen:helper userTitle, $user}" />
                        </li>
                        </xen:if>
                    </xen:foreach>
                </xen:contentcheck>
            </ul>
        </xen:if>

Maybe anyone can help me with what i have to add to show, for example "You must be logged in to see Staff online" to not logged in Users. Thanks a lot
 
Top Bottom