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

Hotro

Member
Mở forum/index.php
Tìm:
PHP:
##########Hết phần thanks!
// Счетчик постов темы
$colmes = mysql_result(mysql_query("SELECT COUNT(*) FROM `forum` WHERE `type`='m'$sql AND `refid`='$id'" . ($rights >= 7 ? '' : " AND `close` != '1'")), 0);
if ($start > $colmes) $start = $colmes - $kmess;
Thêm vào bên trên
PHP:
if ((isset ($_GET['unthank']))&&(isset ($_GET['user']))&&(isset ($_GET['unthanks']))) {
$checkthank = mysql_query('SELECT COUNT(*) FROM `forum_thank` WHERE `userthank` = "' . $user_id . '" and `topic` = "' . $_GET['unthanks'] . '" and `user` = "' . $_GET['user'] . '"');
$thankcheck = mysql_result($checkthank, 0);
if ($thankcheck > 0 && $user_id != $_GET['user']) {
mysql_query("DELETE FROM `forum_thank` WHERE `user` = '".trim($_GET['user'])."' AND `userthank` = '$user_id' AND `topic` = '".trim($_GET['unthanks'])."'");
mysql_query("OPTIMIZE TABLE `forum_thank`");
$datathankuser = functions::get_user(trim($_GET['user']));
mysql_query("UPDATE `users` SET `thank_duoc`='" . ($datathankuser['thank_duoc'] - 1) . "' WHERE `id` = '" . trim($_GET['user']) . "'");
mysql_query("UPDATE `users` SET `thank_di`='" . ($datauser['thank_di'] - 1) . "' WHERE `id` = '" . $user_id . "'");
mysql_query("UPDATE `users` SET `postforum`='" . ($datathankuser['postforum'] - 3) . "' WHERE `id` = '" . trim($_GET['user']) . "'");
}
}
Tìm tiếp:
PHP:
$checkthank = mysql_query('SELECT COUNT(*) FROM `forum_thank` WHERE `userthank` = "' . $user_id . '" and `topic` = "' . $res['id'] . '" and `user` = "' . $res['user_id'] . '"');
if ($user_id && $user_id != $res['user_id'] && (mysql_result($checkthank, 0) < 1)) {
Thêm bên dưới:
PHP:
echo (mysql_result($checkthank, 0) == 1 ? '<a href="index.php?id=' . $id . '&amp;unthanks=' . $res['id'] . '&amp;user=' . $res['user_id'] . '&amp;start=' . $start . '&amp;unthank"><b><font color="black">Dislike</font></b></a>' : ' ');
 

Facebook Comments

New posts New threads New resources

Back
Top