soompoll01 โพสต์ 2015-9-10 00:14:03

ปิดชื่อภาพและตัวดาวน์โหลด เมื่อเอาเมาส์ไปชี้ที่ภาพ

เห็นมีสมาชิกdiscuzthaiท่านนึงถามไว้ อยากปิดตัวดาวน์โหลด เมื่อเอาเม้าท์ไปชี้รูปภาพ
วิธีทำก็ง่ายๆคือไปลบโค๊ดที่มันแสดงสะเลย





วิธีทำ
เปิดไฟล์ discuzcode.htm
ที่ template/สกิลที่ใช้/forum/discuzcode.htm
ถ้าไม่มีไปที่สกิล default

ค้นหา
class="tip tip_4 aimg_tip" id="aimg_$attach_menu" style="position: absolute; display: none" disautofocus="true"
แล้วลบออก

ถัดลงมา คุมดำ
<p><strong>$attach</strong> <em class="xg1">($attach, {lang downloads}: $attach)</em></p>
                                        <p>
                                                <a href="forum.php?mod=attachment{$is_archive}&aid=$aidencode&nothumb=yes" target="_blank">{lang download}</a>
                                                <!--{if helper_access::check_module('album')}-->
                                                        &nbsp;<a href="javascript:;" onclick="showWindow(this.id, this.getAttribute('url'), 'get', 0);" id="savephoto_$attach" url="home.php?mod=spacecp&amp;ac=album&amp;op=saveforumphoto&amp;aid=$attach&amp;handlekey=savephoto_$attach">{lang save_to_album}</a>
                                                <!--{/if}-->
                                                <!--{if $firstpost && $_G['fid'] && $_G['forum']['picstyle'] && ($_G['forum']['ismoderator'] || $_G['uid'] == $attach['uid'])}-->
                                                        &nbsp;<a href="forum.php?mod=ajax&action=setthreadcover&aid=$attach&fid=$_G" onclick="showWindow('setcover{$attach}', this.href)">{lang set_cover}</a>
                                                <!--{/if}-->
                                        </p>
                                        <!--{if $attach}--><p>$attach</p><!--{/if}-->
                                        <p class="xg1 y">$attach {lang upload}</p>
แล้วลบออก

จากนั้นบันทึก แล้วดูผล

ก่อนทำควรสำรองไฟล์ทุกครั้ง

soompoll01 โพสต์ 2015-9-10 14:24:36

nanpom ตอบกลับเมื่อ 2015-9-10 11:39
แล้วจะมีปัญหากับ ไฟล์แนบแบบอื่นไหมคะ ถ้าไม่เกี่ยวกับพวกไฟล์ .rar ก็ดีมากค่ะ

ค้นหา
class="tip tip_4 aimg_tip" id="aimg_$attach_menu" style="position: absolute; display: none" disautofocus="true"

ลบแค่ class="tip tip_4 aimg_tip" ออกนะไม่ต้องลบทั้งแถว

nanpom โพสต์ 2015-9-10 11:38:05

ขอบคุณมากค่ะ ;P

nanpom โพสต์ 2015-9-10 11:39:33

แล้วจะมีปัญหากับ ไฟล์แนบแบบอื่นไหมคะ ถ้าไม่เกี่ยวกับพวกไฟล์ .rar ก็ดีมากค่ะ

nanpom โพสต์ 2015-9-10 11:46:11

ลองแล้วค่ะ ไม่มีปัญหากับไฟล์แนบอื่นๆ สามารถโหลดได้ปกติ

;P :loveliness:

soompoll01 โพสต์ 2015-9-10 11:46:32

nanpom ตอบกลับเมื่อ 2015-9-10 11:39
แล้วจะมีปัญหากับ ไฟล์แนบแบบอื่นไหมคะ ถ้าไม่เกี่ยวกับพวกไฟล์ .rar ก็ดีมากค่ะ

หลังจาดทดลองแล้วไฟแนบใช้งานได้ปรกติ อัพรูปใหม่ก็ปรกติดี

fullmaxchill โพสต์ 2015-9-10 15:55:09

ขอบคุณครับ ความรู้ทั้งนั้นเลย

Gloszilla โพสต์ 2015-9-12 08:01:37

โอ้ว กำลังหาพอดี ขอบคุณมากครับ

CyTrix-X โพสต์ 2016-9-4 17:41:37

กำลังหาเลย ขอบคุณมากครับ ลองแล้ว work

CyTrix-X โพสต์ 2016-9-4 18:48:43

แก้ไขครั้งสุดท้ายโดย CyTrix-X เมื่อ 2016-9-4 19:04

ลองใน Discuz! X3.2 MultiLingual version, Rev. 441 แล้วที่ work จะแตกต่างกับข้างบนนะครับ

ผลลัพท์


ลบทิ้ง(สำหรับรูป) ราวๆ บรรทัด 146

                                                <p class="mbn">
                                                        <a href="forum.php?mod=attachment{$is_archive}&aid=$aidencode&nothumb=yes" {if $_GET['from'] != 'preview'}onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})" id="aid$attach"{/if} class="xw1" target="_blank">$attach</a>
                                                        <em class="xg1">($attach, {lang downloads}: $attach)</em>
                                                </p>

ลบทิ้งให้เหลือแค่นี้(สำหรับเอาเมาท์เหนือไฟล์แนบ) ราวๆ บรรทัด 95
ก่อน
                                <div class="tip tip_4" id="aid$attach_menu" style="display: none" disautofocus="true">
                                        <div class="tip_c">
<!--vot-->                                        <p>{lang upload_time}: $attach</p>
                                                <p>{lang clicktodownload}</p>
                                                <!--{if !$attach['attachimg'] && $_G['getattachcredits']}-->{lang attachcredits}: $_G<br /><!--{/if}-->
                                        </div>

หลัง
                                <div id="aid$attach_menu" style="display: none" disautofocus="true">
                                        <div class="tip_c">
                                                <!--{if !$attach['attachimg'] && $_G['getattachcredits']}-->{lang attachcredits}: $_G<br /><!--{/if}-->
                                        </div>
หน้า: [1] 2
ดูในรูปแบบกติ: ปิดชื่อภาพและตัวดาวน์โหลด เมื่อเอาเมาส์ไปชี้ที่ภาพ