Share mod who download johncms

  • Thread starter Thread starter AdminAdmin is verified member.
  • Start date Start date
Admin

AdminAdmin is verified member.

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
 
Rõ ràng là mình lập top trước admin mà nhỉ..top của mình lặn đi đâu rồi
 

Facebook Comments

Similar threads

D
Replies
0
Views
1K
dgtupltn95
D
Admin
Replies
0
Views
730
AdminAdmin is verified member.
Admin
Admin
Replies
1
Views
1K
C
D
Replies
0
Views
582
dgtupltn95
D
Admin
Replies
9
Views
4K
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
3K
AdminAdmin is verified member.
Admin
Back
Top