找回密碼
 註冊
搜索
查看: 7164|回復: 0

phpBB 增加主題字數長度

[複製鏈接]
發表於 2007-10-11 10:32:05 | 顯示全部樓層 |閱讀模式
  1. ##############################################################
  2. ## MOD Title: Long Subject (120 letters)
  3. ## MOD Author: Ralendil < [email]ralendil@hotmail.com[/email] > Ravaille Franck - [url]http://civs.org[/url]
  4. ## MOD Description: Put to 120 subject limit.
  5. ##
  6. ## MOD Version: 1.0.0
  7. ##
  8. ## Installation Level: Easy
  9. ## Installation Time: 1 minute
  10. ## Files to Edit: templates/subSilver/posting_body.tpl
  11. ## Included Files: N/A
  12. ##############################################################
  13. ## For Security Purposes, Please Check: [url]http://www.phpbb.com/mods/downloads/[/url] for the
  14. ## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
  15. ## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
  16. ## in our MOD-Database, located at: [url]http://www.phpbb.com/mods/downloads/[/url]
  17. ##############################################################
  18. ## Author Notes:
  19. ##
  20. ##############################################################
  21. ## MOD History:
  22. ## 1.0.0 Release
  23. ##############################################################
  24. ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
  25. ##############################################################

  26. #
  27. #-----[ SQL ]------------------------------------------
  28. #
  29. ALTER TABLE `phpbb_topics` CHANGE `topic_title` `topic_title` CHAR(120) NOT NULL


  30. #
  31. #-----[ SQL ]------------------------------------------
  32. #
  33. ALTER TABLE `phpbb_posts_text` CHANGE `post_subject` `post_subject` VARCHAR(120) DEFAULT NULL

  34. #
  35. #-----[ OPEN ]------------------------------------------
  36. #
  37. templates/subSilver/posting_body.tpl

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

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

  46. #
  47. #-----[ SAVE/CLOSE ALL FILES ]----------------------------------------

  48. #
  49. # EoM
複製代碼
Reference: http://phpbb-tw.net/phpbb/viewtopic.php?p=122336#122336
您需要登錄後才可以回帖 登錄 | 註冊

本版積分規則

Archiver|手機版|彩色筆小沛的知識庫

GMT+8, 2024-12-22 09:43 , Processed in 0.018912 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回復 返回頂部 返回列表