Xem bài viết
Cũ 24-05-2008   #23
Ảnh thế thân của LSB-Vipno3
LSB-Vipno3
-=[ Lương Sơn Anh Hùng ]=-
Gia nhập: 14-02-2007
Bài viết: 2.651
Điểm: 122
L$B: 190.568
Tâm trạng:
LSB-Vipno3 đang offline
 
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)
File gửi kèm
Loại File: rar utf-8''disable_post_count_decrease_per_forum.rar (1,6 KB, Đã tải về 8 lần)

Tài sản của LSB-Vipno3
Thành viên sau đã gửi lời cám ơn đến LSB-Vipno3 vì bài viết hữu ích này:
taynguyen2010 (08-06-2011)
 
Page generated in 0,02873 seconds with 16 queries