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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

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

[复制链接]
天门教育 发表于 2007-7-27 06:23:25 | 显示全部楼层
为什么升级到724版本后,首页的四格不能正常显示了.请问是什么原因bbs.tmhqw.com
回复

使用道具 举报

 楼主| TaRot! 发表于 2007-7-27 09:31:32 | 显示全部楼层

回复 #248 wz98 的帖子

首页n格应该不到附件的上传.0724的更新如果是覆盖的话,只是把index.php覆盖了,这是一个影响首页n格的文件,可以对照原贴进行修改.
回复

使用道具 举报

lx3leon 发表于 2007-7-27 11:50:58 | 显示全部楼层
我装的是首页3格CACHE版,这里的:
https://discuz.dismall.com/thread-573285-1-1.html
0724更新前还一切正常,更新后,我又按照帖子里的步骤从新改了一遍,FLASH和最新主题都显示正常了,可是最新回复不自动更新了,每次在后台更新缓存,它才会跟着更新一次。请问是什么原因?

此问题已经暂时解决
用的是此贴方法:https://discuz.dismall.com/thread-690455-1-1.html

[ 本帖最后由 lx3leon 于 2007-7-27 13:21 编辑 ]
回复

使用道具 举报

lx3leon 发表于 2007-7-27 11:56:13 | 显示全部楼层
还有个问题,首页N格的FLASH,如何能够实现这个网站的效果:http://www.52pcgame.com/

就是打开首页,FLASH自动启用,而不用再点击。

我的论坛:http://www.tianxiagame.com/bbs首页FLASH需要“单击激活此控件”,让FLASH默认为启用,如何修改?
回复

使用道具 举报

wz98 发表于 2007-7-27 16:42:49 | 显示全部楼层
原帖由 wz98 于 2007-7-26 23:35 发表
请教版主,首页四格图片我开始上传了六张可以正常显示,现在我想换新的,再上传怎么附件不能正常上传了,不知道是什么原因,是不是需要把前面的附件删除才可以能
另外我今天把Discuz! 5.5.0 20070724 更新了, ...


自己找到原因了,开始是用的腾讯TT浏览器
后来我换用Internet Explorer就可以了
回复

使用道具 举报

yaki520 发表于 2007-7-27 19:26:45 | 显示全部楼层

改动了四格的后,出现了下面的问题

本想在帖子后面加上人气的,结果人气是看到了,却总不变化...附加有图
,怎么回事,下面是代码,红色是改动的部分



<table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="{TABLEWIDTH}" align="center" class="tableborder">
<tr class="altbg2" align="left">
  <td align="left" class="header"><b><img src={IMGDIR}/dot.gif border=0 />论坛图片</b></td>
  <td align="left" class="header"><b><img src={IMGDIR}/dot.gif border=0 />最新发表的贴子</b></td>
  <td align="left" class="header"><b><img src={IMGDIR}/dot.gif border=0 />最新回复的贴子</b></td>
  <td align="left" class="header"><b><img src={IMGDIR}/dot.gif border=0 />论坛最热的贴子</b></td>
</tr>
<tr class="altbg1" align="left">
<td align="left" valign="top" style="border-right: 1px solid {INNERBORDERCOLOR};width:10px;height:10px;"><iframe name="I1" src="pic.php" width="235" height="195" frameborder=0 scrolling=no marginwidth="2" marginheight="2" align="center"></iframe></td>
<td align="left" valign="top" style="border-right: 1px solid {INNERBORDERCOLOR}">
<!--#最新贴循环开始-->
<!--{loop $new_post_threadlist $nthread}-->
<img src="images/bullet.gif" border="0">
                                                                        <!--{if $nthread[replies]}-->
                                                                        <a href="viewthread.php?tid=$nthread[tid]" $nthread['highlight'] title="最新话题 {LF}所在论坛: $nthread[forumname]{LF}主题标题: $nthread[subject] {LF}主题作者: $nthread[author]{LF}发表时间: $nthread[date]{LF}浏览次数: $nthread[views] 次 {LF}回复次数: $nthread[replies] 次{LF}最后回复: $nthread[lastreplytime]{LF}{lang lastpost}: $nthread[lastposter]" >$nthread[view_subject]({$nthread[replies]}/{$nthread[views]})</a><br>
                                                                        <!--{else}-->
                                                                        <a href="viewthread.php?tid=$nthread[tid]" $nthread['highlight'] title="最新话题 {LF}所在论坛: $nthread[forumname]{LF}主题标题: $nthread[subject] {LF}主题作者: $nthread[author]{LF}发表时间{lang time}: $nthread[date]{LF}浏览次数: $nthread[views] 次 {LF}回复次数: $nthread[replies] 次{LF}{lang replies}: 暂时没有回复" >$nthread[view_subject]({$nthread[replies]}/{$nthread[views]})</a><br>
                                                                  <!--{/if}-->
                                                                   <!--{/loop}-->
                                                                  <!--#循环结束--></td>
<td align="left" valign="top" style="border-right: 1px solid {INNERBORDERCOLOR}">
<!--#最新贴循环开始-->
<!--{loop $new_reply_threadlist $rthread}-->

<img src="images/bullet.gif" border="0"><a href="viewthread.php?tid=$rthread[tid]" $rthread['highlight'] title="最新回复 {LF}所在论坛: $rthread[forumname]{LF}主题标题: $rthread[subject]{LF}主题作者: $rthread[author]{LF}发表时间: $rthread[date]{LF}浏览次数: $rthread[views] 次{LF}回复次数: $rthread[replies] 次{LF}最后回复: $rthread[lastreplytime]{LF}{lang lastpost}: $rthread[lastposter]" >$rthread[view_subject]({$nthread[replies]}/{$nthread[views]})</a><br>

<!--{/loop}-->
<!--#循环结束--></td>
<td align="left" valign="top">
<!--#最新贴循环开始-->
<!--{loop $new_hot_threadlist $mthread}-->
<img src="images/bullet.gif" border="0"><a href="viewthread.php?tid=$mthread[tid]" $mthread['highlight'] title="热门话题 {LF}所在论坛: $mthread[forumname]{LF}主题标题: $mthread[subject]{LF}主题作者: $mthread[author]{LF}发表时间: $mthread[date]{LF}浏览次数: $mthread[views] 次{LF}回复次数: $mthread[replies] 次{LF}最后回复: $mthread[lastreplytime]{LF}{lang lastpost}: $mthread[lastposter]" >$mthread[view_subject]({$nthread[replies]}/{$nthread[views]})</a><br>
<!--{/loop}-->
<!--#循环结束--></td></tr>
</table>

本帖子中包含更多资源

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

x
回复

使用道具 举报

yaki520 发表于 2007-7-27 19:30:05 | 显示全部楼层
原帖由 yaki520 于 2007-7-27 19:26 发表
本想在帖子后面加上人气的,结果人气是看到了,却总不变化...附加有图
,怎么回事,下面是代码,红色是改动的部分





  论坛图片
  最新发表的贴子
  最新回复的贴子
  论坛最热的贴子







  ...

呵呵,原因找到了,谢谢
回复

使用道具 举报

北极哈哈 发表于 2007-7-27 20:03:26 | 显示全部楼层
我现在用的是首页3格...
论坛图片+最新话题+最新回复
我想把论坛图片改成热门话题...那位高手能帮忙??? 跪求~~

论坛地址(不是打广告...帮帮忙):
http://bfantasy.com/index.php

Discuz.htm

<!--------首页三格 开始-------->
<!--{if empty($gid)}-->
<!--{if $show_toplist}-->
<div style="clear: both; margin-top: 5px">
{template toplist}
<br>
</div>
<!--{/if}-->
<!--{/if}-->
<!--------首页三格 结束-------->


index.php

require_once './include/common.inc.php';
require_once DISCUZ_ROOT.'./include/forum.func.php';
require_once DISCUZ_ROOT.'./include/misc.func.php';
require_once DISCUZ_ROOT.'./include/toplist.php';


toplist.htm

<table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="{TABLEWIDTH}" align="center" class="tableborder">
    <tr class="header">
    <td width="30%" align="center"><b>☆最新图片展示☆</b></td>
    <td width="34%" align="center"><b>≡最新发布TOP10≡</b></td>
    <td width="34%" align="center"><b>≡最新回复TOP10≡</b></td>
   
  </tr>
<tbody id="top10">
  <tr>
    <td align="middle" valign="bottom" bgcolor="{ALTBG1}"><iframe src="pic.php" width="310" height="200" frameborder=0 scrolling=no marginwidth="0" marginheight="0"></iframe>
    </td>
    <td valign="top" bgcolor="{ALTBG1}">
     <div>
      <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tbody>
        <tr>
          <td width="24" background="images/rank.gif"></td>
          <td background="images/rankbg.gif" style="line-height:20px" valign="top">
                  <!--#最新主题循环开始-->
        <!--{loop $new_post_threadlist $nthread}-->
                                                                        <!--{if $nthread[replies]}-->
                                                                        <a href="viewthread.php?tid=$nthread[tid]" $nthread['highlight'] title="最新主题 {LF}所在论坛: $nthread[forumname]{LF}主题标题: $nthread[subject] {LF}主题作者: $nthread[author]{LF}发表时间: $nthread[date]{LF}浏览次数: $nthread[views] 次 {LF}回复次数: $nthread[replies] 次{LF}最后回复: $nthread[lastreplytime]{LF}{lang lastpost}: $nthread[lastposter]" target="_self">$nthread[view_subject]</a><br>
                                                                        <!--{else}-->
                                                                        <a href="viewthread.php?tid=$nthread[tid]" $nthread['highlight'] title="最新主题 {LF}所在论坛: $nthread[forumname]{LF}主题标题: $nthread[subject] {LF}主题作者: $nthread[author]{LF}发表时间{lang time}: $nthread[date]{LF}浏览次数: $nthread[views] 次 {LF}回复次数: $nthread[replies] 次{LF}{lang replies}: 暂时没有回复" target="_self" >$nthread[view_subject]</a><br>
                                                                  <!--{/if}-->
                                                                   <!--{/loop}-->
                                                                   <!--#循环结束-->
          </td>
        </tr>
      </tbody>
      </table>
     </div>
    </td>
    <td valign="top" bgcolor="{ALTBG1}">
     <div>
      <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tbody>
        <tr>
          <td width="24" background="images/rank.gif"></td>
          <td background="images/rankbg.gif" style="line-height:20px" valign="top">
        <!--#最新回复循环开始-->
<!--{loop $new_reply_threadlist $rthread}-->
<a href="redirect.php?tid=$rthread[tid]&goto=lastpost$highlight#lastpost" $rthread['highlight'] title="最新回复 {LF}所在论坛: $rthread[forumname]{LF}主题标题: $rthread[subject]{LF}主题作者: $rthread[author]{LF}发表时间: $rthread[date]{LF}浏览次数: $rthread[views] 次{LF}回复次数: $rthread[replies] 次{LF}最后回复: $rthread[lastreplytime]{LF}{lang lastpost}: $rthread[lastposter]" target="_self">$rthread[view_subject]</a><br>
<!--{/loop}-->
<!--#循环结束-->
          </td>
        </tr>
      </tbody>
      </table>
     </div>
    </td>
   
  </tr>
</tbody>
</table>
回复

使用道具 举报

习明 发表于 2007-7-27 20:08:13 | 显示全部楼层

回复 #258 北极哈哈 的帖子

先看后问
回复

使用道具 举报

lx3leon 发表于 2007-7-28 08:42:43 | 显示全部楼层
大大帮帮俺啊~

怎么才能让首页的FLASH自动启用,而不用再“单击激活此控件”啊?

就像他的:http://www.52pcgame.com/
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-9-22 12:44 , Processed in 0.144697 second(s), 15 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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