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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

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

[复制链接]
习明 发表于 2007-9-21 23:06:40 | 显示全部楼层

回复 411# 的帖子

没明白要表达的意思
回复

使用道具 举报

chiyu10 发表于 2007-9-21 23:11:48 | 显示全部楼层

回复 412# 的帖子

如像发表主题和帖子总数,会员总数下面都是实线,能改成没有线的吗?

像圖這樣

[ 本帖最后由 chiyu10 于 2007-9-21 23:13 编辑 ]

本帖子中包含更多资源

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

x
回复

使用道具 举报

习明 发表于 2007-9-21 23:36:53 | 显示全部楼层
templates/default/discuz.htm
  1. <!-- 首页四格代码开始 -->
  2. <div class="mainbox forumlist" style="padding:0;">
  3.         <table cellspacing="0" cellpadding="0">
  4.                 <thead class="category">
  5.                 <tr>
  6.                         <td align="center" style="padding:0 1px 0 0"><h3>≡ 论坛已运行 <span class="bold">$build_days</span> 天 ≡</h3></td>
  7.                         <td align="center" style="padding:0"><h3>≡ 论坛资料 ≡</h3></td>
  8.                         <td align="center" style="padding:0 1px 0 1px"><h3>≡ 最新发表 ≡</h3></td>
  9.                         <td align="center" style="padding:0"><h3>≡ 最新回复 ≡</h3></td>
  10.                 </tr>
  11.                 </thead>
  12.                 <tr>
  13.                         <td width="25%">
  14.                                 <table cellspacing="0" cellpadding="0" border="0" width="100%">
  15.                                         <!--{if !$discuz_uid}-->
  16.                                         <tr>
  17.                                                 <td style="border-top:0">如果您没有注册,请先 <a href="register.php">注册</a> 成为会员。</td>
  18.                                         </tr>
  19.                                         <form method="post" name="login" action="logging.php?action=login&amp;loginsubmit=true" />
  20.                                                 <input type="hidden" name="formhash" value="{FORMHASH}" />
  21.                                                 <input type="hidden" name="referer" value="$referer" />
  22.                                                 <input type="hidden" name="cookietime" value="2592000" />
  23.                                         <tr>
  24.                                                 <td>
  25.                                                         <input type="text" name="username" size="12" maxlength="40" value="{lang username}" onfocus="this.value=''" tabindex="101" />
  26.                                                         <input type="password" name="password" size="12"  onfocus="this.value=''" value="" tabindex="102" />
  27.                                                 </td>
  28.                                         </tr>
  29.                                         <tr>
  30.                                                 <td style="border-top:0">
  31.                                                         <select name="questionid" tabindex="103">
  32.                                                                 <option value="0">{lang security_question_0}</option>
  33.                                                                 <option value="1">{lang security_question_1}</option>
  34.                                                                 <option value="2">{lang security_question_2}</option>
  35.                                                                 <option value="3">{lang security_question_3}</option>
  36.                                                                 <option value="4">{lang security_question_4}</option>
  37.                                                                 <option value="5">{lang security_question_5}</option>
  38.                                                                 <option value="6">{lang security_question_6}</option>
  39.                                                                 <option value="7">{lang security_question_7}</option>
  40.                                                         </select>
  41.                                                 </td>
  42.                                         </tr>
  43.                                         <tr>
  44.                                                 <td style="border-top:0">
  45.                                                         <input type="text" name="answer" size="18" tabindex="104" />
  46.                                         <!--{if $seccodecheck}-->
  47.                                         <tr>
  48.                                                 <td style="border-top:0">
  49.                                                         <input type="text" name="seccodeverify" size="15" maxlength="4" AUTOCOMPLETE="off"> <img src="seccode.php?sid=$sid" align="absmiddle">
  50.                                         <!--{/if}-->
  51.                                                          <button name="userlogin" type="submit" value="true">  {lang login}  </button>
  52.                                                 </td>
  53.                                         </tr>
  54.                                         </form>
  55.                                         <!--{else}-->
  56.                                         <tr><td style="border-top:0">{lang index_status}: <!--{if $validdays}--><a href="member.php?action=groupexpiry">$grouptitle</span>($validdays)</a><!--{else}-->$grouptitle<!--{/if}--></td></tr>
  57.                                         <tr><td>{lang member}:  <span class="bold">$discuz_userss</span><!--{if $invisible}--> / {lang login_invisible_mode}<!--{/if}--></td></tr>
  58.                                         <tr><td>{lang credits}: $credits</td></tr>
  59.                                         <!--{loop $extcredits $id $credit}-->
  60.                                         <tr><td>$credit[title]: $GLOBALS[extcredits.$id] $credit[unit]</td></tr>
  61.                                         <!--{/loop}-->
  62.                                         <!--{/if}-->
  63.                                         <tr><td>{lang online_ip}: $onlineip</td></tr>
  64.                                         <tr><td>{lang your_lastvisit}: $lastvisittime</td></tr>
  65.                                         <tr><td>{lang timenow}: $currenttime</td></tr>
  66.                                         <tr>
  67.                                                 <td>
  68.                                                         <a href="search.php?srchfrom=$newthreads&amp;searchsubmit=yes">新帖</a> |
  69.                                                         <!--{if $discuz_uid}-->
  70.                                                         <a href="search.php?srchuid=$discuz_uid&amp;mytopics=yes&amp;searchsubmit=yes">{lang show_mytopics}</a> |
  71.                                                         <!--{if $allowuseblog}-->
  72.                                                         <a href="blog.php?uid=$discuz_uid" target="_blank">{lang blog}</a> |
  73.                                                         <!--{/if}-->
  74.                                                         <!--{/if}-->
  75.                                                         <a href="digest.php">精华区</a> |
  76.                                                         <a href="member.php?action=markread">标记已读</a>
  77.                                                 </td>
  78.                                         </tr>
  79.                                 </table>
  80.                         </td>
  81.                         <td width="25%" valign=top>
  82.                                 <table cellspacing="0" cellpadding="0" border="0" width="100%">
  83.                                         <tr><td style="border-top:0">{lang index_today}发表:$todayposts 篇</td></tr>
  84.                                         <tr><td>发表主题:$threads 篇</td></tr>
  85.                                         <tr><td>帖子总数:$posts 篇</td></tr>
  86.                                         <tr><td>会员总数:$totalmembers 人</td></tr>
  87.                                         <tr><td>当前在线:<span class="bold">$onlinenum</span> {lang onlines}</td></tr>
  88.                                         <tr><td>{lang welcome_newmember}:<a href="viewpro.php?username=$memberenc"><span class="bold">$lastmember</span></a></td></tr>
  89.                                         <tr>
  90.                                                 <td>搜索论坛:
  91.                                                 <form method="get" action="search.php">
  92.                                                         <input size="15" name="srchtxt" />
  93.                                                         <button type="submit" name="searchsubmit" style="margin-left:5px;"> 搜索 </button>
  94.                                                         <a href="search.php">高级搜索</a>
  95.                                                 </form>
  96.                                                 </td>
  97.                                         </tr>
  98.                                 </table>
  99.                         </td>
  100.                         <td width="25%">
  101.                                 <table border="0" cellpadding="0" cellspacing="0" width="100%">
  102.                                         <tr valign="top">
  103.                                                 <td width="24" style="padding:0;border-top:0px;"><img src="images/list.gif" border="0" /></td>
  104.                                                 <td background="images/listbg.gif" style="line-height:20px;padding:0;border-top:0px;background-repeat: repeat-y" width="100%">
  105.                                                 <!--{loop $new_post_threadlist $nthread}-->
  106.                                                         <!--{if $nthread[replies]}-->
  107.                                                                 <div style="overflow: hidden;height: 20px;width: 100%;"><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]</a></div>
  108.                                                         <!--{else}-->
  109.                                                                 <div style="overflow: hidden;height: 20px;width: 100%;"><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[view_subject]</a></div>
  110.                                                         <!--{/if}-->
  111.                                                 <!--{/loop}-->
  112.                                                 </td>
  113.                                         </tr>
  114.                                 </table>
  115.                         </td>
  116.                         <td width="25%">
  117.                                 <table border="0" cellpadding="0" cellspacing="0" width="100%">
  118.                                         <tr valign="top">
  119.                                                 <td width="24" style="padding:0;border-top:0px;"><img src="images/list.gif" border="0" /></td>
  120.                                                 <td background="images/listbg.gif" style="line-height:20px;padding:0;border-top:0px;background-repeat: repeat-y" width="100%">
  121.                                                 <!--{loop $new_reply_threadlist $rthread}-->
  122.                                                         <div style="overflow: hidden;height: 20px;width: 100%;"><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]</a></div>
  123.                                                 <!--{/loop}-->
  124.                                                 </td>
  125.                                         </tr>
  126.                                 </table>
  127.                         </td>
  128.                 </tr>
  129.         </table>
  130. </div>
  131. <!-- 首页四格代码结束 -->
复制代码
替换为
  1. <!-- 首页四格代码开始 -->
  2. <div class="mainbox forumlist" style="padding:0;">
  3.         <table cellspacing="0" cellpadding="0">
  4.                 <thead class="category">
  5.                 <tr>
  6.                         <td align="center" style="padding:0 1px 0 0"><h3>≡ 论坛已运行 <span class="bold">$build_days</span> 天 ≡</h3></td>
  7.                         <td align="center" style="padding:0"><h3>≡ 论坛资料 ≡</h3></td>
  8.                         <td align="center" style="padding:0 1px 0 1px"><h3>≡ 最新发表 ≡</h3></td>
  9.                         <td align="center" style="padding:0"><h3>≡ 最新回复 ≡</h3></td>
  10.                 </tr>
  11.                 </thead>
  12.                 <tr>
  13.                         <td width="25%">
  14.                                 <table cellspacing="0" cellpadding="0" border="0" width="100%">
  15.                                         <!--{if !$discuz_uid}-->
  16.                                         <tr>
  17.                                                 <td style="border:0">如果您没有注册,请先 <a href="register.php">注册</a> 成为会员。</td>
  18.                                         </tr>
  19.                                         <form method="post" name="login" action="logging.php?action=login&amp;loginsubmit=true" />
  20.                                                 <input type="hidden" name="formhash" value="{FORMHASH}" />
  21.                                                 <input type="hidden" name="referer" value="$referer" />
  22.                                                 <input type="hidden" name="cookietime" value="2592000" />
  23.                                         <tr>
  24.                                                 <td style="border-top:0">
  25.                                                         <input type="text" name="username" size="12" maxlength="40" value="{lang username}" onfocus="this.value=''" tabindex="101" />
  26.                                                         <input type="password" name="password" size="12"  onfocus="this.value=''" value="" tabindex="102" />
  27.                                                 </td>
  28.                                         </tr>
  29.                                         <tr>
  30.                                                 <td style="border:0">
  31.                                                         <select name="questionid" tabindex="103">
  32.                                                                 <option value="0">{lang security_question_0}</option>
  33.                                                                 <option value="1">{lang security_question_1}</option>
  34.                                                                 <option value="2">{lang security_question_2}</option>
  35.                                                                 <option value="3">{lang security_question_3}</option>
  36.                                                                 <option value="4">{lang security_question_4}</option>
  37.                                                                 <option value="5">{lang security_question_5}</option>
  38.                                                                 <option value="6">{lang security_question_6}</option>
  39.                                                                 <option value="7">{lang security_question_7}</option>
  40.                                                         </select>
  41.                                                 </td>
  42.                                         </tr>
  43.                                         <tr>
  44.                                                 <td style="border:0">
  45.                                                         <input type="text" name="answer" size="18" tabindex="104" />
  46.                                         <!--{if $seccodecheck}-->
  47.                                         <tr>
  48.                                                 <td style="border-top:0">
  49.                                                         <input type="text" name="seccodeverify" size="15" maxlength="4" AUTOCOMPLETE="off"> <img src="seccode.php?sid=$sid" align="absmiddle">
  50.                                         <!--{/if}-->
  51.                                                          <button name="userlogin" type="submit" value="true">  {lang login}  </button>
  52.                                                 </td>
  53.                                         </tr>
  54.                                         </form>
  55.                                         <!--{else}-->
  56.                                         <tr><td style="border:0;">{lang index_status}: <!--{if $validdays}--><a href="member.php?action=groupexpiry">$grouptitle</span>($validdays)</a><!--{else}-->$grouptitle<!--{/if}--></td></tr>
  57.                                         <tr><td style="border:0">{lang member}:  <span class="bold">$discuz_userss</span><!--{if $invisible}--> / {lang login_invisible_mode}<!--{/if}--></td></tr>
  58.                                         <tr><td style="border:0">{lang credits}: $credits</td></tr>
  59.                                         <!--{loop $extcredits $id $credit}-->
  60.                                         <tr><td style="border:0">$credit[title]: $GLOBALS[extcredits.$id] $credit[unit]</td></tr>
  61.                                         <!--{/loop}-->
  62.                                         <!--{/if}-->
  63.                                         <tr><td style="border:0">{lang online_ip}: $onlineip</td></tr>
  64.                                         <tr><td style="border:0">{lang your_lastvisit}: $lastvisittime</td></tr>
  65.                                         <tr><td style="border:0">{lang timenow}: $currenttime</td></tr>
  66.                                         <tr>
  67.                                                 <td style="border:0">
  68.                                                         <a href="search.php?srchfrom=$newthreads&amp;searchsubmit=yes">新帖</a> |
  69.                                                         <!--{if $discuz_uid}-->
  70.                                                         <a href="search.php?srchuid=$discuz_uid&amp;mytopics=yes&amp;searchsubmit=yes">{lang show_mytopics}</a> |
  71.                                                         <!--{if $allowuseblog}-->
  72.                                                         <a href="blog.php?uid=$discuz_uid" target="_blank">{lang blog}</a> |
  73.                                                         <!--{/if}-->
  74.                                                         <!--{/if}-->
  75.                                                         <a href="digest.php">精华区</a> |
  76.                                                         <a href="member.php?action=markread">标记已读</a>
  77.                                                 </td>
  78.                                         </tr>
  79.                                 </table>
  80.                         </td>
  81.                         <td width="25%" valign=top>
  82.                                 <table cellspacing="0" cellpadding="0" border="0" width="100%">
  83.                                         <tr><td style="border:0">{lang index_today}发表:$todayposts 篇</td></tr>
  84.                                         <tr><td style="border:0">发表主题:$threads 篇</td></tr>
  85.                                         <tr><td style="border:0">帖子总数:$posts 篇</td></tr>
  86.                                         <tr><td style="border:0">会员总数:$totalmembers 人</td></tr>
  87.                                         <tr><td style="border:0">当前在线:<span class="bold">$onlinenum</span> {lang onlines}</td></tr>
  88.                                         <tr><td style="border:0">{lang welcome_newmember}:<a href="viewpro.php?username=$memberenc"><span class="bold">$lastmember</span></a></td></tr>
  89.                                         <tr>
  90.                                                 <td style="border:0">搜索论坛:
  91.                                                 <form method="get" action="search.php">
  92.                                                         <input size="15" name="srchtxt" />
  93.                                                         <button type="submit" name="searchsubmit" style="margin-left:5px;"> 搜索 </button>
  94.                                                         <a href="search.php">高级搜索</a>
  95.                                                 </form>
  96.                                                 </td>
  97.                                         </tr>
  98.                                 </table>
  99.                         </td>
  100.                         <td width="25%">
  101.                                 <table border="0" cellpadding="0" cellspacing="0" width="100%">
  102.                                         <tr valign="top">
  103.                                                 <td width="24" style="padding:0;border-top:0px;"><img src="images/list.gif" border="0" /></td>
  104.                                                 <td background="images/listbg.gif" style="line-height:20px;padding:0;border-top:0px;background-repeat: repeat-y" width="100%">
  105.                                                 <!--{loop $new_post_threadlist $nthread}-->
  106.                                                         <!--{if $nthread[replies]}-->
  107.                                                                 <div style="overflow: hidden;height: 20px;width: 100%;"><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]</a></div>
  108.                                                         <!--{else}-->
  109.                                                                 <div style="overflow: hidden;height: 20px;width: 100%;"><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[view_subject]</a></div>
  110.                                                         <!--{/if}-->
  111.                                                 <!--{/loop}-->
  112.                                                 </td>
  113.                                         </tr>
  114.                                 </table>
  115.                         </td>
  116.                         <td width="25%">
  117.                                 <table border="0" cellpadding="0" cellspacing="0" width="100%">
  118.                                         <tr valign="top">
  119.                                                 <td width="24" style="padding:0;border-top:0px;"><img src="images/list.gif" border="0" /></td>
  120.                                                 <td background="images/listbg.gif" style="line-height:20px;padding:0;border-top:0px;background-repeat: repeat-y" width="100%">
  121.                                                 <!--{loop $new_reply_threadlist $rthread}-->
  122.                                                         <div style="overflow: hidden;height: 20px;width: 100%;"><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]</a></div>
  123.                                                 <!--{/loop}-->
  124.                                                 </td>
  125.                                         </tr>
  126.                                 </table>
  127.                         </td>
  128.                 </tr>
  129.         </table>
  130. </div>
  131. <!-- 首页四格代码结束 -->
复制代码
回复

使用道具 举报

chiyu10 发表于 2007-9-21 23:52:43 | 显示全部楼层

回复 414# 的帖子

可以了,太谢谢你了~
回复

使用道具 举报

 楼主| TaRot! 发表于 2007-9-23 10:01:37 | 显示全部楼层

回复 409# 的帖子

一般的首页N格都会使用
  1. <FONT color='#FFA6D2' face='Wingdings'>☆</FONT>
复制代码
这种代码显示图标.把这个放到代码里看下就知道是什么效果的.
回复

使用道具 举报

confou 发表于 2007-9-23 19:23:10 | 显示全部楼层
为什么首页n格安装好后,全部都正常,不过在首页上有显示 “网页上有错误”
回复

使用道具 举报

习明 发表于 2007-9-23 22:12:22 | 显示全部楼层

回复 417# 的帖子

具体问题具体分析
回复

使用道具 举报

 楼主| TaRot! 发表于 2007-9-24 22:50:23 | 显示全部楼层

回复 417# 的帖子

肯定是哪里漏了什么符号或者多了什么符号,仔细检查下.
回复

使用道具 举报

wind123 发表于 2007-9-27 00:00:33 | 显示全部楼层
我的图片就是不显示,烦躁的很,只能手动了
回复

使用道具 举报

jita163 发表于 2007-9-27 03:46:28 | 显示全部楼层
奇怪了,,游客不可以看见首页四格是怎么回事啊
回复

使用道具 举报

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

本版积分规则

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

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

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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