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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

首页n格的问题整理与解决[最后更新:2007.11.05 JS调用附件]

[复制链接]
yy_13572468 发表于 2008-1-7 02:24:43 | 显示全部楼层
弄不好
回复

使用道具 举报

paidebao 发表于 2008-1-8 10:13:10 | 显示全部楼层

我装了一个四格的,可是不怎么美观

是一个化妆品论坛,http://www.paidebao.com/
装的是这里的, 下载3.9万次的首页四格,首页五格For6.0(GBK,UTF-8)[16种组合11-30][版主安装测试通过]:https://discuz.dismall.com/thread-696558-1-1.html中的
首页四格(图片+新帖+新回复+热门)UTF-8.rar

就是文字显示时,有点不大美观,背景不大好,你们一看就明白了

www.paidebao.com
回复

使用道具 举报

方舟79 发表于 2008-1-9 15:31:11 | 显示全部楼层
请问如何显示更多的帖子呢?默认值显示前10个。我想显示20个怎么办呢?
回复

使用道具 举报

孟菲斯 发表于 2008-1-10 13:40:11 | 显示全部楼层
我按照这位https://discuz.dismall.com/viewth ... E%D0%C2%CC%FB%D7%D3
所提供的方法安装,
结果出现了N个5格,且调用全出现“Referer restriction is taking effect. ”
论坛地址:http://bbs.soidc.net/

习明老大,如何解决呀~~~~急
回复

使用道具 举报

习明 发表于 2008-1-10 13:54:28 | 显示全部楼层

回复 686# 孟菲斯 的帖子

Referer restriction is taking effect  这个错误因为论坛设置了JS 来路限制,您的地址不是论坛允许的地址或者使用了代理服务器解决方法:系统设置  基本设置  Discuz!选项  JS调用  JS 来路限制   添加相应的地址
回复

使用道具 举报

aliucn 发表于 2008-1-11 10:25:25 | 显示全部楼层

出现Referer restriction is taking effect.是什么原因呢

出现Referer restriction is taking effect.是什么原因呢?
回复

使用道具 举报

aliucn 发表于 2008-1-11 10:32:21 | 显示全部楼层
III. js调用的论坛设置时出现:
Referer restriction is taking effect 不能调用是杂回事呢 谢谢
回复

使用道具 举报

aliucn 发表于 2008-1-11 10:33:16 | 显示全部楼层
谢谢啦!非常感谢
回复

使用道具 举报

lovehulei 发表于 2008-1-11 11:14:34 | 显示全部楼层
那个 AND t.displayorder>=0 加那里
  1. <?php
  2. /*
  3. 原作: 不详
  4. 编辑: www.mycoldnet.com
  5. */

  6. //---设置---start
  7. require_once('./include/xianyuan_geyan.php');

  8. $colorarray = array('', 'red', 'orange', 'yellow', 'green', 'cyan', 'blue', 'purple', 'gray');
  9. // new topic
  10. $hack_cut_str = 24;
  11. $hack_cut_strauthor = 9;
  12. $new_post_threadlist = array();
  13. $nthread = array();
  14. $query = $db->query("SELECT t.*, f.name FROM {$tablepre}threads t, {$tablepre}forums f WHERE t.fid<>'$fid' AND f.fid=t.fid ORDER BY t.dateline DESC LIMIT 0, 10");
  15. while($nthread = $db->fetch_array($query)) {
  16.         $nthread['forumname'] = $nthread['name'];
  17.         $nthread['view_subject'] = cutstr($nthread['subject'],$hack_cut_str);
  18.         $nthread['view_author'] = cutstr($nthread['author'],$hack_cut_strauthor);
  19.         $nthread['date']= gmdate("$dateformat $timeformat", $nthread['dateline'] + $timeoffset * 3600);
  20.         $nthread['lastreplytime']= gmdate("$dateformat $timeformat", $nthread[lastpost] + ($timeoffset * 3600));
  21.         if($nthread['highlight']) {
  22.                 $string = sprintf('%02d', $nthread['highlight']);
  23.                 $stylestr = sprintf('%03b', $string[0]);
  24.                 $nthread['highlight'] = 'style="';
  25.                 $nthread['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : '';
  26.                 $nthread['highlight'] .= $stylestr[1] ? 'font-style: italic;' : '';
  27.                 $nthread['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : '';
  28.                 $nthread['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : '';
  29.                 $nthread['highlight'] .= '"';
  30.         } else {
  31.                 $nthread['highlight'] = '';
  32.         }
  33.         $new_post_threadlist[] = $nthread;
  34. }

  35. // new reply
  36. $hack_cut_str = 24;
  37. $hack_cut_strauthor = 9;
  38. $new_reply_threadlist = array();
  39. $rthread = array();
  40. $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 ORDER BY t.lastpost DESC LIMIT 0, 10");
  41. while($rthread = $db->fetch_array($query)) {
  42.         $rthread['forumname'] = $rthread['name'];
  43.         $rthread['view_subject'] = cutstr($rthread['subject'],$hack_cut_str);
  44.         $rthread['view_lastposter'] = cutstr($rthread['lastposter'],$hack_cut_strauthor);
  45.         $rthread['date']= gmdate("$dateformat $timeformat", $rthread['dateline'] + $timeoffset * 3600);
  46.         $rthread['lastreplytime']= gmdate("$dateformat $timeformat", $rthread[lastpost] + ($timeoffset * 3600));
  47.         if($rthread['highlight']) {
  48.                 $string = sprintf('%02d', $rthread['highlight']);
  49.                 $stylestr = sprintf('%03b', $string[0]);
  50.                 $rthread['highlight'] = 'style="';
  51.                 $rthread['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : '';
  52.                 $rthread['highlight'] .= $stylestr[1] ? 'font-style: italic;' : '';
  53.                 $rthread['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : '';
  54.                 $rthread['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : '';
  55.                 $rthread['highlight'] .= '"';
  56.         } else {
  57.                 $rthread['highlight'] = '';
  58.         }
  59.         $new_reply_threadlist[] = $rthread;
  60. }

  61. // hot topic
  62. $hack_cut_str = 24;
  63. $hack_cut_strauthor = 9;
  64. $new_hot_threadlist = array();
  65. $mthread = array();
  66. $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 ORDER BY t.views DESC LIMIT 0, 10");
  67. while($mthread = $db->fetch_array($query)) {
  68.         $mthread['forumname'] = $mthread['name'];
  69.         $mthread['view_subject'] = cutstr($mthread['subject'],$hack_cut_str);
  70.         $mthread['view_lastposter'] = cutstr($mthread['lastposter'],$hack_cut_strauthor);
  71.                 $mthread['date']= gmdate("$dateformat $timeformat", $mthread['dateline'] + $timeoffset * 3600);
  72.         $mthread['lastreplytime']= gmdate("$dateformat $timeformat", $mthread[lastpost] + ($timeoffset * 3600));
  73.         if($mthread['highlight']) {
  74.                 $string = sprintf('%02d', $mthread['highlight']);
  75.                 $stylestr = sprintf('%03b', $string[0]);
  76.                 $mthread['highlight'] = 'style="';
  77.                 $mthread['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : '';
  78.                 $mthread['highlight'] .= $stylestr[1] ? 'font-style: italic;' : '';
  79.                 $mthread['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : '';
  80.                 $mthread['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : '';
  81.                 $mthread['highlight'] .= '"';
  82.         } else {
  83.                 $mthread['highlight'] = '';
  84.         }
  85.         $new_hot_threadlist[] = $mthread;
  86. }
  87. ?>
复制代码
回复

使用道具 举报

习明 发表于 2008-1-11 11:39:24 | 显示全部楼层

回复 691# lovehulei 的帖子

参考首帖第三段引用内容
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-9-22 16:48 , Processed in 0.141416 second(s), 15 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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