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

Sidebar Avatars 1.1.0

Replaces usernames on the list of online users with their avatars

  1. Chris D

    Chris D XenForo Developer Staff Member

    Chris D submitted a new resource:

    Sidebar Avatars - Replaces usernames on the list of online users with their avatars

    Read more about this resource...
     
    Last edited: May 25, 2014
    Mirovinger likes this.
  2. RoldanLT

    RoldanLT Well-Known Member

    I think, this is the template for BD Widget: wf_widget_online_users
     
  3. The Forum Heroes

    The Forum Heroes Well-Known Member

  4. Pinn

    Pinn Active Member

    Not works on Framework is not good, please compatible. thanks!
     
  5. PaulK

    PaulK Member

    How would you edit wf_widget_online_users to get both add-ons to work together?
     
  6. Chris D

    Chris D XenForo Developer Staff Member

    Just copy the code from my template to theirs.
     
  7. PaulK

    PaulK Member

    In the wf_widget_online_users template I found:

    Code:
    <xen:if is="{$i} <= {$onlineUsers.limit}">
                        <li class="user-{$user.user_id}">
                        <xen:if is="{$user.user_id}">
                            <xen:username user="$user" rich="{$widget.options.rich}" class="{xen:if '!{$user.visible}', ' invisible'}{xen:if {$user.followed}, ' followed'}" /><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>
    And changed it to:

    Code:
    <xen:require css="sidebaravatars_sidebar_online_users.css" />
    
    <xen:if is="{$i} <= {$onlineUsers.limit}">
        <li title="{$user.username}" class="Tooltip sidebarAvatar">
            <xen:if is="{$user.user_id}">
                <xen:avatar user="$user" size="s" img="true" class="_plainImage{xen:if '!{$user.visible}', ' invisible'}{xen:if {$user.followed}, ' followed'}" />
            <xen:else />
                {xen:phrase guest}<xen:if is="{$i} < {$onlineUsers.limit}">,</xen:if>
            </xen:if>
        </li>
    </xen:if>
    It works but the avatars are showing up as 48px by 48px, how can I get them down to 32px by 32px?
     
  8. Chris D

    Chris D XenForo Developer Staff Member

  9. Robby

    Robby Well-Known Member

    How do you activate this?
     
  10. Chris D

    Chris D XenForo Developer Staff Member

    It should be activated by default once it is installed.
     
  11. Robby

    Robby Well-Known Member

    doesnt work with me...
     
  12. Chris D

    Chris D XenForo Developer Staff Member

    I don't really have enough information to help you with that.

    I'd probably need full access to your Admin CP to work out why.
     
  13. Jens1986

    Jens1986 Active Member

    Last edited: Jun 24, 2014
  14. Chris D

    Chris D XenForo Developer Staff Member

    I no longer maintain the code for that add-on so you should probably ask them first.
     
  15. Abnormalyze

    Abnormalyze Member

    Would it be possible to make this work for the sidebar Staff Users Online widget?
     
  16. Chris D

    Chris D XenForo Developer Staff Member

    Staff avatars are already shown there.
     
  17. Thom Tyler

    Thom Tyler Well-Known Member

    He means will it be possible to have just the avatars with the tooltip Chris - Which is exactly what I was about to ask.
     
  18. trigatch4

    trigatch4 Member

    Do the avatars cut off at a certain member count? If you've got 12,000 people online will it try to show 12,000 avatars? Hard to tell since I'm working on a dev forum but would be helpful to know how it behaves.
     
    51463 likes this.
  19. Will mangles

    Will mangles Member

    Any plans to make this compatible with 1.4 ?
     
  20. Chris D

    Chris D XenForo Developer Staff Member

    To the best of my knowledge (I haven't tested it) it already does.
     

Share This Page