Nuknan โพสต์เมื่อ 2008-12-14 22:05:25

Modify How long word tag

modify the long word of tag

what modify files
tag.php
include/editpost.inc.php
include/newthread.inc.php

1.Go to Admincp > Tools > Database > Quary

Insert Code :ALTER TABLE  `cdb_tags` CHANGE  `tagname`  `tagname` CHAR( 80 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;or Go to admincp
change tablepre cdb_tag and filed "Tagname" from  char(20) to  char(80)

2.open tag.php in root floder

Find :if(!preg_match('/^([\x7f-\xff_-]|\w|\s)+$/', $name) || strlen($name) > 20) {Change To :if(!preg_match('/^([\x7f-\xff_-]|\w|\s)+$/', $name) || strlen($name) > 80) {3.Open include/editpost.inc.php

Find :if(preg_match('/^([\x7f-\xff_-]|\w|\s){3,20}$/', $tagname)) {Change To :if(preg_match('/^([\x7f-\xff_-]|\w|\s){3,80}$/', $tagname)) {4.Open include/newthread.inc.php

Find :if(preg_match('/^([\x7f-\xff_-]|\w|\s){3,20}$/', $tagname)) {Change To :if(preg_match('/^([\x7f-\xff_-]|\w|\s){3,80}$/', $tagname)) {

[ แก้ไขล่าสุด Nuknan เมื่อ 2008-12-14 22:16 ]

Saokim999 โพสต์เมื่อ 2008-12-14 22:19:01

thanks nuknan so much~:15:~ ~:15:~ ~:15:~

jaideejung007 โพสต์เมื่อ 2009-8-7 12:14:21

I dont' like English

Not understand?

but

Thank you very So much

Ei Ei Ei
หน้า: [1]
ดูในรูปแบบกติ: Modify How long word tag