Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

论坛页出现越位,纵横搜索索引正常但是不跳转

[复制链接]
灰太羊先生 发表于 2012-4-12 12:38:36 | 显示全部楼层 |阅读模式
亲们,我从X2升级到X2.5以后出现了一些问题,不知道大家可有:
1.论坛页搜索框跑出来了,我并未对官方文件进行过任何修改,全新覆盖升级,但是换成默认模板论坛页面的搜索框就会越位,其他页面如版块页,帖子列表页都不会,仅仅是首页会(小清新模板也会)。
  请问一下该样式有什么文件控制,大家可知道可能是什么问题。

2.纵横搜索失效(任何模板下),索引正常,通过域名访问也正常,就是搜索的时候不会跳转,而是进入官方默认搜索页面,这个问题看到好多人都出现了,说是数据库的问题,也留了一下解决方法,无奈我们都是数据库盲,求官方提供一个简单一点,直白一点的修复办法。

谢谢诸位!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
江海博客网 发表于 2012-4-12 12:41:56 | 显示全部楼层
后台,关闭纵横搜索,然后再打开,问题解决。
回复

使用道具 举报

 楼主| 灰太羊先生 发表于 2012-4-12 12:45:12 | 显示全部楼层
江海博客网 发表于 2012-4-12 12:41
后台,关闭纵横搜索,然后再打开,问题解决。

不行啊,我关闭打开同步站点信息重新升级什么都用过了!
回复

使用道具 举报

m.king 发表于 2012-4-12 12:45:23 | 显示全部楼层
该问题我们已经关注,感谢您的反馈。
回复

使用道具 举报

 楼主| 灰太羊先生 发表于 2012-4-12 12:47:02 | 显示全部楼层
m.king 发表于 2012-4-12 12:45
该问题我们已经关注,感谢您的反馈。

嗯,非常感谢官方
回复

使用道具 举报

m.king 发表于 2012-4-12 12:47:17 | 显示全部楼层
你这个错位是你模板问题呢  你自己调整一下 css呗。
回复

使用道具 举报

m.king 发表于 2012-4-12 12:48:20 | 显示全部楼层
索引问题 你把你的站点的权限 创始人 + FTP 短消息发给我,我帮你看看。
回复

使用道具 举报

 楼主| 灰太羊先生 发表于 2012-4-12 12:57:34 | 显示全部楼层
m.king 发表于 2012-4-12 12:47
你这个错位是你模板问题呢  你自己调整一下 css呗。

可是,我用的是官方模板哦……我没有修改过,都是直接覆盖的!
回复

使用道具 举报

otherbank 发表于 2012-4-12 15:14:02 | 显示全部楼层
灰太羊先生 发表于 2012-4-12 12:57
可是,我用的是官方模板哦……我没有修改过,都是直接覆盖的!

看你的截图是有修改模版的,可以把你添加的代码(比如导航下面的代码),检查一下,有没有多或少div;
关于纵横搜索已跳转
回复

使用道具 举报

 楼主| 灰太羊先生 发表于 2012-4-12 15:51:08 | 显示全部楼层
otherbank 发表于 2012-4-12 15:14
看你的截图是有修改模版的,可以把你添加的代码(比如导航下面的代码),检查一下,有没有多或少div;
关 ...

嗯,非常谢谢,但是我有一个guide.php的文件,运行tiaozhuang.php后不行了,麻烦您在帮我看一下,以下是他的代码:
  1. <?php
  2. define('APPTYPEID', 2);
  3. define('CURSCRIPT', 'guide');


  4. require './source/class/class_core.php';
  5. $discuz = & discuz_core::instance();
  6. $discuz->init();

  7. runhooks();

  8. $newthread_list = $newthread_lists = $newreply_list = $newreply_lists = array();
  9. $forum_colorarray = array('','#EE1B2E','#EE5023','#996600','#3C9D40','#2897C5','#2B65B7','#8F2A90','#EC1282');
  10. $newthread_query = DB::query("SELECT tid, fid, typeid, sortid, special, author, authorid, subject, highlight, dateline FROM ".DB::table('forum_thread')." WHERE displayorder >= 0 ORDER BY dateline DESC LIMIT 20");
  11. while($newthread_list = DB::fetch($newthread_query)){
  12.         if($newthread_list['highlight']) {
  13.                 $thread_string = sprintf('%02d', $newthread_list['highlight']);
  14.                 $thread_stylestr = sprintf('%03b', $thread_string[0]);

  15.                 $newthread_list['highlight'] = ' style="';
  16.                 $newthread_list['highlight'] .= $thread_stylestr[0] ? 'font-weight: bold;' : '';
  17.                 $newthread_list['highlight'] .= $thread_stylestr[1] ? 'font-style: italic;' : '';
  18.                 $newthread_list['highlight'] .= $thread_stylestr[2] ? 'text-decoration: underline;' : '';
  19.                 $newthread_list['highlight'] .= $thread_string[1] ? 'color: '.$forum_colorarray[$thread_string[1]] : '';
  20.                 $newthread_list['highlight'] .= '"';
  21.         } else {
  22.                 $newthread_list['highlight'] = '';
  23.         }
  24.        
  25.         if($newthread_list['typeid']){
  26.                 $threadtype = DB::result_first("SELECT threadtypes FROM ".DB::table('forum_forumfield')." WHERE fid = $newthread_list[fid]");
  27.                 $threadtype = unserialize($threadtype);
  28.                 $newthread_list['typename'] = $threadtype['types'][$newthread_list['typeid']];
  29.         }
  30.         /*
  31.         if($newthread_list['sortid']){
  32.                 $threadsort = DB::result_first("SELECT threadsorts FROM ".DB::table('forum_forumfield')." WHERE fid = $newthread_list[fid]");
  33.                 $threadsort = unserialize($threadsort);
  34.                 $newthread_list['sortname'] = $threadsort['types'][$newthread_list['sortid']];
  35.         }
  36.         */
  37.         $newthread_list['dateline'] = dgmdate($newthread_list['dateline'], 'u');
  38.         $newthread_lists[] = $newthread_list;
  39. }



  40. $newreply_query = DB::query("SELECT tid, fid, typeid, sortid, special, subject, lastposter, highlight, lastpost FROM ".DB::table('forum_thread')." WHERE displayorder >= 0 ORDER BY lastpost DESC LIMIT 20");
  41. while($newreply_list = DB::fetch($newreply_query)){
  42.         if($newreply_list['highlight']) {
  43.                 $string = sprintf('%02d', $newreply_list['highlight']);
  44.                 $stylestr = sprintf('%03b', $string[0]);

  45.                 $newreply_list['highlight'] = ' style="';
  46.                 $newreply_list['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : '';
  47.                 $newreply_list['highlight'] .= $stylestr[1] ? 'font-style: italic;' : '';
  48.                 $newreply_list['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : '';
  49.                 $newreply_list['highlight'] .= $string[1] ? 'color: '.$forum_colorarray[$string[1]] : '';
  50.                 $newreply_list['highlight'] .= '"';
  51.         } else {
  52.                 $newreply_list['highlight'] = '';
  53.         }
  54.        
  55.         if($newreply_list['typeid']){
  56.                 $threadtype = DB::result_first("SELECT threadtypes FROM ".DB::table('forum_forumfield')." WHERE fid = $newreply_list[fid]");
  57.                 $threadtype = unserialize($threadtype);
  58.                 $newreply_list['typename'] = $threadtype['types'][$newreply_list['typeid']];
  59.         }
  60.         /*
  61.         if($newreply_list['sortid']){
  62.                 $threadsort = DB::result_first("SELECT threadsorts FROM ".DB::table('forum_forumfield')." WHERE fid = $newreply_list[fid]");
  63.                 $threadsort = unserialize($threadsort);
  64.                 $newreply_list['sortname'] = $threadsort['types'][$newreply_list['sortid']];
  65.         }
  66.         */
  67.         $newreply_list['lastpost'] = dgmdate($newreply_list['lastpost'], 'u');
  68.         $newreply_lists[] = $newreply_list;
  69. }
  70. include template('forum/guide');
  71. ?>
复制代码
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-5-17 14:07 , Processed in 0.121463 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表