• 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.

Share mod thu gọn quản lí của ban quản trị

Admin

Well-Known Member
Staff member
Administrator
Tạo chuyenhuong.php ngang hàng forum dán code này vào
PHP:
<?php
define('_IN_JOHNCMS', 1);
$id = isset($_POST['id']) ? abs(intval($_POST['id'])) : false;
$act = isset($_POST['act']) ? trim($_POST['act']) : '';
$start = isset($_POST['start']) ? trim($_POST['start']) : '';
if($start)
	header('location: index.php?act=' . $act . '&start='.$start);
else
	header('location: index.php?act=' . $act . '&id=' . $id);
?>
Sau đó vào forum/index.php
tìm cái đoạn quản lí đó
Thay thành cái này
Mỗi code khác nhau tuỳ các bạn edit
PHP:
if ($curators) {
 $array = array();
 foreach ($curators as $key => $value)
 $array[] = '<a href="../users/profile.php?user=' . $key . '" title="'.$value.'">' . $value . '</a>';
 echo '<p><div class="func">' . $lng_forum['curators'] . ': ' . implode(', ', $array) . '</div></p>';
 }
 if ($rights == 3 || $rights >= 6) { ?>
 <div class=bao_n2m><div class=nav>Công cụ quản lý</div>
<div class=menu>
<form action="<? echo $home ?>/chuyenhuong.php" method="post">
<select name="act">
 <? if ($rights >= 7) echo '<option value="curators&start=' . $start . '">' . $lng_forum['curators_of_the_topic'] . '</option>';
if($set['kiemduyet'] == 1){
if(!$type1['kiemduyet'] && $rights >=3) {
echo "<div class='list2'><a href='showthread.php?act=kiemduyet&amp;id=" . $id . "&amp;kiemduyet' title='Kiểm duyệt bài viết'>Kiểm duyệt</a> | <a href='showthread.php?act=deltema&amp;id=" . $id . "' title='Xóa bài viết'>Xóa</a></div>"; }
}
 echo isset($topic_vote) && $topic_vote > 0
 ? '<option value="editvote">'.$lng_forum['edit_vote'].'</option>
<option value="delvote">'.$lng_forum['delete_vote'].'</option>'
 : '<option value="addvote">'.$lng_forum['add_vote'].'</option>';
 echo '<option value="ren">'.$lng_forum['topic_rename'].'</option>
<option value="deltema">'.$lng_forum['topic_delete'].'</option>';
 if ($type1['edit'] == 1)
 echo '<option value="close">'.$lng_forum['topic_open'].'</option>';
 else
 echo '<option value="close&closed">'.$lng_forum['topic_close'].'</option>';
 if ($type1['close'] == 1)
 echo '<option value="restore">'.$lng_forum['topic_restore'].'</option>';
 if ($type1['vip'] == 1)
 echo '<option value="vip">'.$lng_forum['topic_unfix'].'</option>';
 else
 echo '<option value="vip&vip">'.$lng_forum['topic_fix'].'</option>';
echo '<option value="tiento">Đổi tiền tố</option>';
 echo '<option value="per">'.$lng_forum['topic_move'].'</option>';
if($rights >= 7) {
if($type1['topicvip'] == 0) {
echo '<option value="topicvip">Đánh dấu</option>';
} else {
echo '<option value="unvip">Bỏ đánh dấu</option>';
}
} ?>
<input type="hidden" name="id" value="<? echo $id ?>" />
</select><input type="submit" value="Thực hiện"/></form></div></div>';
 }
 

Facebook Comments

New posts New threads New resources

Back
Top