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

How do I set my username on the home page, to usergroup color

Discussion in 'Styling and Customization Questions' started by Brandon Sheley, Jan 17, 2013.

  1. Brandon Sheley

    Brandon Sheley Well-Known Member

    I'm trying to get the usergroup markup language in the user block on the home page.


    Thanks :)
  2. shadrxninga

    shadrxninga Well-Known Member

    Edit the template called 'sidebar_visitor_panel' and replace:
    <h2>{xen:phrase signed_in_as_x_sidebar, 'name={xen:helper username, $visitor, 'NoOverlay'}'}</h2>
    <h2 class="username">{xen:phrase signed_in_as_x_sidebar, 'name={xen:helper richusername, $visitor}'}</h2>
    There's a helper called richusername which gives you the styled username - you need to add the class "username" to the element you have it inside for it work (as it uses css selectors)
    DarkGizmo, Evina and Brandon Sheley like this.
  3. Brandon Sheley

    Brandon Sheley Well-Known Member

    works like a champ :)
    shadrxninga likes this.

Share This Page