An_ant โพสต์ 2008-4-26 16:33:51

กระทู้ให้ยาวเกิน 80 อักษร 2

ตัว 6.1 นี่ก็กระทู้ยาวไม่เกิน 80 วิธีการทำก็
จากนี่ http://www.cazdesign.com/forums/viewthread.php?tid=324&highligh

ln 32 แก้ไขไฟล์ include/javascript/post_editor.js   (ตรง 80 ปรับเป็น 250)
        } else if(mb_strlen(theform.subject.value) > 250) {
                alert(lang['post_subject_toolong']);
                theform.subject.focus();
                return false;



ln 263ใน include/post.func.php   (ตรง 80 ปรับเป็น 250)


function checkpost() {
        global $subject, $message, $disablepostctrl, $minpostsize, $maxpostsize;
        if(strlen($subject) > 250) {
                return 'post_subject_toolong';


ln 359 ใน templates/default/forumdisplay.htm    (ตรง 80 ปรับเป็น 250)

        } else if(mb_strlen(theform.subject.value) > 250) {
                        alert("{lang post_subject_toolong}");
                        theform.subject.focus();
                        return false;

ต่อไปที่ฐานข้อมูล
DB > cdb_posts > subject varchar(80) เป็น (250)
DB > cdb_threads > subject char(80) เป็น (250)

ฐานข้อมูลชื่อ cdb_posts กะcdb_threads ดูทางซ้าย
แล้วก็คลิกดินสอทางขวา

แก้ไขตัวเลขจาก 80 เป็น 250 หรือเลขอื่น ๆ ตามต้องการ (ตัวเลขที่แก้ต้องเท่ากันหมดทุกค่า)

สำหรับ 6.1 แก้มาให้แล้วเพียงแต่เข้าไปแก้ในฐานข้อมูลเท่านั้น

อันนี้ถ้าไม่ขยันก็เสียค่าแรง 5 แต้ม :lol

buachompoox โพสต์ 2008-5-6 17:15:38

ขอบคุณครับ
ไม่เห็นกระทู้นี้แฮะ แก้เองไปแระ~~

aueeua โพสต์ 2008-12-7 23:38:59

ขอบคุณมากครับ
หน้า: [1]
ดูในรูปแบบกติ: กระทู้ให้ยาวเกิน 80 อักษร 2