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

Fixed member_card_stats1 / member_card_stats2 results in squished stats

Discussion in 'Resolved Bug Reports' started by Onimua, Apr 1, 2011.

  1. Onimua

    Onimua Well-Known Member

    If you want to add another link to the member card, you end up squishing the stats section into an undesirable mass.

    This is all I'm using in the template used for the hook:
    <th>{xen:phrase lnblog_entry_count}:</th> <td><a href="{$blogLink}" class="concealed">{xen:number $entryCount}</a></td>

    Is there not a better way to do it, perhaps either making the member card more flexible width-wise, or change it so the added links appear underneath either of the two column rather than making a third?
  2. Kier

    Kier XenForo Developer Staff Member

    Not really, the member card uses an image background and isn't really intended to be extended unless you supply an alternative background image that accommodates the new data.
  3. Onimua

    Onimua Well-Known Member

    Hm... I guess a little EXTRA.css work might be in order for me then, but then I'm not sure what would happen if another add-on decides to do something similar and we end up fighting over the space and each try to provide our own styling. Or if permissions prevent the user from being able to see the extra info, then you end up with a bit of unused space.

    Would it be possible to shift this over to suggestions then for maybe something to look at again down the road?
  4. Brogan

    Brogan XenForo Moderator Staff Member

    Moved as requested :)
  5. Kier

    Kier XenForo Developer Staff Member

    I've altered the layout and hook structure for the member card so it's a little more flexible now.
    Onimua likes this.
  6. Kier

    Kier XenForo Developer Staff Member

    <dl class="userStats pairsInline">
    <xen:hook name="member_card_stats">
    	<dt>{xen:phrase member_since}:</dt> <dd>{xen:date $user.register_date}</dd>
    	<!-- slot: pre_messages -->
    	<dt>{xen:phrase messages}:</dt> <dd><a href="{xen:link search/member, '', 'user_id={$user.user_id}'}" class="concealed">{xen:number $user.message_count}</a></dd>
    	<!-- slot: pre_likes -->
    	<dt>{xen:phrase likes_received}:</dt> <dd>{xen:number $user.like_count}</dd>
    	<!-- slot: pre_trophies -->
    	<dt>{xen:phrase trophy_points}:</dt> <dd><a href="{xen:link members/trophies, $user}" class="concealed OverlayTrigger">{xen:number $user.trophy_points}</a></dd>
  7. Onimua

    Onimua Well-Known Member

    Very much appreciated. (y)
  8. Jeremy

    Jeremy XenForo Moderator Staff Member


    I like the new design... to an extent. It allows for greater customization, but if you have more than 1,000 posts, "Like's Received:" and the number are on two separate lines. Possible add a two per line rule?
  9. Kier

    Kier XenForo Developer Staff Member

    That basically takes us back to the original problem where there was no space available. The current solution is really the only way to allow that area to be extended. It's somewhat modeled on the new Facebook info summary at the top of profile pages.

    Screen shot 2011-04-02 at 20.03.35.png
    erich37 likes this.
  10. Jeremy

    Jeremy XenForo Moderator Staff Member

    Eh, never liked Facebook's design in that area. just asking, but could a CSS sprite be used for the top bar and bottom bar, and a repeating background allow for greater up/down expandability? I'm not that great with CSS, so that may be completely in the wrong direction.
  11. Onimua

    Onimua Well-Known Member

    I like the way it works now (I see the update as been rolled out). You'd have to have a decent number of items there before it starts to push past the bottom of the member card, so I think it's safe as I doubt there'd be any site with that many member card stats.
  12. dutchbb

    dutchbb Well-Known Member

    Wow the old one was much cleaner. I guess you can't satisfy everyone.

    I agree King that part of the FB design update was horrible, one big clutter I want to avoid.
  13. erich37

    erich37 Well-Known Member

    wow, the image looks great!
    Are the edit-Links a new XF-feature ?

    Would be great to have this "Edit options" visible to the respective member only.
    Maybe on each of his posts or underneath the avatar-image at the left of a thread..... ?
  14. Kier

    Kier XenForo Developer Staff Member

    No, that's a screengrab of my Facebook profile. The changes to XenForo are here to see if you open a member card.
    Forsaken likes this.
  15. erich37

    erich37 Well-Known Member

    if a user did not enter his "location", what about having a link shown to this user (in the setcard) saying "Enter your location".
    Same for gender and status-message.
    This link will then forward to the members account-page.

    not sure whether number of "Likes" and "Trophies" to show in the set-card is so important.... ?
  16. Forsaken

    Forsaken Well-Known Member

    Because the trophy is suppose to partially take the place of the profile, and the user info usually shown under your avatar.
  17. JVCode

    JVCode Well-Known Member

    I preferred the old way the member card was displayed, it's not very clean this way.
    erich37 likes this.
  18. Onimua

    Onimua Well-Known Member

    But then you have the issue presented in my first post., which I think actually looks worse.

    It seems to be the only way to have better expandability for add-ons to use the space without jumbling it up.
  19. erich37

    erich37 Well-Known Member

    the number for "Likes Received" is now breaking off into another line, which does not look good.

    Why not have just 2 columns instead of 3 columns ?


    it looked much more organized previously.....
    JVCode likes this.
  20. dutchbb

    dutchbb Well-Known Member

    When you look at it now it just seems more like a big blob of text you know, where it used to be a more structured thing which you could quickly scan through. It has quite an impact.

    If some solution for the best of both worlds could be found that would be great.
    JVCode likes this.

Share This Page