1 頁 (共 1 頁)

[å•

發表於 : 2003-09-08 23:28
onnote
In my forum, i only can put 15 chinese words in the subject. Is there any mod to increase it? Thank you in advance.

發表於 : 2003-09-08 23:35
JFA
go to DB and enlarge the max length of post_topic_text

發表於 : 2003-09-08 23:46
onnote
JFA 寫:go to DB and enlarge the max length of post_topic_text
sorry but can you be more specific please? what is DB? and how to enlarge the length of the post topic text? where should i start???

Sorry i;m new.... thank you for your patient!

發表於 : 2003-09-13 17:46
Bot
Just search long subject MOD...

發表於 : 2003-09-13 20:29
Mowd

發表於 : 2003-09-13 20:36
howard123639
go to DB

發表於 : 2003-09-13 23:25
Bot

代碼: 選擇全部

############################################################## 
## MOD Title: Long Subject (120 letters) 
## MOD Author: Ralendil < ralendil@hotmail.com > Ravaille Franck - http://civs.org 
## MOD Description: Put to 120 subject limit. 
## 
## MOD Version: 1.0.0 
## 
## Installation Level: Easy 
## Installation Time: 1 minute 
## Files to Edit: templates/subSilver/posting_body.tpl 
## Included Files: N/A 
############################################################## 
## For Security Purposes, Please Check: http://www.phpbb.com/mods/downloads/ for the 
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code 
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered 
## in our MOD-Database, located at: http://www.phpbb.com/mods/downloads/ 
############################################################## 
## Author Notes: 
## 
############################################################## 
## MOD History: 
## 1.0.0 Release 
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
############################################################## 

# 
#-----[ SQL ]------------------------------------------ 
# 
ALTER TABLE `phpbb_topics` CHANGE `topic_title` `topic_title` CHAR(120) NOT NULL 


# 
#-----[ SQL ]------------------------------------------ 
# 
ALTER TABLE `phpbb_posts_text` CHANGE `post_subject` `post_subject` VARCHAR(120) DEFAULT NULL 

# 
#-----[ OPEN ]------------------------------------------ 
# 
templates/subSilver/posting_body.tpl 

# 
#-----[ FIND ]------------------------------------------ 
# 
<input type="text" name="subject" size="45" maxlength="60" style="width:450px" tabindex="2" class="post" value="{SUBJECT}" /> 

# 
#-----[ REPLACE WITH ]------------------------------------------ 
# 
<input type="text" name="subject" size="45" maxlength="120" style="width:450px" tabindex="2" class="post" value="{SUBJECT}" /> 

# 
#-----[ SAVE/CLOSE ALL FILES ]---------------------------------------- 

# 
# EoM
it enable your topic title to 120 letters
but you should notice again that when you type chinese as you topic title
a chinese word is equal to two letters(or bytes)
so at the last step,i recommend that not to change it..
keep maxlength="60"