整理了下我的修正步骤(同时实现留言板增加qq、帖子主题字段)
要改的文件存有:
eenewsgbookfun.php
etoolgbookindex.php
eadmintoolgbook.php
eadmintoolReGbook.php
edatatemplategbooktemp.txt
eclassfunctions.php
1、进入phpmyadmin后台,在数据库enewsgbook表(留言板数据表)中减少字段,
比如说: qq、theme,
2、打开eenewsgbookfun.php,
1、在13行左右的地方填入下面代码:
$theme=RepPostStr($add[theme]);//myadd $qq=RepPostStr($add[qq]);//myadd
2、在60行左右找出 $empire->query("insert into 的语句中的适当的边线加入相应的代码。
3、打开etoolgbookindex.php,
1、在51行左右找出“$query="select …”查询语句中适度边线加入字段,如:,theme,qq
2、在135行左右找出“发布者: <?=$r[name]?>……”, 在要显示字段的地方加入<?=$r[theme]?> ,<?=$r[qq]?> 调用显示就行了。
3、在170行左右找到“