WIND风格(官方默认)中的readtpl.htm
用记事本打开文件
1、把当前风格header.htm中的
<!--css--><style type='text/css'>
..........................
.......................
.......................
</style><!--css-->
复制替换掉readtpl.htm中的该部分
2、readtpl.htm中的
<table cellspacing=0 cellpadding=0 width='$tablewidth' align='center'>
<tr><td><table cellspacing=0 cellpadding=0 width=100%>
<tr valign='bottom'><td align='left' class=banner>
<a href='$path/$db_bfn'><img src='$imgpath/$stylepath/logo.gif'></a></td>
<td align='right' class=banner></td></tr>
<tr><td align='center' height=1 bgcolor=#ffffff colspan=2></td></tr>
<tr><td align='center' class=cbg colspan=2 height=26>
<a href='$path/profile.php'>控制面板</a>
| <a href='$path/message.php'>短消息</a>
| <a href='$path/search.php'>搜索</a>
| <a href='$path/member.php'>会员</a>
| <a href='$path/faq.php'>帮助</a>
| <a href='$path/$db_bfn'>社区</a>
| <a href='$db_wwwurl/$db_cfn'>首页</a>
</td></tr>
</table></td></tr></table>
(也就是HEAD部分)
根据情况更改......(也可以把当前风格的header.htm相同部分替换)
3、readtpl.htm中的
<center><small><font color="#999999">Powered by <a href="http://www.phpwind.net/" style="color: #000000" target="_blank"><b>PHPWind</b> <b style="color:#FF9900">v$wind_version</b></a> Code © 2003-05 <a href="http://www.phpwind.net/" target="_blank"><b>PHPWind</b></a> <br>
This is html template view this page faster<br><br>You can <a href=$db_ceoconnect>contact us</a></font></small></center>
(也就是FOOT部分)
同样根据当前风格更改.......(也可以把当前风格的footer.htm替换)
4、修改完保存 上传到改风格模板下
-------------------------------------
另外还有一些READ部分的细节问题(情况不同) 参考当前风格的read.htm自己慢慢琢磨吧
另外注意FOOT图片的路径问题!!!!最好改成绝对路径!!
不同风格具体对待 本教材包括了大部分的风格修改方法.....
还有不懂的 去论坛发帖子或者给我留言吧..........
附:
关于footer.htm不能使用风格路径变量作为图片路径的bug及解决
============================================
打开global.php,查找下面红色部分代码:
function footer(){
global $db,$db_obstart,$db_footertime,$P_S_T,$mtablewidth,$footbg,$db_ceoconnect,$wind_version,$imgpath;
替换成:
function footer(){
global $db,$db_obstart,$db_footertime,$P_S_T,$mtablewidth,$footbg,$db_ceoconnect,$wind_version,$imgpath,$stylepath;
也就是在该行最后分号前面加 ,$stylepath

RSS订阅