กรุณาปิด โปรแกรมบล๊อกโฆษณา เพราะเราอยู่ได้ด้วยโฆษณาที่ท่านเห็น
Please close the adblock program. Because we can live with the ads you see


thxf.org

วิธีการทํา เพิ่มจำนวน Character forum title limit

  • ผู้เริ่มหัวข้อ ผู้เริ่มหัวข้อ thxf.org 
  • วันที่เริ่มต้น วันที่เริ่มต้น

thxf.org 

Administrator

สมาชิกทีมงาน
Admin
เพิ่มจำนวน Character forum title limit ทำได้ดังนี้

มีสองส่วนคือที่ sql และ php

MySQL Query:
SQL:
ALTER TABLE `xf_node` MODIFY title varchar(100), MODIFY node_name varchar(100);

- - - - - - - - - - - - - - - - - - - - - - - - - - - -
xeForo 1.x File Edit library/XenForo/DataWriter/Node.php
@ line: 59
Find:
PHP:
  'title'              => array('type' => self::TYPE_STRING, 'required' => true, 'maxLength' => 50,
Replace/Edit: ('maxLength' => NUMERIC_VALUE)
PHP:
  'title'              => array('type' => self::TYPE_STRING, 'required' => true, 'maxLength' => 100,

@ line: 62
Find:
PHP:
  'node_name'          => array('type' => self::TYPE_STRING, 'default' => null, 'verification' => array('$this', '_verifyNodeName'), 'maxLength' => 50),
Replace/Edit: ('maxLength' => NUMERIC_VALUE)
PHP:
  'node_name'          => array('type' => self::TYPE_STRING, 'default' => null, 'verification' => array('$this', '_verifyNodeName'), 'maxLength' => 100),


xeForo 2.x File Edit /src/XF/Entity/Node.php
@ line: 269
Find:
PHP:
  'title'              => array('type' => self::TYPE_STRING, 'required' => true, 'maxLength' => 50,
Replace/Edit: ('maxLength' => NUMERIC_VALUE)
PHP:
  'title'              => array('type' => self::TYPE_STRING, 'required' => true, 'maxLength' => 100,

@ line: 272
Find:
PHP:
'node_name' => ['type' => self::STR, 'maxLength' => 50, 'nullable' => true, 'default' => null,
                'unique' => 'node_names_must_be_unique',
                'match' => 'alphanumeric_hyphen'
            ],
Replace/Edit: ('maxLength' => NUMERIC_VALUE)
PHP:
'node_name' => ['type' => self::STR, 'maxLength' => 100, 'nullable' => true, 'default' => null,
                'unique' => 'node_names_must_be_unique',
                'match' => 'alphanumeric_hyphen'
            ],


ปล เมื่อมีการอับเดทตัว xenforo ต้องทำการแก้ไขทุกครั้งครับ.
 
แก้ไขล่าสุด:

กรุณาปิด โปรแกรมบล๊อกโฆษณา เพราะเราอยู่ได้ด้วยโฆษณาที่ท่านเห็น
Please close the adblock program. Because we can live with the ads you see
กลับ
ยอดนิยม ด้านล่าง