[Hack] ทำข้อความแสดงให้สมัครสมาชิกเมื่อเป็นผู้เยี่ยมชม
Original:http://www.dishack.cn/thread-381-1-1.html
แก้ไปไฟล์{bbs}/template/viewthread_node.htm
ค้นหา<table cellspacing="0" cellpadding="0"><tr><td class="t_msgfont" id="postmessage_$post">$post</td></tr></table>แทนด้วย<!-- 限制遊客瀏覽 START -->
<!--{if $post['number'] == 1}-->
<!--{if $discuz_uid}-->
<table cellspacing="0" cellpadding="0"><tr><td class="t_msgfont" id="postmessage_$post">$post</td></tr></table>
<!--{else}-->
<div class="t_msgfont" id="postmessage_$post" style="height:200px; overflow:hidden;">$post</div>
<div style="text-align:center; line-height:30px; border:1px solid #99CC00">ต้องการดูข้อความทั้งหมด กรุณา<a href="/logging.php?action=login"><font color="#FF0000"> {lang login} </font></a>หรือ<a href="/register.php"><font color="#FF0000"> $reglinkname </font></a></div>
<!--{/if}-->
<!--{else}-->
<table cellspacing="0" cellpadding="0"><tr><td class="t_msgfont" id="postmessage_$post">$post</td></tr></table>
<!--{/if}-->
<!-- 限制遊客瀏覽 END -->อัพเดชแคชเรียบร้อยครับ ขอบคุณครับ
เพิ่มเติมถ้าจะปิดหมดไม่ไห้เห็นอะไรในโพสแรกเลย
แก้ไขตรง
<div class="t_msgfont" id="postmessage_$post" style="height:200px; overflow:hidden;">$post</div>
ปรับตรง height:200px เปลี่ยน 200 เป็น 0 ขอบคุณนะครับ
เยี่ยมมากครับ ขอบคุณมากครับ ขอบพระคุณอย่างแรงเลยนะท่าน ขอบคุณค่ะแต่งได้อีก อิอิ เยี่ยมๆ ขอบคุณครับ ขอบคุณครับ ขอบคุณนะครับ ผมหาโค้ดนี้ไม่เจอง่างับ<table cellspacing="0" cellpadding="0"><tr><td class="t_msgfont" id="postmessage_$post">$post</td></tr></table>
หน้า:
[1]
2