Tutorial 2x Display "NEW" icon on unread posts - Hiển thị biểu tượng "NEW" trên bài viết chưa đọc cho XenForo 2

PVS

Generalissimo
Thành viên BQT
Display "NEW" icon on unread posts - Hiển thị biểu tượng "NEW" trên bài viết chưa đọc cho XenForo 2

Thêm đoạn code sau vào template Extra.less:
Mã:
.structItem.is-unread .structItem-title a:not(.labelLink):after {
    content: "NEW";
    display: inline-block;
    background: @xf-uix_primaryColor;
    padding: 1px 4px;
    font-size: 11px;
    color: #FFF;
    border-radius: 3px;
    margin-left: 5px;
    position: relative;
    top: -2px;
}

new-posticon.jpg

Chúc các bạn thành công.


Nguồn: xenforo.com​
 

thahtrung06

MasterSergeant
Code này bị lỗi trên giao diện mặc định của Xenforo 2, để sửa chỉ cần thay mã background: @xf-uix_primaryColor; bằng code dưới đây:
Mã:
background: @xf-paletteColor3;
 

Hướng dẫn sử dụng

XenForo 1 XenForo 2
Translate by PVS

Hỗ trợ trực tuyến

Support Quảng cáo
Mr. San (PVS)

Skype chat, instant message

Mr. Tuấn (Blue)

Skype chat, instant message

Mr. Tuấn
0988 488 096
Mr. Trọng
0906 081 284
kinhdoanh@vnxf.vn

Nhà Tài Trợ

Mút Xốp Không Gian
pallet Thịnh Phát
Điện Lạnh Thịnh Phát
Top