Hướng dẫn làm đẹp postbit cho JohnCMS

djdungcuty

djdungcuty

Active Member
Gọi là postbit cho nó giống vBB chứ chẳng biết đặt tên là gì cho hay :D

Demo: N2M - Community
Demo ảnh:


+ Hướng dẫn:

Bước 1: Mở /forum/index.php tìm:
PHP:
                        echo $i % 2 ? '<div class="list2">' : '<div class="list1">';
                    if ($set_user['avatar']) {

Thay thành:

PHP:
                        echo '<div class="'.($res['time'] > time() - 300 ? 'thanhvien_new' : 'thanhvien').'">';
                    if ($set_user['avatar']) {

Bước 2: Thêm cái này vào css:
PHP:
.thanhvien {
background: #ebecec;
border-bottom: 1px solid #0c97c4;
color: black;
}

.thanhvien_new  {
background: #ebecec url('images/newpost.png') no-repeat right top;
border-bottom: 1px solid #0c97c4;
margin-top: 1px;
text-shadow: #fcfcfc 0 1px;
}

Upload file newpost.png vào thư mục images trong thư mục theme của bạn

Lưu lại và thữ nghiệm thôi :)
__________
TUT by Lê Tiến Dũng
Copy không ghi nguồn Vn4ever.Com thì đừng làm wap nữa nhé Guest
:))
 

Facebook Comments

Similar threads

cuongpro9x
Replies
1
Views
2K
Tamhoangdk
Tamhoangdk
Admin
Replies
0
Views
5K
AdminAdmin is verified member.
Admin
N
Replies
4
Views
818
sontung
S
Back
Top