- kinhhongtientu đã viết:
- [W] ơi dạo này bênh forum của mình hem biết sao nặng quá... có cách nào giảm đi độ nặng của Fỏum ko? đặc biệt là khu vực Hình Ảnh đó... một lần vào phải chờ rất lâu
À mà còn nữa... phải làm cách nào để cài cái khung các bài mới cái khung ở trên , mới onl là đã thấy to đùng ấy... làm sao để cài cậy bày mình với
Do up ảnh nhiều quá tất nhiên phải nặng rồi, Ý nên đề nghị thành viên khi post ảnh để trong tab
- Code:
-
[spoiler][/spoiler]
để giảm load
cái khung đó gọi là lasted topic
Vào
admincp->display->templates->Portal->mod_recent_topic->dán cái này vô
- Code:
-
<!-- BEGIN scrolling_row -->
<div class="module main">
<div class="main-head"><div class="h3">{L_RECENT_TOPICS}</div></div>
<div class="main-content" id="comments_scroll_div" style="height:{SCROLL_HEIGHT}px;overflow:auto">
<!-- BEGIN recent_topic_row -->
» <a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="{scrolling_row.recent_topic_row.U_TITLE}">{scrolling_row.recent_topic_row.L_TITLE}</a>
<img src="{ICON_TIME}" alt="" />{scrolling_row.recent_topic_row.S_POSTTIME} {BY} <a onmouseover="document.getElementById('comments_scroll_container').stop();" onmouseout="document.getElementById('comments_scroll_container').start();" href="{scrolling_row.recent_topic_row.U_POSTER}">{scrolling_row.recent_topic_row.S_POSTER}</a>
<!-- END recent_topic_row -->
</div>
</div>
<!-- END scrolling_row -->
<!-- BEGIN classical_row -->
<div class="module main">
<div class="main-content"><table cellpadding="0" cellspacing="0" class="table" width="100%"><thead><tr><th width="60%">Bài viết mới</th><th width="20%">Người viết</th><th width="20%">Vào lúc</th></tr></thead><tbody class="statused"><!-- BEGIN recent_topic_row --><tr><td style=" padding: 2px; padding-left:10px;"> <img src="http://i763.photobucket.com/albums/xx279/ngokinhfc/skinYeah1/post_old.gif"></img><a href="{classical_row.recent_topic_row.U_TITLE}"> {classical_row.recent_topic_row.L_TITLE} </a></td><td class="tc3" style=" padding: 2px;padding-left:10px;"><a href="{classical_row.recent_topic_row.U_POSTER}">{classical_row.recent_topic_row.S_POSTER}</a></td><td style=" padding: 2px;padding-left:10px;">{classical_row.recent_topic_row.S_POSTTIME}</td></tr> <!-- END recent_topic_row --></tbody></table>
</div>
</div>
<!-- END classical_row -->
Nhấn dấu cộng màu xanh.
Tiếp theo vào a
dmincp->modules->Forum widgets managementNhìn xuống khung
Existing widgets sẽ thấy chữ
Recent topics-> kéo lên trên ô bên trái dòng chữ
Your forum content will be here.Nếu cái recent topic bị chạy chữ thì click vô hình bánh xe,
Activate the recent topics scrolling : chọn không