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

Avatar in Thread View

Discussion in 'Styling and Customization Questions' started by theArchitect, Oct 23, 2012.

  1. theArchitect

    theArchitect Member

    When viewing the threads in a particular forum, the starters avatar appears next to the thread title.

    Is it possible to disable this for a specific forum?

    We have our blog linked to the forum, and all blog posts are started by an admin user, so this forum is looking a little creepy with hundreds of avatars of the same person.

    However I don't want to remove avatars from the other forum thread overview.
     
    erich37 likes this.
  2. DRE

    DRE Well-Known Member

  3. theArchitect

    theArchitect Member

  4. DRE

    DRE Well-Known Member

    It can be done with conditionals.
     
  5. DRE

    DRE Well-Known Member

    I'm working on it right now.
     
  6. DRE

    DRE Well-Known Member

    Ah I'm stuck. Brain fart. But this is what I did so far with TMS and I'm busy so I can't continue. If you can continue where I left off or make your own this may give you ideas or not.

    Create Template: remove_preview_avatar.css
    Code:
    <xen:if is="@removepreviewavatar">
    .previewTooltip .avatar {
    display:none;
    }
    </xen:if>
    
    Template Modification: Remove Preview Avatar
    Template: public.css
    Search:
    Code:
    <xen:include template="thread_prefixes.css" />
    Replace:
    Code:
    <xen:include template="thread_prefixes.css" />
     
    <xen:include template="remove_preview_avatar.css" />
    dudesz.jpg
     
  7. theArchitect

    theArchitect Member

    Very much appreciated. (y)
     
  8. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Admin CP -> Appearance -> Templates -> EXTRA.css

    Code:
    .node26 .previewTooltip .avatar
    {
    	display: none;
    }
    
    .node26 .previewTooltip .text
    {
    	margin-left: 0px !important;
    }
    
    You need to specify the node_id in the CSS selector (26).
     
    8thos likes this.
  9. DRE

    DRE Well-Known Member

    That easy?

    *face-palm*
     
  10. theArchitect

    theArchitect Member

    Thank you very much, however it does not seem to be working.

    I double checked the node ID (which is 25) and changed not only the Extra.css in the style I was using, but also the parent style just to be on the safe side.

    But as you can see from the attached, avatars are still showing.
     

    Attached Files:

  11. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    That CSS is for the preview when you mouse over a thread title.
     
  12. theArchitect

    theArchitect Member

    Ahh, I am with you. Very neat and I will keep it implemented, but is it possible to do the same for the actual thread view, not just the mouse over?
     
  13. DRE

    DRE Well-Known Member

    Could this .node extra css code be used to choose a specific link styling in a forum? for instance, I want to make a thread in a forum that only does reviews.

    In a review thread I want the links to be customized to look like buttons. Can I do so by adding the extra css for the links for only that subforum, using that .nodex extra css code?

    http://xenforo.com/community/threads/native-button-like-links.18263/#post-410932
     
  14. Digital Doctor

    Digital Doctor Well-Known Member

    Hmmm ..... Interesting.
    What are the links (buttons) going to link to ? Other posts ?
     
  15. DRE

    DRE Well-Known Member

    Say you review a game, then you want to link to where you can buy it. Instead of a normal link, use your amazon publishing code referrel link to the game but use the styling to make it look awesome.
     
    Digital Doctor likes this.
  16. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    This will hide the avatars in the thread list (for the specified node_id):

    Code:
    .node26 .discussionListItems .discussionListItem .posterAvatar
    {
    	display: none;
    }
    
     
    theArchitect and 8thos like this.
  17. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Code:
    .node26 .thread_view .ugc a
    {
    	border: red solid 1px;
    	border-radius: 3px;
    }
    
     
    8thos likes this.
  18. DRE

    DRE Well-Known Member

    Jake da Young Gawd strikes again with his Thor Hammer of Xenforo Might
     
  19. theArchitect

    theArchitect Member

    (y)
     

Share This Page