论坛程序phpBB升级至2.0.17版

Discussion in 'Suggestions and Feedback' started by hylt, Aug 20, 2005.

  1. 从phpBB2.0.15+AttachMod2.3.13到phpBB2.0.17+AttachMod2.3.14升级全程实录

    说明:原来除了Attach Mod外未装任何Mod。风格使用subSilver,略有修改,如行间距、版块描述等。

    1、备份:(1)从FTP把phpBB所有文件(包括附件)下载到硬盘,130M,花了N*10分钟。(2)从www.phpmyadmin.net下载最新版上传安装。(3)用phpmyadmin将phpBB所有表导出备份到硬盘,28M。

    2、删除旧版phpBB所有文件,只保留两个:(1)附件,即files目录;(2)config.php。顺便发现files/thumbs里面没有索引文件,便将files里的index.php复制了一份过去。

    3、上传phpBB2.0.17原版文件,除了docs目录和config.php。将language/lang_english/lang_main.php文件中的iso-8859-1改为gb2312。

    4、上传phpBB2.0.17简体中文语言包和图片。

    5、清空cookies和历史记录,关闭IE,再打开。

    6、执行:http://www.domain.com/phpBB/install/update_to_latest.php,成功后删除install和contrib目录,登录后台查看一下,没问题。

    7、上传Attach Mod 2.3.14原版root下所有文件,除了files目录,以及language\lang_german目录。

    8、上传Attach Mod 2.3.14简体中文语言包。

    9、执行:http://www.domain.com/phpBB/install/attach_update_23x_to_latest.php,成功:Finished... now DELETE THIS FILE. 删除install目录。

    10、上传premodified_files_phpbb2017,Overwrite All。

    11、修改个人资料。

    12、登录后台逐项检查设置,花了10分钟。

    13、安装小Mods:
    ----------------------------------------------------------------------------------
    打开memberlist.php
    找到
    $sort_order = 'ASC';
    改为
    $sort_order = 'DESC';
    ----------------------------------------------------------------------------------
    打开templates/subSilver/index_body.tpl
    找到
    </span> <span class="genmed">{catrow.forumrow.FORUM_DESC}

    删之

    在这一行的上面增加友情链接的代码表格
    ----------------------------------------------------------------------------------
    打开templates/subSilver/overall_header.tpl
    找到
    /* The largest text used in the index page title and toptic title etc. */
    .maintitle {
    font-weight: bold; font-size: 22px; font-family: "{T_FONTFACE2}",{T_FONTFACE1};
    text-decoration: none; line-height : 120%; color : {T_BODY_TEXT};
    }
    其中22改为16,{T_BODY_TEXT}改为#FFFFFF

    找到
    /* The content of the posts (body of text) */
    .postbody { font-size : {T_FONTSIZE3}px; line-height: 18px}
    a.postlink:link { text-decoration: none; color : {T_BODY_LINK} }
    a.postlink:visited { text-decoration: none; color : {T_BODY_VLINK}; }
    a.postlink:hover { text-decoration: underline; color : {T_BODY_HLINK}}
    其中18px改为180%

    删除最后一行的

    ----------------------------------------------------------------------------------
    打开templates/subSilver/index_body.tpl和login_body.tpl
    分别修改
    <input class="text" type="checkbox" name="autologin" checked />
    <input type="checkbox" name="autologin" checked />
    ----------------------------------------------------------------------------------
    打开
    templates/subSilver/viewforum_body.tpl
    找到
    <span class="gensmall">
    {topicrow.GOTO_PAGE}</span>
    删除其中的

    ----------------------------------------------------------------------------------
    打开
    templates/subSilver/search_results_topics.tpl
    找到

    <span class="gensmall">{searchresults.GOTO_PAGE}</span>
    删除前面的

    ----------------------------------------------------------------------------------
    打开templates/subSilver/viewtopic_body.tpl
    找到
    <span class="gensmall">{PAGINATION}

    删除其中的


    增加第一行


    找到
    <td colspan="2"><span class="postbody">{postrow.MESSAGE}</span>{postrow.ATTACHMENTS}
    后面增加


    ----------------------------------------------------------------------------------
    修改风格:
    Visited Link Colour: 5493B4
    改为006699
    ----------------------------------------------------------------------------------

    14、替换logo_phpBB.gif

    15、添加备案信息,即在language/lang_chinese_simplified/lang_main.php中加一行
    $lang['TRANSLATION_INFO'] = '粤ICP备05017707号';

    16、用phpmyadmin检查、优化、修复表。

    相关:
    http://www.cnphpbb.com/forum/viewtopic.php?t=7072