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

Forum Status Icon Question

Discussion in 'Troubleshooting and Problems' started by Gabby, May 11, 2012.

  1. Gabby

    Gabby Well-Known Member

    Hello All,
    Just a quicky.... I uploaded some new forum icons (forum-read and forum-unread), and renamed them to the same, but they aren't showing up in my forum. What must I do next?

    Thank you,

    Gabby
     
  2. Digital Doctor

    Digital Doctor Well-Known Member

    Refresh the cache ?
     
  3. Dinh Thanh

    Dinh Thanh Well-Known Member

    Forgot to clear the browser cache or upload to wrong place.
     
  4. Gabby

    Gabby Well-Known Member

    cleared my browsers fine.

    I put the new icons in the same place I found them :)
     
  5. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    The node icons are defined in your:

    Admin CP -> Appearance -> Style Properties -> Node Icons

    The default icons use a sprite image, but you can replace it with individual images if you want.

    You can also create separate icons for each forum:

    http://xenforo.com/community/threads/rc-1-custom-node-status-icons-read-unread.10886/

    But in 1.1 you must also set the background-position unless you are using sprites that mirror the default node icons. Here is the code from that thread with the background-position added:

    Code:
    /* custom status icons */
    .node .node_7 .forumNodeInfo .nodeIcon, .node .node_7 .categoryForumNodeInfo .nodeIcon {
        background-image: url("@imagePath/xenforo/widgets/forum-read-7.png");
        background-position: 0px 0px;
    }
    .node .node_7 .forumNodeInfo.unread .nodeIcon, .node .node_7 .categoryForumNodeInfo.unread .nodeIcon {
        background-image: url("@imagePath/xenforo/widgets/forum-unread-7.png");
        background-position: 0px 0px;
    }
    
     
  6. Gabby

    Gabby Well-Known Member

    /styles/default/xenforo/widgets

    Should I be looking elsewhere for this icons?
     
  7. Gabby

    Gabby Well-Known Member

    Thank you Jake .. I'll try this now. Really appreciate this. Just getting used to the structure of xenforo. :) after years of the dark side. LOL
     
  8. Gabby

    Gabby Well-Known Member

    Thanks Jake, simple as pie once I found the node icon.

    What do you all think? I'm making this site for my sister.

    Are the icons too much? Trying to match things.

    Be nice, I'm VERY VERY tech challenged, I basically have no clue. LOL
     
  9. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    The background positions are messing up your non-sprite images (for read / unread status):

    Screen shot 2012-05-10 at 5.29.32 PM.png

    Remove the background positions:

    Admin CP -> Appearance -> Style Properties -> Node Icons
     
  10. Gabby

    Gabby Well-Known Member

    Ok thank you I didn't see this in FF or IE. is it better now?

    Thank you.
     
  11. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Yeah it's good now.
     
  12. Gabby

    Gabby Well-Known Member

    Ok thank you so much.
     
  13. electrogypsy

    electrogypsy Active Member

    does this work for sub forums? it's working fine for my root forums, but not sub-forums.
     
  14. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Yes it should.

    I was working with a person once where we had to change the CSS selector slightly to get it working. This is something you might try:

    Code:
    /* custom status icons */
    .node.node_7 .forumNodeInfo .nodeIcon, .node.node_7 .categoryForumNodeInfo .nodeIcon {
        background-image: url("@imagePath/xenforo/widgets/forum-read-7.png");
        background-position: 0px 0px;
    }
    .node.node_7 .forumNodeInfo.unread .nodeIcon, .node.node_7 .categoryForumNodeInfo.unread .nodeIcon {
        background-image: url("@imagePath/xenforo/widgets/forum-unread-7.png");
        background-position: 0px 0px;
    }
    
    (removed space between .node .node_#)
     
    DocViper and Adam Howard like this.
  15. electrogypsy

    electrogypsy Active Member

    that totally worked. thank you! should i just do that for sub-forums, or all of them? does it matter?
     
  16. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    All of them.
     
    Adam Howard likes this.

Share This Page