• Downloading from our site will require you to have a paid membership. Upgrade to a Premium Membership from 10$ a month today!

    Dont forget read our Rules! Also anyone caught Sharing this content will be banned. By using this site you are agreeing to our rules so read them. Saying I did not know is simply not an excuse! You have been warned.

Hướng dẫn hiển thị diễn đàn con - Sub Categories in Columns Xenforo 1.2

Admin

Well-Known Member
Staff member
Administrator
Cài đặt :

Bước 1: Vào templates node_forum_level_2

Tìm
PHP:
<xen:if is="{$renderedChildren} AND {$level} == 2 AND @nodeListSubForumPopup">

  <div class="Popup subForumsPopup">

  <a href="{xen:link forums, $forum}" rel="Menu" class="cloaked" data-closemenu="true"><span class="dt">{xen:phrase sub_forums}:</span> {xen:number $forum.childCount}</a>



  <div class="Menu JsOnly subForumsMenu">

  <div class="primaryContent menuHeader">

  <h3>{$forum.title}</h3>

  <div class="muted">{xen:phrase sub_forums}</div>

  </div>

  <ol class="secondaryContent blockLinksList">

  <xen:foreach loop="$renderedChildren" value="$child">

  {xen:raw $child}

  </xen:foreach>

  </ol>

  </div>

  </div>

  </xen:if>

- Thay bằng
PHP:
<xen:if is="{$renderedChildren} AND {$level} == 2 AND @nodeListSubForumPopup">

  <div class="subForumsPopup">

  <div class="subForumsMenu">

  <ol class="secondaryContent blockLinksList">

  <xen:foreach loop="$renderedChildren" value="$child">

  {xen:raw $child}

    </xen:foreach>

    </ol>

    </div>

    </div>

  </xen:if>

Bước 2: Vào templates node_category_level_2
Tìm
PHP:
<xen:if is="{$renderedChildren} AND @nodeListSubForumPopup">

  <div class="Popup subForumsPopup">

  <a href="{xen:link categories, $category}" rel="Menu" class="cloaked" data-closemenu="true"><span class="dt">{xen:phrase sub_forums}:</span> {xen:number $category.childCount}</a>



  <div class="Menu JsOnly subForumsMenu">

  <div class="primaryContent menuHeader">

  <h3>{$category.title}</h3>

  <div class="muted">{xen:phrase sub_forums}</div>

  </div>

    <ol class="secondaryContent blockLinksList">

  <xen:foreach loop="$renderedChildren" value="$child">

  {xen:raw $child}

  </xen:foreach>

  </ol>

  </div>

  </div>

  </xen:if>

- Thay bằng

PHP:
<xen:if is="{$renderedChildren} AND @nodeListSubForumPopup">

  <div class="subForumsPopup">

  <div class="subForumsMenu">

  <ol class="secondaryContent blockLinksList">

  <xen:foreach loop="$renderedChildren" value="$child">

  {xen:raw $child}

  </xen:foreach>

  </ol>

  </div>

  </div>

</xen:if>

Bước 3: Vào template node_forum_level_n.
- Thay thế tất cả nội dung trong template này bằng

PHP:
<li class="node forum level-n node_{$forum.node_id}">

  <span class="dot"><span></span></span>

  <div {xen:if $forum.hasNew, 'class="unread"'}>

  <h4 class="nodeTitle"><a href="{xen:link forums, $forum}" class="menuRow">{$forum.title}</a></h4>

  </div>

  <xen:if is="{$renderedChildren}">

  <ol>

  <xen:foreach loop="$renderedChildren" value="$child">

  {xen:raw $child}

  </xen:foreach>

  </ol>

  </xen:if>

</li>

Bước 4: Vào template node_category_level_n.
- Thay thế tất cả nội dung template trên bằng:

PHP:
<li class="node category level-n node_{$category.node_id}">

  <span class="dot"><span></span></span>

  <div {xen:if $category.hasNew, 'class="unread"'}>

  <h4 class="nodeTitle"><a href="{xen:link categories, $category}" class="menuRow">{$category.title}</a></h4>

  </div>

  <xen:if is="{$renderedChildren}">

  <ol>

  <xen:foreach loop="$renderedChildren" value="$child">

  {xen:raw $child}

  </xen:foreach>

  </ol>

  </xen:if>

</li>

Bước 5: Vào template EXTRA.css.

- Thêm vào đoạn code sau (Chú ý: đưa ảnh "green-star.gif" vào đúng đường dẫn)

HTML:
.subForumsPopup,

.subForumsPopup .blockLinksList,

.subForumsPopup ol,

.subForumsMenu ol li ol li

{
width: 100%;
}

.subForumsPopup .blockLinksList
{
  float: left;
}

.subForumsPopup .dot {

  float: left;

  position: relative;
}

.subForumsPopup .dot span {

  background: url("link ảnh") scroll 0 0 transparent;

  height: 9px;

  margin-left: 5px;

  margin-top: 8px !important;

  position: absolute;

  width: 9px;
  }

.subForumsMenu ol li
{
  width: 50%;
  float: left;
}

.subForumsMenu .node .nodeTitle a
{
  padding-left: 16px;
}

.subForumsMenu .node .node.level-n
{
  display: none;
}
Lưu lại là xong
Chúc các bạn thành công!
 

Facebook Comments

Similar threads
Thread starter Title Forum Replies Date
T cách đưa bài viết luôn hiển thị lên đầu diễn đàn ? All Shared Scripts 3
Admin Hướng dẫn tạo code tính và hiển thị thời gian diễn đàn hoạt động cho vbb Vbulletin 0
Admin Công cụ nghiên cứu (Spy) nào có thể nhận quảng cáo hiển thị từ Facebook? Tin tức CNTT 0
Admin Hướng dẫn đổi tên ứng dụng android hiển thị trên màn hình xamarin forms - Change app name on main screen Android, iOS 0
Admin Hướng dẫn hiển thị thông báo nhắc nhở khi đóng form C# C# / C++ 0
cuongpro9x Share Hiển thị thông báo phát hiện adblock cho XenForo 2 Xenforo 0
thanhchiit Share Code PHP Hiển Thị Ping MS cho Web/Wap Mã nguồn wap 5
Admin Hướng dẫn hiển thị chuyên mục 2 cột cho xenforo 2 - How to sub-forum columns xenforo 2 Xenforo 0
Admin Hướng dẫn hiển thị lỗi php trên directadmin đơn giản VPS & Dedicated Server 3
cuongpro9x Hỏi Lỗi Wordpress không hiển thị bài viết Wordpress 3
Dean.Winchester Share Hiển thị ảnh nền đẹp khi bạn mở tab mới trên Chrome Thủ thuật máy tính 2
Admin Hướng dẫn đổi tên hiển thị trong Start cho máy tính Sử dụng, chia sẻ, hỏi đáp 0
hungnv239 Mobifone cung cấp DV Mstatus (hiển thị thông điệp) Thông tin các mạng di động 19
Tuzoro Share Hiển thị Tag màu mè cho Wordpress Wordpress 0
Smobi Hướng dẫn Mod thay đổi hiển thị số bài viết mỗi trang cho topic và chuyên mục Johncms 0
Admin Hướng dẫn mặc định hiển thị thông tin trình duyệt trong danh sách trực tuyến cho vbb Vbb tutorial 0
Admin Hiển thị thành viên trực tuyến - Show user is online xenforo Xenforo 0
Admin Kích hoạt chế độ hiển thị % pin ẩn trong Android 4.4 Tin tức, giới thiệu về ĐTDĐ 0
Yeukodamnoi [JohnCMS] Share code auto tag lấy từ kết quả hiển thị của Google Johncms 0
Admin Share code hiển thị đánh giá sao cho xtgem Wap builder, wapego, xtgem, wen.ru, wapka, wap4 0
Admin Hướng dẫn hiển thị ảnh tác giả và ảnh trong bài viết trên tìm kiếm google Thảo luận SEO 0
Admin Plugin hiển thị nội dung trên mobile hoặc computer Wordpress 0
Admin Hướng dẫn hiển thị chủ đề mới nhất và chủ đề của tôi trên sidebar Vbb tutorial 2
S Hỏi cách hiển thị chữ ký của thành viên vbb 4.2 Vbulletin 2
J Hỏi Css không hiển thị là sao Johncms 19
Admin Hướng dẫn fix lỗi all in one seo pack hiển thị sai tag title, page title Wordpress 0
Admin Hiển thị tag ngẫu nhiên cực đẹp cho wordpress không cần dùng plugin Wordpress 0
Admin CrystalDiskInfo 5.5.1 + Portable - Hiển thị thông tin chi tiết và sức khỏe ổ đĩa cứng Phần mềm 0
Admin Hướng dẫn hiển thị lượt xem bài viết cho wordpress Wordpress 0
VMS-Mobifone Mobifone-Dịch vụ cấm hiển thị số - Giấu số. Thông tin các mạng di động 6
N Xin Đoạn code hiển thị dòng máy Thảo luận wap việt 3
Admin Share mod hiển thị ngẫu nhiên ảnh trong album của mem cho johncms Johncms 0
Admin Online Status xenforo - hiển thị trang thái online và offline cho xenforo| Xenforo 0
Admin Bbcode hiển thị form google docs Vbulletin 0
djdungcuty Share: Hàm hiển thị thành viêncho JohnCMS Johncms 1
H Làm thế nào để Google hiển thị đúng loại sitelink cho website của bạn? Thảo luận SEO 0
Admin Hiển thị bài viết ngẫu nhiên và xem nhiều nhất không dùng plugins Wordpress 1
Cuongkoj00 Help - JohnCMS k hiển thị CSS Johncms 1
Yeukodamnoi Xin Code hiển thị trình duyệt cho host PHP 1
Admin Hướng dẫn không hiển thị một chuyên mục nào đó cho wordpress Wordpress 0
Admin Hiển thị các bài liên quan trong wordpress không dùng plugin Wordpress 0
Kidblood Thảo luận Hiển thị bài viết ngẫu nhiên có thumbnail không cần plugin trong Wordpress Wordpress 2
Admin Hướng dẫn hiển thị chuyên mục ra index khi theme không hỗ trợ Widget Wordpress 0
S Mod hiển thị khung trả lời nhanh đầy đủ chức năng Add-ons 0
B Share code like hiển thị tim ra trang chủ. Johncms 0
Admin Share code hiển thị online toàn trang cho xtgem Wap builder, wapego, xtgem, wen.ru, wapka, wap4 1
Admin Hàm hiển thị Alexa Rank cho PHP PHP 0
Admin Hướng dẫn fix lỗi không hiển thị số người online vbb Vbb tutorial 0
C Hỏi Cách hiển thị đầy đủ bbcode ở khung trả lời nhanh Vbulletin 6
Admin Hiển thị thông tin tác giả - avatar trên công cụ tìm kiếm Thảo luận SEO 0

Similar threads

New posts New threads New resources

Back
Top