Hi, Khách!
![]() | ![]() ![]() ![]() ![]() |
Cái này mình tự tay edit từ trả lời nhanh cho cho forum nha
Code Chuẩn...
Yêu cầu không nói là của mình tự làm là được tuy code dể nhưng có nhiều bạn không biết...
Mod by Nguyễn (N~)
Mở soo/index.php
tìm::
<?php
if (($user_id && !$type1['edit' && !$set_forum['upfp' && $set['mod_forum' != 3) || ($rights >= 7 && !$set_forum['upfp')) {
echo '<div class="gmenu"><form name="form2" action="../soo/?mod=forum&act=say&sid='. $sid .'&id=' . $id . '" method="post">';
if ($set_forum['farea') {
echo '<p>';
if (!$is_mobile)
echo bbcode::auto_bb('form2', 'msg');
echo '<textarea rows="' . $set_user['field_h' . '" name="msg"></textarea>
</p>' .
'<p><input type="checkbox" name="addfiles" value="1" /> ' . $lng_forum['add_file';
if ($set_user['translit')
echo '
<input type="checkbox" name="msgtrans" value="1" /> ' . $lng['translit';
echo '</p><p><input type="submit" name="submit" value="' . $lng['write' . '" style="width: 107px; cursor: pointer;"/> ' .
($set_forum['preview' ? '<input type="submit" value="' . $lng['preview' . '" style="width: 107px; cursor: pointer;"/>' : '') .
'</p></form></div>';
} else {
echo '<p><input type="submit" name="submit" value="' . $lng['write' . '"/></p></form></div>';
}
}
?>
Copy code
if (($user_id && !$type1['edit' && !$set_forum['upfp' && $set['mod_forum' != 3) || ($rights >= 7 && !$set_forum['upfp')) {
echo '<div class="gmenu"><form name="form2" action="../soo/?mod=forum&act=say&sid='. $sid .'&id=' . $id . '" method="post">';
if ($set_forum['farea') {
echo '<p>';
if (!$is_mobile)
echo bbcode::auto_bb('form2', 'msg');
echo '<textarea rows="' . $set_user['field_h' . '" name="msg"></textarea>
</p>' .
'<p><input type="checkbox" name="addfiles" value="1" /> ' . $lng_forum['add_file';
if ($set_user['translit')
echo '
<input type="checkbox" name="msgtrans" value="1" /> ' . $lng['translit';
echo '</p><p><input type="submit" name="submit" value="' . $lng['write' . '" style="width: 107px; cursor: pointer;"/> ' .
($set_forum['preview' ? '<input type="submit" value="' . $lng['preview' . '" style="width: 107px; cursor: pointer;"/>' : '') .
'</p></form></div>';
} else {
echo '<p><input type="submit" name="submit" value="' . $lng['write' . '"/></p></form></div>';
}
}
?>
Copy code
Thay tất cả thành::::
<?php
if($user_id){
echo '<div class="mainblok"><div class="phdr"><b>Trả lời:</div>';
echo '<center><div class="omenu"><font color="red"><b>CÓ QUYỀN KHÔNG SUPPORT CHO NHỮNG AI KHÔNG BIẾT SỬ DỤNG NÚT THANKS</b></font></div></center>';
echo '<div class="list1"><form name="form2" action="../soo/?mod=forum&act=say&sid='. $sid .'&id=' . $id . '" method="post">';
$token = mt_rand(1000, 100000);
$_SESSION['token' = $token;
echo '<p>';
if (!$is_mobile)
echo bbcode::auto_bb('form2', 'msg');
echo '<textarea rows="' . $set_user['field_h' . '" name="msg"></textarea>
</p>' .
'<p><input type="checkbox" name="addfiles" value="1" /> ' . $lng_forum['add_file';
echo '
<input type="checkbox" name="msgtrans" value="1" /> ' . $lng['translit';
echo '</p><p><input type="submit" name="submit" value="Nhắn tin" style="width: 107px; cursor: pointer;"/> ' .
'<input type="hidden" name="token" value="' . $token . '"/>' .
'</p></form></div></div>';
}?>
Copy code
if($user_id){
echo '<div class="mainblok"><div class="phdr"><b>Trả lời:</div>';
echo '<center><div class="omenu"><font color="red"><b>CÓ QUYỀN KHÔNG SUPPORT CHO NHỮNG AI KHÔNG BIẾT SỬ DỤNG NÚT THANKS</b></font></div></center>';
echo '<div class="list1"><form name="form2" action="../soo/?mod=forum&act=say&sid='. $sid .'&id=' . $id . '" method="post">';
$token = mt_rand(1000, 100000);
$_SESSION['token' = $token;
echo '<p>';
if (!$is_mobile)
echo bbcode::auto_bb('form2', 'msg');
echo '<textarea rows="' . $set_user['field_h' . '" name="msg"></textarea>
</p>' .
'<p><input type="checkbox" name="addfiles" value="1" /> ' . $lng_forum['add_file';
echo '
<input type="checkbox" name="msgtrans" value="1" /> ' . $lng['translit';
echo '</p><p><input type="submit" name="submit" value="Nhắn tin" style="width: 107px; cursor: pointer;"/> ' .
'<input type="hidden" name="token" value="' . $token . '"/>' .
'</p></form></div></div>';
}?>
Copy code
Nguồn: WapIT

Trực Tuyến:
Khách: 1