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

new Text for not loogedIn on hascontent="true"

B

bogus

Guest
#1
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