ปิดชื่อภาพและตัวดาวน์โหลด เมื่อเอาเมาส์ไปชี้ที่ภาพ
เห็นมีสมาชิก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¬humb=yes" target="_blank">{lang download}</a>
<!--{if helper_access::check_module('album')}-->
<a href="javascript:;" onclick="showWindow(this.id, this.getAttribute('url'), 'get', 0);" id="savephoto_$attach" url="home.php?mod=spacecp&ac=album&op=saveforumphoto&aid=$attach&handlekey=savephoto_$attach">{lang save_to_album}</a>
<!--{/if}-->
<!--{if $firstpost && $_G['fid'] && $_G['forum']['picstyle'] && ($_G['forum']['ismoderator'] || $_G['uid'] == $attach['uid'])}-->
<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>
แล้วลบออก
จากนั้นบันทึก แล้วดูผล
ก่อนทำควรสำรองไฟล์ทุกครั้ง 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" ออกนะไม่ต้องลบทั้งแถว ขอบคุณมากค่ะ ;P แล้วจะมีปัญหากับ ไฟล์แนบแบบอื่นไหมคะ ถ้าไม่เกี่ยวกับพวกไฟล์ .rar ก็ดีมากค่ะ ลองแล้วค่ะ ไม่มีปัญหากับไฟล์แนบอื่นๆ สามารถโหลดได้ปกติ
;P :loveliness: nanpom ตอบกลับเมื่อ 2015-9-10 11:39
แล้วจะมีปัญหากับ ไฟล์แนบแบบอื่นไหมคะ ถ้าไม่เกี่ยวกับพวกไฟล์ .rar ก็ดีมากค่ะ
หลังจาดทดลองแล้วไฟแนบใช้งานได้ปรกติ อัพรูปใหม่ก็ปรกติดี
ขอบคุณครับ ความรู้ทั้งนั้นเลย โอ้ว กำลังหาพอดี ขอบคุณมากครับ กำลังหาเลย ขอบคุณมากครับ ลองแล้ว work แก้ไขครั้งสุดท้ายโดย 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¬humb=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