Mục đặt biệt : MOD Các phiên bản Vbb .
Mod - Xóa bài không giảm số lượng
Cách cài đặt :
Bước 1.) IMPORT THE PRODUCT !
Bước 2.) Open includes/functions_databuild.php
Tìm:
Trích dẫn:
------
PHP Code:
// ###################### Start deletethread #######################
function delete_thread($threadid, $countposts = true, $physicaldel = true, $delinfo = NULL, $dolog = true, $threadinfo = NULL)
{
global $vbulletin, $vbphrase;
|
Thêm bên dưới:
Trích dẫn:
-------------
PHP Code:
$get_postdecrease = $vbulletin->db->query_first("
SELECT forumid, allowpostdecrease
FROM " . TABLE_PREFIX . "forum
WHERE forumid = " . $threadinfo['forumid'] . "
");
if ($get_postdecrease['allowpostdecrease'] == 0)
{
$countposts = false;
}
Tìm tiếp:
------
PHP Code:
// ###################### Start deletepost #######################
function delete_post($postid, $countposts = true, $threadid = 0, $physicaldel = true, $delinfo = NULL, $dolog = true)
{
global $vbulletin, $vbphrase, $threadinfo;
|
Thêm bên dưới:
Trích dẫn:
-------------
PHP Code:
$get_postdecrease = $vbulletin->db->query_first("
SELECT forumid, allowpostdecrease
FROM " . TABLE_PREFIX . "forum
WHERE forumid = " . $threadinfo['forumid'] . "
");
if ($get_postdecrease['allowpostdecrease'] == 0)
{
$countposts = false;
}
#####################################
|
Bước 3.)Edit Trong forum con chon No :
Allow Post Count To Decrease In This Forum Naturally? (Default Is YES) (If selected to no user's post count WILL NOT decrease in this forum!)
chọn (Không)