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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

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

[复制链接]
习明 发表于 2007-12-25 12:56:02 | 显示全部楼层
关联查询或独立查询threadsmod表、members表 对两个threads和members两个大表的查询 对速度影响非常大 不建议使用
回复

使用道具 举报

chiyu10 发表于 2007-12-25 17:45:12 | 显示全部楼层
我是用这个四格的,请问该怎改,才能让游客不能看到四格

要登入才能看呢,谢谢



*********************************************

<!-- 首页四格代码开始 -->
<div class="mainbox forumlist" style="padding:0;">
        <table cellspacing="0" cellpadding="0">
                <thead class="category">
                <tr>
                        <td align="center" style="padding:0 1px 0 0"><h3>≡ 论坛已运行 <span class="bold">$build_days</span> 天 ≡</h3></td>
                        <td align="center" style="padding:0"><h3>≡ 论坛资料 ≡</h3></td>
                        <td align="center" style="padding:0 1px 0 1px"><h3>≡ 最新发表 ≡</h3></td>
                        <td align="center" style="padding:0"><h3>≡ 最新回复 ≡</h3></td>
                </tr>
                </thead>
                <tr>
                        <td width="25%">
                                <table cellspacing="0" cellpadding="0" border="0" width="100%">
                                        <!--{if !$discuz_uid}-->
                                        <tr>
                                                <td style="border:0">如果您没有注册,请先 <a href="register.php">注册</a> 成为会员。</td>
                                        </tr>
                                        <form method="post" name="login" action="logging.php?action=login&amp;loginsubmit=true" />
                                                <input type="hidden" name="formhash" value="{FORMHASH}" />
                                                <input type="hidden" name="referer" value="$referer" />
                                                <input type="hidden" name="cookietime" value="2592000" />
                                        <tr>
                                                <td style="border-top:0">
                                                        <input type="text" name="username" size="12" maxlength="40" value="{lang username}" onfocus="this.value=''" tabindex="101" />
                                                        <input type="password" name="password" size="12"  onfocus="this.value=''" value="" tabindex="102" />
                                                </td>
                                        </tr>
                                        <tr>
                                                <td style="border:0">
                                                        <select name="questionid" tabindex="103">
                                                                <option value="0">{lang security_question_0}</option>
                                                                <option value="1">{lang security_question_1}</option>
                                                                <option value="2">{lang security_question_2}</option>
                                                                <option value="3">{lang security_question_3}</option>
                                                                <option value="4">{lang security_question_4}</option>
                                                                <option value="5">{lang security_question_5}</option>
                                                                <option value="6">{lang security_question_6}</option>
                                                                <option value="7">{lang security_question_7}</option>
                                                        </select>
                                                </td>
                                        </tr>
                                        <tr>
                                                <td style="border:0">
                                                        <input type="text" name="answer" size="18" tabindex="104" />
                                        <!--{if $seccodecheck}-->
                                        <tr>
                                                <td style="border-top:0">
                                                        <input type="text" name="seccodeverify" size="15" maxlength="4" AUTOCOMPLETE="off"> <img src="seccode.php?sid=$sid" align="absmiddle">
                                        <!--{/if}-->
                                                         <button name="userlogin" type="submit" value="true">  {lang login}  </button>
                                                </td>
                                        </tr>
                                        </form>
                                        <!--{else}-->
                                        <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>
                                        <tr><td style="border:0">{lang member}:  <span class="bold">$discuz_userss</span><!--{if $invisible}--> / {lang login_invisible_mode}<!--{/if}--></td></tr>
                                        <tr><td style="border:0">{lang credits}: $credits</td></tr>
                                        <!--{loop $extcredits $id $credit}-->
                                        <tr><td style="border:0">$credit[title]: $GLOBALS[extcredits.$id] $credit[unit]</td></tr>
                                        <!--{/loop}-->
                                        <!--{/if}-->
                                        <tr><td style="border:0">{lang online_ip}: $onlineip</td></tr>
                                        <tr><td style="border:0">{lang your_lastvisit}: $lastvisittime</td></tr>
                                        <tr><td style="border:0">{lang timenow}: $currenttime</td></tr>
                                        <tr>
                                                <td style="border:0">
                                                        <a href="search.php?srchfrom=$newthreads&amp;searchsubmit=yes">新帖</a> |
                                                        <!--{if $discuz_uid}-->
                                                        <a href="search.php?srchuid=$discuz_uid&amp;mytopics=yes&amp;searchsubmit=yes">{lang show_mytopics}</a> |
                                                        <!--{if $allowuseblog}-->
                                                        <a href="blog.php?uid=$discuz_uid" target="_blank">{lang blog}</a> |
                                                        <!--{/if}-->
                                                        <!--{/if}-->
                                                        <a href="digest.php">精华区</a> |
                                                        <a href="member.php?action=markread">标记已读</a>
                                                </td>
                                        </tr>
                                </table>
                        </td>
                        <td width="25%" valign=top>
                                <table cellspacing="0" cellpadding="0" border="0" width="100%">
                                        <tr><td style="border:0">{lang index_today}发表:$todayposts 篇</td></tr>
                                        <tr><td style="border:0">发表主题:$threads 篇</td></tr>
                                        <tr><td style="border:0">帖子总数:$posts 篇</td></tr>
                                        <tr><td style="border:0">会员总数:$totalmembers 人</td></tr>
                                        <tr><td style="border:0">当前在线:<span class="bold">$onlinenum</span> {lang onlines}</td></tr>
                                        <tr><td style="border:0">{lang welcome_newmember}:<a href="viewpro.php?username=$memberenc"><span class="bold">$lastmember</span></a></td></tr>
                                        <tr>
                                                <td style="border:0">搜索论坛:
                                                <form method="get" action="search.php">
                                                        <input size="15" name="srchtxt" />
                                                        <button type="submit" name="searchsubmit" style="margin-left:5px;"> 搜索 </button>
                                                        <a href="search.php">高级搜索</a>
                                                </form>
                                                </td>
                                        </tr>
                                </table>
                        </td>
                        <td width="25%">
                                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                        <tr valign="top">
                                                <td width="24" style="padding:0;border-top:0px;"><img src="images/list.gif" border="0" /></td>
                                                <td background="images/listbg.gif" style="line-height:20px;padding:0;border-top:0px;background-repeat: repeat-y" width="100%">
                                                <!--{loop $new_post_threadlist $nthread}-->
                                                        <!--{if $nthread[replies]}-->
                                                                <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>
                                                        <!--{else}-->
                                                                <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>
                                                        <!--{/if}-->
                                                <!--{/loop}-->
                                                </td>
                                        </tr>
                                </table>
                        </td>
                        <td width="25%">
                                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                        <tr valign="top">
                                                <td width="24" style="padding:0;border-top:0px;"><img src="images/list.gif" border="0" /></td>
                                                <td background="images/listbg.gif" style="line-height:20px;padding:0;border-top:0px;background-repeat: repeat-y" width="100%">
                                                <!--{loop $new_reply_threadlist $rthread}-->
                                                        <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>
                                                <!--{/loop}-->
                                                </td>
                                        </tr>
                                </table>
                        </td>
                </tr>
        </table>
</div>
<!-- 首页四格代码结束 -->
回复

使用道具 举报

习明 发表于 2007-12-25 18:40:04 | 显示全部楼层

回复 654# 的帖子

  1. <!--{if $discuz_uid}-->
  2. 四格开始
  3. ……
  4. 四格结束
  5. <!--{/if}-->
复制代码
回复

使用道具 举报

chiyu10 发表于 2007-12-25 19:24:29 | 显示全部楼层

回复 655# 的帖子

谢谢你,成功了
回复

使用道具 举报

k007k 发表于 2007-12-26 09:45:31 | 显示全部楼层
大家好,我用的是这个贴子
https://discuz.dismall.com/thread-805366-1-1.html###zoom
最上边的那个,带天气和格言的那个
用的是圣诞的模板
可是格言和天气不对齐,还有就是想把天气的颜色改一下
我的论坛地址是:www.ciunet.cn
有CSS高手请帮一下忙,谢谢。
回复

使用道具 举报

purezhang 发表于 2007-12-26 14:57:58 | 显示全部楼层
https://discuz.dismall.com/viewthread.php?tid=742280
这个6格效果相当的不错,不过就是速度很慢,怎么能改一下呢?谢谢了
我改的效果www.liveinhd.com.cn/bbs


不是优化的问题,希望版主能给个建议,从哪方面着手,比如他的缓存或者什么地方的问题
谢谢了
回复

使用道具 举报

习明 发表于 2007-12-26 19:40:43 | 显示全部楼层

回复 657# 的帖子

模板的问题 只能是自己慢慢调整 或者到模板风格区咨询
回复

使用道具 举报

xidor 发表于 2007-12-27 11:37:07 | 显示全部楼层
我安装了大大的五格,图片怎么都不显示.

有时间去看下.http://xidor.server2.07host.cn/
回复

使用道具 举报

gxblxb 发表于 2007-12-27 21:52:59 | 显示全部楼层


请问安装好首页六格,更新缓存之后一直都显示不出来图片和文字,这是为什么呢?
谢谢~
回复

使用道具 举报

mhjl2006 发表于 2007-12-27 22:53:17 | 显示全部楼层
如何解决远程附件图片调用的问题?
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-9-22 18:32 , Processed in 0.116094 second(s), 21 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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