Bà con vào đây http://ddaavn.forumvi.com/f2-forum kéo xuống dưới sẽ thấy nút New Topic. Vậy làm sao để nó lên trên cho dễ thấy.
Hỗ trợ Forumotion
Mr.Baut1102 đã viết:ACP => Display => Pics management => Mã mở rộng => Buttons => Gửi bài mới
Cho hình vào, cả hai cái trên và dưới
<!-- BEGIN topics_list_box -->
<!-- BEGIN row -->
<!-- BEGIN header_table -->
<!-- BEGIN multi_selection -->
<script type="text/javascript">
function check_uncheck_main_{topics_list_box.row.header_table.BOX_ID}() {
var all_checked = true;
for (i = 0; (i < document.{topics_list_box.FORMNAME}.elements.length) && all_checked; i++) {
if (document.{topics_list_box.FORMNAME}.elements[i].name == '{topics_list_box.FIELDNAME}[]{topics_list_box.row.header_table.BOX_ID}') {
all_checked = document.{topics_list_box.FORMNAME}.elements[i].checked;
}
}
document.{topics_list_box.FORMNAME}.all_mark_{topics_list_box.row.header_table.BOX_ID}.checked = all_checked;
}
function check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}() {
for (i = 0; i < document.{topics_list_box.FORMNAME}.length; i++) {
if (document.{topics_list_box.FORMNAME}.elements[i].name == '{topics_list_box.FIELDNAME}[]{topics_list_box.row.header_table.BOX_ID}') {
document.{topics_list_box.FORMNAME}.elements[i].checked = document.{topics_list_box.FORMNAME}.all_mark_{topics_list_box.row.header_table.BOX_ID}.checked;
}
}
}
</script>
<!-- END multi_selection -->
<div class="main-head">
<!-- BEGIN multi_selection -->
<input onclick="check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}();" type="checkbox" name="all_mark_{topics_list_box.row.header_table.BOX_ID}" value="0" />
<!-- END multi_selection -->
<h1 class="page-title">{topics_list_box.row.L_TITLE} [{topics_list_box.row.COUNT_TOTAL_TOPICS}]</h1>
</div>
<div class="paged-foot clearfix"><p class="paging"></p><p class="posting"> <a href="{U_POST_NEW_TOPIC}" rel="nofollow"><img src="{POST_IMG}" class="{POST_IMG_CLASS}" alt="{L_POST_NEW_TOPIC}" /></a> </p></div>
<div class="main-content">
<table id="rootlistFMvi" cellspacing="0" class="table">
<thead>
<tr>
<th class="tcl">{L_TOPICS}</th>
<th class="tc2">{topics_list_box.row.L_REPLIES}</th>
<th class="tc3">{topics_list_box.row.L_VIEWS}</th>
<th class="tcr">{topics_list_box.row.L_LASTPOST}</th>
</tr>
</thead>
<tbody class="statused">
<!-- END header_table -->
<!-- BEGIN header_row -->
<strong>{topics_list_box.row.L_TITLE}</strong>
<!-- END header_row -->
<!-- BEGIN topic -->
<!-- BEGIN table_sticky -->
</tbody>
</table>
</div>
<div class="main-head">
<!-- BEGIN multi_selection -->
<input onclick="check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}();" type="checkbox" name="all_mark_{topics_list_box.row.header_table.BOX_ID}" value="0" / >
<!-- END multi_selection -->
<h2>{topics_list_box.row.topic.table_sticky.L_TITLE} [{topics_list_box.row.topic.table_sticky.COUNT_TOTAL_TOPICS}]</h2>
</div>
<div class="main-content">
<table cellspacing="0" class="table">
<thead>
<tr>
<th class="tcl">{L_TOPICS}</th>
<th class="tc2">{topics_list_box.row.topic.table_sticky.L_REPLIES}</th>
<th class="tc3">{topics_list_box.row.topic.table_sticky.L_VIEWS}</th>
<th class="tcr">{topics_list_box.row.topic.table_sticky.L_LASTPOST}</th>
</tr>
</thead>
<tbody class="statused">
<!-- END table_sticky -->
<tr>
<td class="tcl tdtopics <!-- BEGIN line_sticky --> sticky-separator <!-- END line_sticky -->">
<span class="status">
<img title="{topics_list_box.row.L_TOPIC_FOLDER_ALT}" src="{topics_list_box.row.TOPIC_FOLDER_IMG}" alt="{topics_list_box.row.L_TOPIC_FOLDER_ALT}" />
</span>
<!-- BEGIN single_selection -->
<input type="radio" name="{topics_list_box.FIELDNAME}" value="{topics_list_box.row.FID}" {topics_list_box.row.L_SELECT} />
<!-- END single_selection -->
{topics_list_box.row.ICON}
{topics_list_box.row.NEWEST_POST_IMG}
{topics_list_box.row.PARTICIPATE_POST_IMG}
{topics_list_box.row.TOPIC_TYPE}
<h2 class="topic-title"><a class="topictitle" href="{topics_list_box.row.U_VIEW_TOPIC}">{topics_list_box.row.TOPIC_TITLE}</a></h2>
{topics_list_box.row.GOTO_OPEN} {topics_list_box.row.GOTO_PAGE_NEW} {topics_list_box.row.GOTO_CLOSE}
{topics_list_box.row.L_BY} {topics_list_box.row.TOPIC_AUTHOR}
<!-- BEGIN switch_description -->
<br />
{topics_list_box.row.topic.switch_description.TOPIC_DESCRIPTION}
<!-- END switch_description -->
</td>
<td class="tc2 <!-- BEGIN line_sticky --> sticky-separator <!-- END line_sticky -->">{topics_list_box.row.REPLIES}</td>
<td class="tc3 <!-- BEGIN line_sticky --> sticky-separator <!-- END line_sticky -->">{topics_list_box.row.VIEWS}</td>
<td class="tcr <!-- BEGIN line_sticky --> sticky-separator <!-- END line_sticky -->">{topics_list_box.row.LAST_POST_TIME} {topics_list_box.row.L_BY} {topics_list_box.row.LAST_POST_AUTHOR} {topics_list_box.row.LAST_POST_IMG}</td>
<!-- BEGIN multi_selection -->
<td><input onclick="javascript:check_uncheck_main_{topics_list_box.row.BOX_ID}();" type="checkbox" name="{topics_list_box.FIELDNAME}[]{topics_list_box.row.BOX_ID}" value="{topics_list_box.row.FID}" {topics_list_box.row.L_SELECT} /></td>
<!-- END multi_selection -->
</tr>
<!-- END topic -->
<!-- BEGIN no_topics -->
<tr>
<td class="tcl" colspan="4"><strong>{topics_list_box.row.L_NO_TOPICS}</strong></td>
</tr>
<!-- END no_topics -->
<!-- BEGIN bottom -->
</tbody>
</table>
</div>
<div class="main-foot clearfix">
<!-- BEGIN multi_selection -->
<input onclick="check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}();" type="checkbox" name="all_mark_{topics_list_box.row.header_table.BOX_ID}" value="0" />
<!-- END multi_selection -->
<p class="h2">{L_TOPICS} [{topics_list_box.row.bottom.COUNT_TOTAL_TOPICS}]</p>
<p class="options">
<a href="{U_MARK_READ}">{L_MARK_TOPICS_READ}</a> {S_WATCH_FORUM} <a href="#top">{L_BACK_TO_TOP}</a>
</p>
</div>
<!-- END bottom -->
<!-- BEGIN spacer --><br /><!-- END spacer -->
<!-- END row -->
<!-- END topics_list_box -->
<div class="main-head greenBgT">
<h1 class="page-title">Tùy chọn hiển thị chủ đề</h1>
</div>
<div id="sapxepFMvi" class="paged-foot clearfix">
<span>Tìm trước đó</span>
<select class="search_time">
<option selected="selected" value="0">Không giới hạn</option>
<option value="1">1 ngày</option>
<option value="7">7 ngày</option>
<option value="14">2 tuần</option>
<option value="30">1 tháng</option>
<option value="90">3 tháng</option>
<option value="180">6 tháng</option>
<option value="364">1 năm</option>
</select>
<span>Sắp xếp theo</span>
<select class="sort_by">
<option selected="selected" value="0">Thời gian</option>
<option value="1">Chủ đề</option>
<option value="3">Tác giả</option>
</select>
<span>Kiểu sắp xếp</span>
<select class="sort_type">
<option selected="selected" value="DESC">Giảm dần</option>
<option value="ASC">Tăng dần</option>
</select>
<input type="button" value="Hiện chủ đề" class="button" />
</div>
<div id="sapxepdulieu"></div>
<script type="text/javascript">
$("#sapxepFMvi .button").click(function () {
var Stime = $("#sapxepFMvi .search_time option:selected:selected").val();
var Ssort = $("#sapxepFMvi .sort_by option:selected:selected").val();
var Stype = $("#sapxepFMvi .sort_type option:selected:selected").val();
$("#sapxepdulieu").load("/search?search_keywords=&search_author=*&search_where=f{FORUM_ID}&search_time=" + Stime + "&sort_by=" + Ssort + "&sort_dir=" + Stype + " #main-content .frm-form", function () {
xepbaiFMvi();
});
});
function xepbaiFMvi() {
$("#sapxepdulieu .statused .tc2").remove();
$(".table:not('#rootlistFMvi') .statused").replaceWith($("#sapxepdulieu .table .statused"));
$(".paging:not('#sapxepdulieu .paging:first')").replaceWith($("#sapxepdulieu .paging"));
var lengthXep = $(".table:not('#rootlistFMvi') .statused tr").length;
$("#rootlistFMvi").parent().next().find("h2").text("Topics [" + lengthXep + "]");
$("#rootlistFMvi").parent().next().next().next().find(".h2").text("Topics [" + lengthXep + "]");
$(".paging a").click(function () {
var linkXeplai = $(this).attr("href");
$("#sapxepdulieu").load(linkXeplai + "#main-content .frm-form", function () {
xepbaiFMvi()
});
return false;
});
}
</script>
Similar topics
Permissions in this forum:
Bạn không có quyền trả lời bài viết
|
|