1. 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"

Discussion in 'XenForo Questions and Support' started by bogus, Apr 25, 2011.

  1. bogus

    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
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

  3. bogus

    bogus Guest

    Great. Thanks. I will post the Temp Modification soon ;)
     
  4. bogus

    bogus Guest

    Just finished it ;) Take a look. If you see any Errors please tell me ;)
    I will post it later. Have to take dinner now ;)
     
  5. Brogan

    Brogan XenForo Moderator Staff Member

    Looks good.
     

Share This Page