ทำการแพร์กับ smf 2.0.18 ได้ผลแฮะ...
ReadmeSMF Who Downloaded Attachment mod
License: The MIT License (MIT)
Languages: English, Russian
Mod page: You are not allowed to view links.
Register or
LoginGithub: You are not allowed to view links.
Register or
LoginThis modification adds ability to show who downloaded attachment. The list consists of a nickname, date and IP address.
Features:* Ability to show who downloaded attachment. The list is limited to 1000 members.
* Group permission for this.
File Edits./Sources/Display.phpFind: [Select]
$filename = getAttachmentFilename($real_filename, $_REQUEST['attach'], $id_folder, false, $file_hash);
Add Before: [Select]
call_integration_hook('integrate_attachment_download', array($id_attach, $attachment_type));
./Themes/default/Display.template.phpFind: [Select]
(', $attachment['size'], ($attachment['is_image'] ? ', ' . $attachment['real_width'] . 'x' . $attachment['real_height'] . ' - ' . $txt['attach_viewed'] : ' - ' . $txt['attach_downloaded']) . ' ' . $attachment['downloads'] . ' ' . $txt['attach_times'] . '.)<br />';
Replace With: [Select]
(', $attachment['size'], ($attachment['is_image'] ? ', ' . $attachment['real_width'] . 'x' . $attachment['real_height'] . ' - ' . $txt['attach_viewed'] : ' - ' . $txt['attach_downloaded']) . ' ' . $attachment['downloads'] . ' ' . $txt['attach_times'] . '.)';
call_integration_hook('integrate_attachment_download_list', array(&$attachment));
Codedatabase.php
This file should be able to execute standalone.
hooks.php
This file should be able to execute standalone.
File OperationsMove the included directory "Sources" to "the root directory".
Move the included directory "Themes" to "the root directory".