• 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 who download johncms

Admin

Well-Known Member
Staff member
Administrator
Cũng chẳng có gì mới, share cái khích lệ các bạn
Mod Who Download JohnCms
whodl_zpse9825e89.png

Giới thiệu: Hiển thị thành viên đã tải tệp tin, xem ai tải mà không thanks thì quăng gạch :D
Hướng dẫn:
+ Gõ đoạn sql sau vào data:
PHP:
ALTER TABLE `cms_forum_files` ADD `dlguestcount` INT( 11 ) NOT NULL AFTER `dlcount`
+ Import data đi kèm
+ Upfile file.php vào forum/includes/
+ Mở forum/index.php tìm:
PHP:
                        $file_id = $fres['id'];
                    }
}
Thêm vào dưới nó:
PHP:
$checkdl = mysql_result(mysql_query("SELECT COUNT(*) from `cms_forum_files_count` where `post`='" . $res['id'] . "'"), 0);
$dlcount = @mysql_query("select * from `cms_forum_files_count` where `post` = '" . $res['id'] . "'");
if ($checkdl > 0) {
echo '<br/> ';
while ($dlcount2 = mysql_fetch_array($dlcount))
{
{
$usernamedl = mysql_fetch_array(mysql_query('SELECT `name` FROM `users` WHERE `id` = "'.$dlcount2['user_id'].'"'));
echo '<a href="/users/profile.php?id='.$dlcount2['user_id'].'">'.$usernamedl['name'].'</a>, ';
}
++$f;
}
echo 'và ' . $fres['dlguestcount'] . ' khách đã tải tệp tin';
}
+ Save và test.
whodownload.zip
 

Facebook Comments

New posts New threads New resources

Back
Top