Long Usernames on Mobile Skin > Invisionize.eu - IP.Board (IPB) News
Kanał Rss Kanał Rss
Kanał Atom Kanał Atom

Long Usernames on Mobile Skin

wersja drukowalna wersja Microsoft Word wersja HTML

Long usernames are causing distortion in the Kick / Ban / Leave menu for Chat on the Mobile skin. We already truncate usernames to 16 characters, however this doesn't appear to be enough.

http://dl.dropbox.co...12 56 26 PM.png

Changing this:

<span class='names'><if test="hasname:|:$data['member']['members_display_name']"><span title='{$data['member']['members_display_name']}'><if test="formatname:|:$this->settings['ipschat_format_names']">{IPSMember::makeNameFormatted( IPSText::truncate( $data['member']['members_display_name'], 16 ), $data['member']['member_group_id'] )}<else />{IPSText::truncate( $data['member']['members_display_name'], 16 )}</if></span><else />{$data['user_name']}</if></span>

To this:

<span class='names'><if test="hasname:|:$data['member']['members_display_name']"><span title='{$data['member']['members_display_name']}'><if test="formatname:|:$this->settings['ipschat_format_names']">{IPSMember::makeNameFormatted( IPSText::truncate( $data['member']['members_display_name'], 8 ), $data['member']['member_group_id'] )}<else />{IPSText::truncate( $data['member']['members_display_name'], 8 )}</if></span><else />{$data['user_name']}</if></span>

Should fix it for mobile devices with smaller resolutions (older iPhone's and iPod's, I believe, would be the case here). More or less just cutting the truncation down to 8 characters instead of 16. I don't think it necessary to go any shorter than that, though.

czw, 24 maj 2012