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

Editing template for specific member

Discussion in 'Styling and Customization Questions' started by Matthew2D, Jan 26, 2012.

  1. Matthew2D

    Matthew2D Active Member

    Is there a way to edit a template for a specific member? Thanks.
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Jarod likes this.
  3. Morgain

    Morgain Well-Known Member

    There is.

    How can I show content to a specific member?
    Code:
    <xen:if is="{$visitor.user_id} == x">
    This content will show to member x
    </xen:if>
    Worth searching on member Brogan - check his signature for the Manual, FAQ etc.
    I got this for you from his Conditionals section.
     
  4. Matthew2D

    Matthew2D Active Member

    Sorry, I said that wrong. What I mean is, I want to edit the profile for a specific member. It only applies for that member and it shows to everybody else.
     
  5. Morgain

    Morgain Well-Known Member

    ninja'd
     
  6. Brogan

    Brogan XenForo Moderator Staff Member

    Both conditions are in my first post above.
     
  7. Morgain

    Morgain Well-Known Member

    The profile is member_view template.
    Use the conditional if you want only that member to see it.

    There may be an
    other way also to inherit the condition from the profile page but I think this will work.
     
  8. Matthew2D

    Matthew2D Active Member

    What is the template for the profiles?
     
  9. Morgain

    Morgain Well-Known Member

    I answered that :)
     
  10. Matthew2D

    Matthew2D Active Member

    I want the edit to only be on the member's profile but be able to be seen by other members.
     
  11. Brogan

    Brogan XenForo Moderator Staff Member

    This sounds fairly unsavoury so I'm not going to offer any more help with this.
     
    Morgain likes this.
  12. Morgain

    Morgain Well-Known Member

    Agreed. I cannot imagine why information is not accessible to the member.
    It can be useful to have a private note for the admin, even mods. But to display something to all members? Someone will tell the member concerned so what is the point?
     
  13. Matthew2D

    Matthew2D Active Member

    I want to make my profile on my forum different from the other members. Like the colors.
     
  14. Morgain

    Morgain Well-Known Member

    OK understood now.

    The profile is member_view template. As I already said. That edits all profile pages.
    member_view.css edits stuff like colours.,
    Experiment with the css one at a time on the css page. It will show on a tab beside the main template.
    Change one item to a totally unusual colour for your site if you're not sure what you're changing. ;) Then it will show up easily.

    I suggest you post a new question in
    Styling and Customization Questions

    Ask how to use a conditional show selected colours on your own Profile page, but not on others.
    That will avoid misunderstanding.
    It may be useful to copy the member_view.css and make a duplicate perhaps member_view_me.css
    Then you could bracket the whole of the content area in a conditional which works this css.

    I'm not quite able to do the conditional either, sorry but I can see it could be done.
    The conditional might work off the title line at the top of member_view
    to link to the alternate css if the user ID is yours. Something like that.
     

Share This Page