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

XF 1.2 Avatar information

Discussion in 'XenForo Questions and Support' started by tommydamic68, Sep 7, 2013.

  1. tommydamic68

    tommydamic68 Well-Known Member

    Is there an option to have where a member is from in the avatar area? US, Netherlands, russia, etc?

    Screen Shot 2013-09-07 at 5.51.20 PM.png
     
  2. Jeremy

    Jeremy XenForo Moderator Staff Member

    Their location? Should be an option.
     
  3. tommydamic68

    tommydamic68 Well-Known Member

    It is an option, can you have it show as in the attachment? in the avatar area , joined date, messages, likes received - etc.
     
  4. Jeremy

    Jeremy XenForo Moderator Staff Member

    Its an option, in the same place you enabled the other elements in Style Properties.
     
    tommydamic68 likes this.
  5. Adam Howard

    Adam Howard Well-Known Member

    AdminCP > Appearance > Styles > Style Properties > Message Elements
     
  6. Adam Howard

    Adam Howard Well-Known Member

    I've been snipe`d ! :p
     
  7. tommydamic68

    tommydamic68 Well-Known Member

    Awesome - found it! Anyway to make avatar area wider to fit names a bit better? it dropped Quebec out of alignment.

    Screen Shot 2013-09-07 at 6.13.38 PM.png
     
  8. Adam Howard

    Adam Howard Well-Known Member

    Style Properties: Message Layout
    User Info Container
     
  9. tommydamic68

    tommydamic68 Well-Known Member

    It didnt quite work as expected. is there an option to limy characters for location?
     
  10. AndyB

    AndyB Well-Known Member

    The default limit is 50 characters. It looks great when the member uses a minimal amount of characters for the location as it's floating right. Looks terrible when there are too many characters.

    In previous versions of Xenforo the data was below the label, like this:

    Location:
    San Francisco, CA
     
    Last edited: Sep 8, 2013
  11. tommydamic68

    tommydamic68 Well-Known Member

    am i stuck with it at this point?
     
  12. AndyB

    AndyB Well-Known Member

    If you want to have the maximum character limit be lower than 50 characters, you could edit the following file:

    /library/Xenforo/DataWriter/User.php

    Look for the following line and change the 50 to whatever value you want.

    PHP:
    'location'  => array('type' => self::TYPE_STRING'default' => '''maxLength' => 50),
     
    tommydamic68 and Adam Howard like this.
  13. Martok

    Martok Well-Known Member

    tommydamic68 likes this.
  14. tommydamic68

    tommydamic68 Well-Known Member

    Any way after the change of characters to refresh and fix the long names? I used both of your suggestions, Reduced characters to 19- (won't fall to next line) and added brogans CSS.
     
  15. Jeremy

    Jeremy XenForo Moderator Staff Member

    If you added Brogan's CSS I would revert back to 50. It will make your life easier as you need to apply that on each update. But no, there is no way to retroactively enforce a character limit.
     
  16. AndyB

    AndyB Well-Known Member

    You could write a php script to shorten existing values to 19 characters.
     

Share This Page