[修正][2.0.6]主題長度120
http://phpbb-tw.net/phpbb/viewtopic.php?p=122336#122336
代碼: 選擇全部
###############################################################
## 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