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

XF 1.4 How to change online users color same they title color ?

Discussion in 'XenForo Questions and Support' started by khurshed, Jan 31, 2015.

  1. khurshed

    khurshed Member

    Hi guys ,
    Please help , how to change color of online users bottom of page ?
    Our web staying now all users grey , how to change color same like they title color ?
     
  2. Amaury

    Amaury Well-Known Member

    Can you provide a screenshot of what you want to change, exactly?
     
  3. CommanderMadi

    CommanderMadi Member

    If you mean to change it in the "members online now" block. Do the following:

    Go to templates >> Find the template called "sidebar_online_users" >> Search for :

    Code:
    <ol class="listInline">
                    <xen:foreach loop="$onlineUsers.records" value="$user" i="$i">
                        <xen:if is="{$i} <= {$onlineUsers.limit}">
                            <li>
                            <xen:if is="{$user.user_id}">
                                <a href="{xen:link members, $user}"
                                    class="username{xen:if '!{$user.visible}', ' invisible'}{xen:if {$user.followed}, ' followed'}">{$user.username}</a><xen:if is="{$i} < {$onlineUsers.limit}">,</xen:if>
                            <xen:else />
                                {xen:phrase guest}<xen:if is="{$i} < {$onlineUsers.limit}">,</xen:if>
                            </xen:if>
                            </li>
                        </xen:if>
                    </xen:foreach>
                    <xen:if is="{$onlineUsers.recordsUnseen}">
                        <li class="moreLink">... <a href="{xen:link online}" title="{xen:phrase see_all_visitors}">{xen:phrase and_x_more, 'count={xen:number $onlineUsers.recordsUnseen}'}</a></li>
                    </xen:if>
                </ol>
    Replace it with:

    Code:
    <ol class="listInline">
                    <xen:foreach loop="$onlineUsers.records" value="$user" i="$i">
                        <xen:if is="{$i} <= {$onlineUsers.limit}">
                            <li>
                            <xen:if is="{$user.user_id}">
                                <a href="{xen:link members, $user}"
                                    class="username{xen:if '!{$user.visible}', ' invisible'}{xen:if {$user.followed}, ' followed'}">{xen:helper richUserName, $user}</a><xen:if is="{$i} < {$onlineUsers.limit}">,</xen:if>
                            <xen:else />
                                {xen:phrase guest}<xen:if is="{$i} < {$onlineUsers.limit}">,</xen:if>
                            </xen:if>
                            </li>
                        </xen:if>
                    </xen:foreach>
                    <xen:if is="{$onlineUsers.recordsUnseen}">
                        <li class="moreLink">... <a href="{xen:link online}" title="{xen:phrase see_all_visitors}">{xen:phrase and_x_more, 'count={xen:number $onlineUsers.recordsUnseen}'}</a></li>
                    </xen:if>
                </ol>
     
  4. khurshed

    khurshed Member

  5. CommanderMadi

    CommanderMadi Member

  6. Amaury

    Amaury Well-Known Member

    That looks like one of @Russ' styles. Without a link to your site, though, it's hard to get you the CSS needed.
     
  7. CommanderMadi

    CommanderMadi Member

  8. khurshed

    khurshed Member

    I did , nothing change but web stared give error messages after i did this stared work slow WEB
     
  9. khurshed

    khurshed Member

    So , how i can change ?
     
  10. khurshed

    khurshed Member

    Hello ,
    Please guys respond .
     

Share This Page