Cộng Đồng MyBB Việt Nam

Phiên bản đầy đủ: Responsive layout cho ProStats plugin
Bạn đang xem phiên bản rút gọn. Xem phiên bản đầy đủ với định dạng thích hợp.
Hello mọi người, theo yêu cầu của , Joey share mọi người cách làm cho ProStat plugin đc responsive theo giao diện của diễn đàn. Mọi người làm theo hướng dẫn sau nha

1. Mọi người thêm cái CSS này vào global.css hay gì đó tương tự của giao diện muốn dùng:
 
Code:
/*Cái này để ẩn mấy cai categories*/
@media only screen and (max-width: 1199px){
     .hide-prostats{
         display: none;
    }
}
/*cái này để ẩn mấy cái thông tin nhỏ nhặt trong cái phần bài viết mới*/
@media only screen and (max-width: 767px){
     .hide{
         display: none;
    }
}

2. Mọi người tìm những cái templates trong phần Global Templates sau đây, và thay cái <td> đầu tiên thành cái này:
 
Code:
<td class="hide-prostats">
  1. prostats_mostreplies
  2. prostats_mostreputation
  3. prostats_mostthanks
  4. prostats_mostviews
  5. prostats_newmembers
  6. prostats_topdownloads
  7. prostats_topposters
  8. prostats_topreferrers
  9. prostats_topthreadposters

3. Tương tự như bước 2, các bạn cũng tìm những templates sau đây và thay cái <td> thành 
 
Code:
<td class="hide">
  1. prostats_newestposts_date
  2. prostats_newestposts_forum
  3. prostats_newestposts_head_date
  4. prostats_newestposts_head_forum
  5. prostats_newestposts_head_starter
  6. prostats_newestposts_starter

Vậy là xong rồi đó. Mọi người có thể thay đổi chỉnh sửa theo ý mình muốn. Joey đã test thử nhiều cách và thấy cách này là đẹp nhất cho responsive view. Khi nào rảnh Joey up lên vài tấm hình demo cho

Enjoy