phpwind8.7升级9.0.1过程(四)20130207升级到20141228

时间:2023-03-10 07:15:12
phpwind8.7升级9.0.1过程(四)20130207升级到20141228

每一次升级前都要注意备份

1.网站根目录的所有文件

2.网站的数据库

根据phpwind官方教程

更新到20130702版本成功并备份

更新到20140428版本成功并备份

20141228版本的更新需要将升级包覆盖之后并且将fix.php文件下载到网站根目录并且执行。

更新到20141228版本成功并且备份。Ps:20141228版本即phpwind9.0.1版本

准备更新到phpwind’9.0.1

更新到9.0.1之后发现的问题

问题:论坛右侧的快速登陆框点击登陆的时候出现Not exist view template file or Incorrect file path …………

问题原因:因为phpwind官方在1223版本补丁包修复了一个安全漏洞的同时将右侧的快速登陆窗口取消掉了,但是再老的模板文件中此项功能并没有去掉

解决办法:在自己的模板文件:\themes\site\自己的模板文件夹\template\common\sidebar_mod_my.htm中改变其中将快速登陆注释掉,并且在下方添加登录功能如下:

 <div class="box_wrap sidebar_login">
<!--
<form id="J_login_form" action="{@url:u/login/dologin}" method="post">
<dl>
<dt id="J_sidebar_login_dt" class="cc">
<i class="icon_username" title="请输入{$_loginWay}"></i><label for="J_username">用户名</label><input required type="text" class="input" id="J_username" name="username" placeholder="{$_loginWay}">
<i class="icon_password" title="请输入密码"></i><label for="J_password">密 码</label><input required type="password" class="input" id="J_password" name="password" placeholder="密码">
</dt>
<dd class="associate"><a class="sendpwd" rel="nofollow" href="{@url:u/findPwd/run}">找回密码</a><label for="head_checkbox" title="下次自动登录"><input type="checkbox" id="head_checkbox" name="rememberme" value="31536000">自动登录</label></dd>
<dd class="operate"><button type="submit" id="J_sidebar_login" class="btn btn_big btn_submit">登录</button><a class="btn btn_big btn_error" href="{@url:u/register/run}" rel="nofollow">立即注册</a></dd>
</dl>
</form>
-->
<dd class="operate"><button type="button" id="J_sidebar_login" class="btn btn_big btn_submit" onclick="location.href='{@url:u/login/run}'">登录</button><a class="btn btn_big btn_error" href="{@url:u/register/run}" rel="nofollow" onclick="location.href='{@url:u/register/run}'">立即注册</a></dd>
</div>

问题原因二:有时候问题原因也有可能因为后台没有更换模板导致

解决办法:在后台--模板--管理--本地安装--将模板安装之后切换到整站模板--应用到刚才的模板

问题:在按照phpwind官方的模板制作教程时打包成zip格式上传之后出现找不到路径的问题。

问题原因:压缩解压的时候路径错误

解决办法:直接将做好的模板文件放到/themes/portal/local/创建出来的模板文件夹,而不经过压缩解压的步骤

以下是碰到的一些细微的问题:

在做网站body部分的模板的时候,网站颜色不为纯白色经过修改C:\AppServ\www\themes\site\nextwind\css\dev\style.css中body的颜色完成白色的替换。

在改动头部文件的时候在C:\AppServ\www\template\common\head.htm文件中第二行改在浏览器中标签的样式

在C:\AppServ\www\template\common\footer.htm第18行左右修改底部的样式

改变头部背景:

在C:\AppServ\www\themes\site\nextwind\css\dev\style.css199行附近有整个头部的包裹导航,将整个文字段复制到C:\AppServ\www\themes\portal\local\special_4\css\style.css的60行左右,将其中的background哪一行替换为background:url(../images/bg.jpg);并且将bg.jpg复制到C:\AppServ\www\themes\portal\local\special_4\images、目录下面。

然后更新站点缓存

改变头部logo:

在后台设置中搜索logo,一般在模板管理--界面管理---设置站点logo---上传之后选择锁定。