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

custom template modification

Discussion in 'Styling and Customization Questions' started by JMPRockFm, Nov 24, 2011.

  1. JMPRockFm

    JMPRockFm Member

    custom template modification how do i get that like User have 'STaff with an stair and also on Custom
    like this what will show in you'r post Screen shot 2011-11-24 at 18.05.11.png

    if you could help then thanks.
     
  2. JMPRockFm

    JMPRockFm Member

    i don't know what i click on i go on Custem user
     
  3. steel_curtain

    steel_curtain Well-Known Member

  4. JMPRockFm

    JMPRockFm Member

    thanks now how do i add the mc User name so its show on post
     
  5. steel_curtain

    steel_curtain Well-Known Member

    Not sure I understand the question. If you want to show a special rank for a user group you'll need to modify the templates like shown in the post below. Then any user who belongs to that user group will have that rank displayed.

    http://xenforo.com/community/threads/user-ranks-in-css-no-images-required.7731/

    Code:
    <!-- Start User Ranks -->
    <xen:if is="{$user.is_admin}">
    <span class="userrank">Administrator</span>
    </xen:if>
     
    <xen:if is="{$user.is_moderator} AND !{$user.is_admin}">
    <span class="userrank">Moderator</span>
    </xen:if>
     
    <xen:if is="{$user.user_group_id} == 5">
    <span class="userrank">Your_custom_usergroup_name</span>
    </xen:if>
    <!-- End User Ranks -->
    For example if you wanted to have all users in user group 2 (which is the Registered user group) shown with the rank Registered, you would modify the code in red above. Change the 5 to a 2 and Your_custom_usergroup_name to Registered, or whatever you want to name it. You need to do that for each group you want to have shown with a rank.

    If you want to add a user rank for individual members this post gives an example of the changes necessary.

    http://xenforo.com/community/threads/user-ranks-in-css-no-images-required.7731/page-2#post-150499

    If that doesn't answer your question try to give me a little more information on what you're trying to accomplish.
     
  6. JMPRockFm

    JMPRockFm Member

    Do you See this.
    Screen shot 2011-11-25 at 18.56.46.png
    That ^what i wan't to add when User Post an topic and it will show they User Name.
     
  7. steel_curtain

    steel_curtain Well-Known Member

    Oh I see. Is "Minecraft Username" a custom field?
     
  8. JMPRockFm

    JMPRockFm Member

    yes So how do i add it when user post? then you can See there user name?
     
  9. steel_curtain

    steel_curtain Well-Known Member

    First make sure you have the Show custom user fields property enabled.


    mce.png


    Then make sure the custom field, Minecraft Username, has Viewable in message user info enabled.

    mc.png
     
  10. JMPRockFm

    JMPRockFm Member

    I'm Sorry where do you get that tell me? how two get two there?
     
  11. steel_curtain

    steel_curtain Well-Known Member

    Log into your ACP and click on the Appearance tab. Click on Styles on the left menu, then Style Properties. Then do a search for Message Elements, open up the property group options, enable Show custom user fields, and save.

    To enable "Viewable in message user info" go to the General Options tab on your custom field Minecraft Username, check the option, and save.

    mce2.png
     
  12. JMPRockFm

    JMPRockFm Member

    and what would it be A-Z, 0-9, and _ only or what?
     
  13. steel_curtain

    steel_curtain Well-Known Member

    If the usernames user special characters leave it at none, otherwise you can use A-Z, 0-9, and _ only.
     
  14. JMPRockFm

    JMPRockFm Member

  15. steel_curtain

    steel_curtain Well-Known Member

    Under the Basic Information tab the Field ID can only use numbers, letters, or an _ character. Name your Field ID something like Minecraft_Username.
     
  16. JMPRockFm

    JMPRockFm Member

    Done thanks for you Help do you have skype?
     
  17. JMPRockFm

    JMPRockFm Member

    and also how do you add this
     
  18. steel_curtain

    steel_curtain Well-Known Member

    No problem with the help, that's what the forum is here for. Nope, don't use skype.
     
  19. JMPRockFm

    JMPRockFm Member

    there is this
     
  20. JMPRockFm

    JMPRockFm Member

    Screen shot 2011-11-25 at 19.47.30.png

    how do i add this?
     

Share This Page