Manyou诚邀开发者加盟 | 常见问题
《站长》俱乐部官方群公布 城市联络员机会多多
立即免费下载 Discuz!7.0.0 正式版
安装升级指南 | 用户手册 | 新手建站学堂
基于.net架构的Discuz!NT2.6正式版发布
Comsenz公司2009年招贤纳士,期待您的加盟
Discuz!收费服务内容及价格
7月重庆、成都、西安三地社区运营实战特训速报名
Discuz!/UCHome 专用官方虚拟主机
牧场新服一起联运:豆浆机免费带回家
基于Discuz!的免费论坛空间5D6D
康盛创想《站长》俱乐部18城市互动之旅报名ing
返回列表 回复 发帖

[脱离奇虎]帖子关键字及相关主题功能 For Discuz!5.5.0

//===========================================================
//插件名称:[脱离奇虎]帖子关键字及相关主题功能 For Discuz!5.5.0

//适用版本:Discuz! 5.5.0
//插件编码:GBK
//作  者:魔焰男孩
//最后修改:ak477
//最后更新:2007-3-13

//页面演示:http://bbs.188o.com/bbs/viewthread.php?tid=14317&extra=page%3D1
//数据升级:有
//修改文件:viewthread.php , post.php , viewthread.htm
//修改模版:有

//修改难度:易
//  A   D:易酷资源网社区招收版主,详情http://bbs.188o.com/bbs/viewthread.php?tid=13652&extra=page%3D1
//===========================================================


1. 打开 系统设置 - 数据库 - 数据库升级, 输入以下内容并提交执行:
  1. DROP TABLE IF EXISTS cdb_similarthreads;
  2. CREATE TABLE cdb_similarthreads (
  3.   oritid mediumint(6) NOT NULL default '0',
  4.   aimtid mediumint(6) NOT NULL default '0'
  5. );
  6. ALTER TABLE cdb_threads ADD keywords varchar(255) NOT NULL default '';
复制代码
2. 打开 ./viewthread.php, 查找:

查找:
  1. include template($iscircle ? 'supesite_viewthread' : 'viewthread');
复制代码
在上面添加:
  1. include DISCUZ_ROOT.'./include/similarthreads.inc.php';
复制代码
3. 打开 ./post.php, 查找:
  1. } elseif($action == 'edit') {
复制代码
在下面添加:

  1. $db->query("UPDATE {$tablepre}threads SET keywords='' WHERE tid='$tid' AND fid='$fid'");
  2. $db->query("DELETE FROM {$tablepre}similarthreads WHERE oritid='$tid'");
复制代码
4. 打开模板文件 viewthread.htm

查找:
  1. <!--{if $post['number'] == 1 && $relatedkeywords}--><br><br><span class="bold">{lang thread_keywords}</span> $relatedkeywords<br><br><!--{/if}-->
复制代码
  1. <!--{if $post['number'] == 1 && $thread['keywords'] && $keywords && !$relatedkeywords}--><br><br><span class="bold">{lang thread_keywords}</span> $keywords<br><br><br><!--{/if}-->
复制代码
继续查找模板 viewthread.htm, 找到:
  1. <!--{if $relatedthreadlist && $qihoo_location}-->
复制代码
在上面添加:
  1. {template viewthread_similar}
复制代码
5. 下载附件并解压缩, 把里面的upload目录里的所有文件按照存放格式上传到论坛目录里面.

保存所有文件, 更新缓存, 安装完成.

[ 本帖最后由 ak477 于 2007-3-13 14:24 编辑 ]

188o.com.part1.rar (500 KB)

188o.com.part2.rar (500 KB)

188o.com.part3.rar (500 KB)

188o.com.part4.rar (271.88 KB)

。。。。观望。。
江山如画,美人如玉,月寒日暖煎人寿。我欲拂衣五湖,读诗中字,看枝上雪,问谁与共?
会导致速度慢吗
没成功   还升出了问题


帖子页面空白...........
执行这个就出问题了!!!!!!!

[ 本帖最后由 softweek 于 2007-3-16 13:33 编辑 ]
关注。。.........
出售狂人采集器,拍拍交易
http://auction1.paipai.com/1ED6060000000000001E3816046E8A03
关注。。.........
已安装好了~~`
关注。。.........
这个东西好。。。最讨厌QH了
凑虫网 | CouChong.Com
Www.CouChong.Com

QQ:8283294
楼主救命,,我执行到第二步时,查看不了贴子,覆盖原文件后正常显示,请问是怎么回事...
不正常显示为:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

-----------------------------------------------------------------------------
把  include DISCUZ_ROOT(改成我的数据库用户我).'./include/similarthreads.inc.php';
则会在贴子顶上显示以下内容..

Warning: main((改成我的数据库用户我)./include/similarthreads.inc.php): failed to open stream: No such file or directory in /www/users/pttv.net/forum/viewthread.php on line 449

Warning: main((改成我的数据库用户我)./include/similarthreads.inc.php): failed to open stream: No such file or directory in /www/users/pttv.net/forum/viewthread.php on line 449

Warning: main((改成我的数据库用户我)./include/similarthreads.inc.php): failed to open stream: No such file or directory in /www/users/pttv.net/forum/viewthread.php on line 449

Warning: main(): Failed opening '(改成我的数据库用户我)./include/similarthreads.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /www/users/pttv.net/forum/viewthread.php on line 449

请问是怎么回事.怎么处理
返回列表