Bước 3:ACP-->Display--> Templates-->Portal
Thay toàn bộ bằng code sau
mod_most_active_starters
- Code:
<div id="tab5" class="hidetab tab_content">
<table width="100%" border="0">
<tbody>
<tr></tr>
<!-- BEGIN POSTER -->
<tr>
<td class="row2">
<span style="float:left">{POSTER.NAME}</span>
<span style="float:right;padding-right:5px">{POSTER.NB_TOPICS}</span>
</td>
</tr>
<!-- END POSTER -->
</tbody>
</table>
</div>
mod_most_active_topics
- Code:
<div id="tab2" class="hidetab tab_content" >
<table width="100%" border="0">
<tbody>
<tr></tr>
<!-- BEGIN TOPIC -->
<tr>
<td class="row2"><a href="{TOPIC.LINK}" title="{TOPIC.TITLE}"><span class="lengtht">{TOPIC.NAME}</span></a></td>
</tr>
<!-- END TOPIC -->
</tbody>
</table>
</div>
<script>$("span.lengtht").each(function(){ if ($(this).text().length > 40) {$(this).text($(this).text().substr(0, 40));$(this).append('...'); } });</script>
mod_most_viewed_topics
- Code:
<div id="tab3" class="hidetab tab_content">
<table width="100%" border="0">
<tbody>
<tr></tr>
<!-- BEGIN TOPIC -->
<tr>
<td class="row2"><a href="{TOPIC.LINK}" title="{TOPIC.TITLE}"><span class="lengtht">{TOPIC.NAME}</span></a></td>
</tr>
<!-- END TOPIC -->
</tbody>
</table>
</div>
<script>$("span.lengtht").each(function(){
if ($(this).text().length > 40) {$(this).text($(this).text().substr(0, 40));$(this).append('...');
}
});</script>
mod_recent_topics
- Code:
<div id="tab1" class="tab_content anthanhcuon">
<!-- BEGIN classical_row -->
<table width="100%" border="0">
<tbody>
<tr></tr>
<!-- BEGIN recent_topic_row -->
<tr>
<td class="row2">
<a title="{classical_row.recent_topic_row.L_TITLE} - {classical_row.recent_topic_row.S_POSTTIME}" href="{classical_row.recent_topic_row.U_TITLE}"><span class="lengtht" >{classical_row.recent_topic_row.L_TITLE}</span></a>
<span style="float:right">
<!-- BEGIN switch_poster -->
<a href="{classical_row.recent_topic_row.switch_poster.U_POSTER}">{classical_row.recent_topic_row.switch_poster.S_POSTER}</a>
<!-- END switch_poster -->
</span>
</td>
</tr>
<!-- END recent_topic_row -->
</tbody>
</table>
<!-- END classical_row -->
<script>$("span.lengtht").each(function(){
if ($(this).text().length > 30) {$(this).text($(this).text().substr(0, 30));$(this).append('...');
}
});</script>
mod_top_posters
- Code:
<div id="tab4" class="hidetab tab_content">
<table width="100%" border="0">
<tbody>
<tr></tr>
<!-- BEGIN POSTER -->
<tr>
<td class="row2">
<span style="float:left">{POSTER.NAME}</span>
<span style="float:right;padding-right:5px">{POSTER.NB_POSTS}</span>
</td>
</tr>
<!-- END POSTER -->
</tbody>
</table>
</div>
Bước 4: ACP-->Modules--> Portal & Widgets-->Forum widgets management
Xắp xếp theo hình
Bước 5: Vào index_body tìm
- Code:
/feed/?f=1
Thay số 1 thành id chuyên mục muốn hiện thị