# Usernames on top, lifting username length restrictions

**URL:** <https://meta.discourse.org/t/usernames-on-top-lifting-username-length-restrictions/14747>\
**Category:** Feature\
**Tags:** completed\
**Created:** [Avril 14, 2014, 3:30 UTC](https://meta.discourse.org/t/usernames-on-top-lifting-username-length-restrictions/14747 "2014-04-14T03:30:07Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [Avril 14, 2014, 3:30 UTC](https://meta.discourse.org/t/usernames-on-top-lifting-username-length-restrictions/14747/1 "2014-04-14T03:30:07Z")

</div>

I just deployed this change set:

[https://github.com/discourse/discourse/commit/b0ed9082b3a22e9a11e5c9cb567525ad764803ff](https://github.com/discourse/discourse/commit/b0ed9082b3a22e9a11e5c9cb567525ad764803ff)

It allows you to lift the max username length restriction.

For the time being I made this setting hidden, this means you need the following to raise it:

```plaintext
./launcher ssh app
rails c
SiteSetting.max_username_length = 40 

```

Combined with this site customisation (thanks to @radq ) you can have usable site with long usernames:

```plaintext
@import "common/foundation/variables";

.topic-post {
  article > .row {
    & > .topic-meta-data {
      width: 79%;
      .contents {
        text-align: left;
        padding-left: 3%;
        position: relative;
      }
      .names {
        z-index: 1;
        position: absolute;
        top: -2px;
        left: 10%;
        width: 100%;
      }
      h3, .user-title {
        display: inline;
        padding-left: 5px;
        font-size: $base-font-size * 0.9;
        a {
            color: #6f6f6f;
            font-weight: bold;
        }
      }
    }
    & > .topic-body {
      width: 70.5%;
      margin-left: 7.5%;
      margin-top: -85px;
      border-top: none;
      padding-left: 10px;
      & > .contents {
        &.avoid-tab { padding-top: 0; }
        .topic-meta-data-inside, .avoid-tab .topic-meta-data-inside {
          margin-top: -52px;
        }
        .cooked, .avoid-tab .cooked {
          margin-top: 48px;
          z-index: 2;
        }
      }
    }
    & > .reply-to-tab {
      left: 9%;
      padding: 2px 12px;
      .avatar {
        height: 15px;
        width: 15px;
      }
    }
  }
  .embedded-posts {
    &.top {
      margin-left: 7.5%;
    }
    position: relative;
    .contents h5 {
      position: absolute;
      top: 12px;
      left: 95px;
      font-size: $base-font-size;
    }
    .topic-body {
      margin-top: 15px;
      .topic-meta-data-inside {
        margin-top: -15px;
      }
    }
  }
}

```

For example see: [Welcome to the Discourse forum usability test! - #93 by DeborahJonesJewellery - Meta - Folksy Forums](http://talk.folksy.com/t/welcome-to-the-discourse-forum-usability-test/62/93?u=sam)

---

_[View the full topic](https://meta.discourse.org/t/usernames-on-top-lifting-username-length-restrictions/14747)._
