最近在研究英文站,人气上来了顺便整个论坛玩玩,装的是 phpBB 3.0.5 + phpBB SEO 超级大插件,发现两个超级小 Bug ,特意记录一下。
Bug 1
描述: 安装 phpBB SEO 模块以后板块以及其他内页不显示样式和图片
原因:开启伪静态以后,论坛版块的链接是类似 http://www.nbavg.com/nba-2k10-patches-downloads-f5/ 这样的二级目录,而之前的样式和图片只是通用在一级目录(默认的两个主题都无错,第三方主题才有错误)
解决方法:修改模板的 overall_head.html ,在 《head》 之后加入 Base 元素,比如:
<base href=http://www.chinaz.com/Webbiz/Exp/” />
即可显示所有的图片和样式, HTML 代码的 Base 元素原理见此。
这个小Bug是绝大多数第三方主题没有考虑进去的,嗯哼,第三方主题下载来以后还得自行 SEO, 比如 overall_head.html 里的几个 Meta 标记都需要自己修改,汗一个,那么多作者怎么都不考虑或者参考默认自带的两个主题嘛。
Bug 2
描述:
论坛的PM(短消息)查看信息的时候出现如下错误信息:
[phpBB Debug] PHP Notice: in file /includes/functions_privmsgs.php on line 1818: implode() [function.implode]: Invalid arguments passed[phpBB Debug] PHP Notice: in file /includes/functions_privmsgs.php on line 1818: implode() [function.implode]: Invalid arguments passed
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3824: Cannot modify header information – headers already sent by (output started at /includes/functions.php:3247)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3826: Cannot modify header information – headers already sent by (output started at /includes/functions.php:3247)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3827: Cannot modify header information – headers already sent by (output started at /includes/functions.php:3247)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3828: Cannot modify header information – headers already sent by (output started at /includes/functions.php:3247)
