乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      [RC 1] Custom Node Status Icons ( Read & Unread) | XenForo Community

       pandazh 2014-03-16
                  Hi everyone,
      With the release of XenForo Release Candidate 1 (it will not work with prior versions of XF) , nodes id are included in the templates, allowing us to easily change the Status Icons without any complicate template edits.

      I know many of you already know how to do this by many others are still a little bit confused about it so here is how you do it

      Example:

      screen-capture-7.png


      In the template editor open the EXTRA.css template and enter the following CSS for each custom icon.

      Code:
      /* custom status icons */
      .node .node_7 .forumNodeInfo .nodeIcon, .node .node_7 .categoryForumNodeInfo .nodeIcon {
          background-image: url("@imagePath/xenforo/widgets/forum-read-7.png");
      }
      .node .node_7 .forumNodeInfo.unread .nodeIcon, .node .node_7 .categoryForumNodeInfo.unread .nodeIcon {
          background-image: url("@imagePath/xenforo/widgets/forum-unread-7.png");
      }
      
      In the example above I'm replacing the status icons from a node with an id of 7

      Nodes ids are unique to each nodes on your forum so make sure to enter the correct id in the css

      In the example above I also entered the custom images in the default location of the default icons and simply renamed with the node id at the end of the name for simplicity forum-unread-7.png and forum-read-7.png

      Nothing stops you from having them in a custom folders or naming them differently.


      How do you determine the correct node id for a specific node?

      In XenForo Admin CP go to Application, Display Node Tree.

      Under Node Tree simply hover on the name of the forum nodes or click on them to edit and you see the actual id in the URL

      For example: http://xenforo.dev/admin.php?nodes/official-forums.7/edit

      7 is the correct id for the "Official Forums", so my icons will be named forum-unread-7.png and forum-read-7.png

      screen-capture-1.png

      Still confused?

      Let's just say that for example you want to change the icons of nodes with IDs 2,7 and 15

      Your CSS should look like this:


      Code:
      /* custom status icons */
      
      /* node id 2*/
      .node .node_2 .forumNodeInfo .nodeIcon, .node .node_2 .categoryForumNodeInfo .nodeIcon {
          background-image: url("@imagePath/xenforo/widgets/forum-read-2.png");
      }
      .node .node_2 .forumNodeInfo.unread .nodeIcon, .node .node_2 .categoryForumNodeInfo.unread .nodeIcon {
          background-image: url("@imagePath/xenforo/widgets/forum-unread-2.png");
      }
      /* node id 7*/
      .node .node_7 .forumNodeInfo .nodeIcon, .node .node_7 .categoryForumNodeInfo .nodeIcon {
          background-image: url("@imagePath/xenforo/widgets/forum-read-7.png");
      }
      .node .node_7 .forumNodeInfo.unread .nodeIcon, .node .node_7 .categoryForumNodeInfo.unread .nodeIcon {
          background-image: url("@imagePath/xenforo/widgets/forum-unread-7.png");
      }
      /* node id 15*/
      .node .node_15 .forumNodeInfo .nodeIcon, .node .node_15 .categoryForumNodeInfo .nodeIcon {
          background-image: url("@imagePath/xenforo/widgets/forum-read-15.png");
      }
      .node .node_15 .forumNodeInfo.unread .nodeIcon, .node .node_15 .categoryForumNodeInfo.unread .nodeIcon {
          background-image: url("@imagePath/xenforo/widgets/forum-unread-15.png");
      }
      

      What size should my custom images be?

      The XenForo default status images are 40px by 40px in size.
      I recommend creating your custom images the same size as the default one to avoid them to be cut off or pixelated.

      If you wish to to change the images size and use bigger ones you can edit the default size here:

      Appearance > Styles > Default Style (or your style name) > Style Property Groups > Style Properties: Forum List > Node Icon

      Change the width and height from the default 36px to your new custom size.

      screen-capture-11.png



      Hope it make sense, if not give me a holler and I will try to help you

        本站是提供個人知識管理的網(wǎng)絡(luò)存儲空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點。請注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,謹防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊一鍵舉報。
        轉(zhuǎn)藏 分享 獻花(0

        0條評論

        發(fā)表

        請遵守用戶 評論公約

        類似文章 更多