• 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

AndyB

Well-known member
#10
It didnt quite work as expected. is there an option to limy characters for location?
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:

tommydamic68

Well-known member
#14
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),
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.
 

Jeremy

Well-known member
#15
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.