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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[发布] 『经典四格』最新版 | 图片,最新主题,回复,热门,精华 (各种样式)[8.9更新]

[复制链接]
rightjun 发表于 2007-8-1 06:53:11 | 显示全部楼层
老大,图片不能显示啊,为什么啊,怎么解决啊,帮帮忙!
问题集里说是空间商的问题,这不可能,因为我以前用过这个插件,曾经正常运行过。

[ 本帖最后由 rightjun 于 2007-8-1 06:55 编辑 ]
回复

使用道具 举报

 楼主| 河科人 发表于 2007-8-1 07:49:38 | 显示全部楼层

回复 #101 rightjun 的帖子

找 版主: TaRot!  
他毕竟是官方的人
回复

使用道具 举报

tanang 发表于 2007-8-1 08:03:51 | 显示全部楼层
刚开的单车论坛,大家有空来踩踩哦!
http://www.njrbike.com.cn/bbs
回复

使用道具 举报

javascrif 发表于 2007-8-1 08:38:35 | 显示全部楼层
支持
回复

使用道具 举报

zhouc 发表于 2007-8-1 10:27:28 | 显示全部楼层
刚才看了一下LZ的东西,其实所谓升级数据库主要是后台控制问题.
如果你不想升级数据库,可以用我的toplist.php

  1. <?php

  2. /*
  3.         [Discuz!] (C)2001-2006 Comsenz Inc.
  4.         This is NOT a freeware, use is subject to license terms

  5.         $RCSfile: index.php,v $
  6.         $Revision: 1.23.2.3 $
  7.         $Date: 2006/09/26 08:27:30 $
  8. */

  9. $colorarray = array('', 'red', 'orange', 'yellow', 'green', 'cyan', 'blue', 'purple', 'gray');
  10. //新贴//
  11. $hack_cut_str = 28; //修改标题显示字数
  12. $hack_cut_strauthor = 9;
  13. $new_post_threadlist = array();
  14. $nthread = array();
  15. $query = $db->query("SELECT t.*, f.name FROM {$tablepre}threads t, {$tablepre}forums f WHERE t.fid<>'$fid' AND f.fid=t.fid AND t.displayorder>=0 ORDER BY t.dateline DESC LIMIT 0, 10");
  16. while($nthread = $db->fetch_array($query)) {
  17.         $nthread['forumname'] = $nthread['name'];
  18.         $nthread['view_subject'] = cutstr($nthread['subject'],$hack_cut_str);
  19.         $nthread['view_author'] = cutstr($nthread['author'],$hack_cut_strauthor);
  20.         $nthread['date']= gmdate("$dateformat $timeformat", $nthread['dateline'] + $timeoffset * 3600);
  21.         $nthread['lastreplytime']= gmdate("$dateformat $timeformat", $nthread[lastpost] + ($timeoffset * 3600));
  22.         if($nthread['highlight']) {
  23.                 $string = sprintf('%02d', $nthread['highlight']);
  24.                 $stylestr = sprintf('%03b', $string[0]);
  25.                 $nthread['highlight'] = 'style="';
  26.                 $nthread['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : '';
  27.                 $nthread['highlight'] .= $stylestr[1] ? 'font-style: italic;' : '';
  28.                 $nthread['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : '';
  29.                 $nthread['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : '';
  30.                 $nthread['highlight'] .= '"';
  31.         } else {
  32.                 $nthread['highlight'] = '';
  33.         }
  34.         $new_post_threadlist[] = $nthread;
  35. }
  36. //新贴//
  37. //新回覆
  38. $hack_cut_str = 28; //修改标题显示字数
  39. $hack_cut_strauthor = 9;
  40. $new_reply_threadlist = array();
  41. $rthread = array();
  42. $query = $db->query("SELECT t.*, f.name FROM {$tablepre}threads t, {$tablepre}forums f WHERE t.fid<>'$fid' AND f.fid=t.fid AND t.closed NOT LIKE 'moved|%' AND t.replies !=0 AND t.displayorder>=0 ORDER BY t.lastpost DESC LIMIT 0, 10");
  43. while($rthread = $db->fetch_array($query)) {
  44.         $rthread['forumname'] = $rthread['name'];
  45.         $rthread['view_subject'] = cutstr($rthread['subject'],$hack_cut_str);
  46.         $rthread['view_lastposter'] = cutstr($rthread['lastposter'],$hack_cut_strauthor);
  47. $rthread['date']= gmdate("$dateformat $timeformat", $rthread['dateline'] + $timeoffset * 3600);
  48.         $rthread['lastreplytime']= gmdate("$dateformat $timeformat", $rthread[lastpost] + ($timeoffset * 3600));
  49.         if($rthread['highlight']) {
  50.                 $string = sprintf('%02d', $rthread['highlight']);
  51.                 $stylestr = sprintf('%03b', $string[0]);
  52.                 $rthread['highlight'] = 'style="';
  53.                 $rthread['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : '';
  54.                 $rthread['highlight'] .= $stylestr[1] ? 'font-style: italic;' : '';
  55.                 $rthread['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : '';
  56.                 $rthread['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : '';
  57.                 $rthread['highlight'] .= '"';
  58.         } else {
  59.                 $rthread['highlight'] = '';
  60.         }
  61.         $new_reply_threadlist[] = $rthread;
  62. }
  63. //回覆//
  64. //热帖
  65. $hack_cut_str = 28; //修改标题显示字数
  66. $hack_cut_strauthor = 9;
  67. //指定热帖时间
  68. $sort_time = 60*60*24*30; //最后一位数代表x天内
  69. $new_hot_threadlist = array();
  70. $mthread = array();
  71. $query = $db->query("SELECT t.*, f.name FROM {$tablepre}threads t, {$tablepre}forums f WHERE t.fid<>'$fid' AND f.fid=t.fid AND t.closed NOT LIKE 'moved|%' AND t.replies !=0 AND '$timestamp'-t.dateline < $sort_time AND t.displayorder>=0 ORDER BY t.views DESC LIMIT 0, 10");
  72. while($mthread = $db->fetch_array($query)) {
  73.         $mthread['forumname'] = $mthread['name'];
  74.         $mthread['view_subject'] = cutstr($mthread['subject'],$hack_cut_str);
  75.         $mthread['view_lastposter'] = cutstr($mthread['lastposter'],$hack_cut_strauthor);
  76. $mthread['date']= gmdate("$dateformat $timeformat", $mthread['dateline'] + $timeoffset * 3600);
  77.         $mthread['lastreplytime']= gmdate("$dateformat $timeformat", $mthread[lastpost] + ($timeoffset * 3600));
  78.         if($mthread['highlight']) {
  79.                 $string = sprintf('%02d', $mthread['highlight']);
  80.                 $stylestr = sprintf('%03b', $string[0]);
  81.                 $mthread['highlight'] = 'style="';
  82.                 $mthread['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : '';
  83.                 $mthread['highlight'] .= $stylestr[1] ? 'font-style: italic;' : '';
  84.                 $mthread['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : '';
  85.                 $mthread['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : '';
  86.                 $mthread['highlight'] .= '"';
  87.         } else {
  88.                 $mthread['highlight'] = '';
  89.         }
  90.         $new_hot_threadlist[] = $mthread;
  91. }
  92. //热帖//
  93. ?>
复制代码


删除了hidden fid查询
回复

使用道具 举报

yenan 发表于 2007-8-1 11:06:00 | 显示全部楼层
User: 阿楠
Time: 2007-8-1 11:00am
Script: /index.php

SQL: SELECT t.*, f.name FROM [Table]threads t, [Table]forums f WHERE t.fid<>'0' AND f.fid=t.fid AND f.fid NOT IN () AND t.displayorder>=0 ORDER BY t.dateline DESC LIMIT 0, 10
Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND t.displayorder>=0 ORDER BY t.dateline DESC LIMIT 0, 10' at
Errno.: 1064

Similar error report has beed dispatched to administrator before



我的地址http://www.yenan.net/index1.php    求救啊

是不是这个的原故啊  这个我怎么弄啊怎么升级啊?
★安装 数据库升级


INSERT INTO `cdb_settings` VALUES ('Hiddenfid', '0');
INSERT INTO `cdb_settings` VALUES ('show_toplist', '1');

=======================================================================
★卸载 数据库升级

DELETE FROM `cdb_settings` WHERE `variable` = 'Hiddenfid' ;

DELETE FROM `cdb_settings` WHERE `variable`= 'show_toplist' ;

[ 本帖最后由 yenan 于 2007-8-1 11:21 编辑 ]
回复

使用道具 举报

yellowleg 发表于 2007-8-1 13:01:29 | 显示全部楼层
原帖由 zhouc 于 2007-8-1 10:27 发表
刚才看了一下LZ的东西,其实所谓升级数据库主要是后台控制问题.
如果你不想升级数据库,可以用我的toplist.php



toplist替换了,还是不行
回复

使用道具 举报

疯婆娘 发表于 2007-8-1 16:50:19 | 显示全部楼层
原帖由 河科人 于 2007-7-30 19:34 发表
我加上边框了
可是我觉得不如不加边框的好
你们看看
要得话我就传上去



谢谢..不过.能不能加像这个这样...http://www.sssz.cn
回复

使用道具 举报

9944 发表于 2007-8-1 16:52:09 | 显示全部楼层
原帖由 yellowleg 于 2007-8-1 04:15 发表
Discuz! info: MySQL Query Error

User: yellowleg
Time: 2007-8-1 4:13am
Script: /index.php

SQL: SELECT t.*, f.name FROM threads t, forums f WHERE t.fid'0' AND f.fid=t.fid AND f.fid NOT IN ( ...


这个问题解决很简单,
1, 先用官方的INDEX.PHP 替换楼主提供的index.php,
2,然后登陆后台, 升级楼主提供的两行SQL语句,
3,然后再用楼主附件里的INDX.PHP覆盖官方的index.php,
4,更新缓存。
5,OK,  

有空到偶小站踩踩:)
回复

使用道具 举报

hughusopp 发表于 2007-8-1 19:32:51 | 显示全部楼层
楼主,我想问一下,如果不调用论坛图片,想要显示自己预设的几张图,该怎么改
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-9-22 21:29 , Processed in 0.149733 second(s), 15 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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