ข่าวประชาสัมพันธ์

มาร่วมเป็นกำลังใจให้เว็บด้วยการสมัครสมาชิกวีไอพี ~~ เลือกปีที่ท่านต้องการได้โดยไม่ต้องเรียงปี ~~ ปีละ 350 บาท สมัคร 2 ปีลดเหลือ 600 บาท ~~ มีไลน์กลุ่ม VIP จำนวนหลายร้อยท่าน เอาไว้ปรึกษางานซ่อม ~~ เข้าถึงข้อมูลด้านเทคนิค ข้อมูลเชิงลึกมากมาย.....


ผู้เขียน หัวข้อ: Mod Who Downloaded Attachment  (อ่าน 951 ครั้ง)

0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้

ออฟไลน์ Sonchai_Music

  • Administrator
  • หัวหน้าศูนย์ซ่อมสร้าง
  • *
  • เจ้าของกระทู้
  • Joined: ก.ย. 2558
  • กระทู้: 2059
  • สมาชิกลำดับที่ : 2
  • สมาชิกวีไอพี ปีที่ 1,3-4

ออฟไลน์ Sonchai_Music

  • Administrator
  • หัวหน้าศูนย์ซ่อมสร้าง
  • *
  • เจ้าของกระทู้
  • Joined: ก.ย. 2558
  • กระทู้: 2059
  • สมาชิกลำดับที่ : 2
  • สมาชิกวีไอพี ปีที่ 1,3-4
Mod Who Downloaded Attachment
« ตอบกลับ #1 เมื่อ: 21 เมษายน 2564, 07:44:05 »
  • ขึ้นบน
  • ลงล่าง
  •    >>> Files Edit   

    ./Sources/Display.php

    Find:    
    โค๊ด: [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.php

    Find:
    โค๊ด: [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));

    Code
    database.php
    This file should be able to execute standalone.
    hooks.php
    This file should be able to execute standalone.
    File Operations
    Move the included directory "Sources" to "the root directory".
    Move the included directory "Themes" to "the root directory".
    « แก้ไขครั้งสุดท้าย: 21 เมษายน 2564, 07:48:11 โดย Sonchai_Music »

    ออฟไลน์ Sonchai_Music

    • Administrator
    • หัวหน้าศูนย์ซ่อมสร้าง
    • *
    • เจ้าของกระทู้
    • Joined: ก.ย. 2558
    • กระทู้: 2059
    • สมาชิกลำดับที่ : 2
    • สมาชิกวีไอพี ปีที่ 1,3-4
    Mod Who Downloaded Attachment
    « ตอบกลับ #2 เมื่อ: 21 เมษายน 2564, 09:13:37 »
  • ขึ้นบน
  • ลงล่าง
  • - รายงานผลการติดตั้ง

    คุณต้องมีสิ่งต่อไปนี้เพื่อดูเนื้อหาโพสต์นี้:
    • คุณต้องเป็นสมาชิกของกลุ่มใดกลุ่มหนึ่งต่อไปนี้: Administrator.

    Mod Who Downloaded Attachment
    « ตอบกลับ #2 เมื่อ: 21 เมษายน 2564, 09:13:37 »