[å•
發表於 : 2003-09-08 23:28
In my forum, i only can put 15 chinese words in the subject. Is there any mod to increase it? Thank you in advance.
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???JFA 寫:go to DB and enlarge the max length of post_topic_text
代碼: 選擇全部
##############################################################
## 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