我的旅游论坛近来一直有一个很烦心的问题困扰着我,恳请各位提供帮助:经常发生有的会员可以登陆有的会员无法登陆的情况,有时候连我一整天都登陆不上去,而且论坛主页的图片经常是叉叉显示,偶尔恢复,然后又是同样的问题。空间商说是论坛程序的问题,discuz.htm附上,感谢大家的帮我看看是哪里出问题了,我快急疯了。。。谢谢了,各位!(古镇社区www.jnguzhen.cn)
{subtemplate header}
<div id="foruminfo">
<div id="userinfo">
<div id="nav">
<!--{if $gid || !$discuz_uid}--><a href="$indexname">$bbname</a><!--{/if}-->
</div>
<p>
<!--{if $discuz_uid}-->
<!--{if $allowinvisible}-->{lang online_status}:
<span id="loginstatus"><!--{if !empty($invisible)}--><a href="member.php?action=switchstatus">{lang login_invisible_mode}</a><!--{else}--><a href="member.php?action=switchstatus" title="{lang login_switch_invisible_mode}">{lang login_normal_mode}</a><!--{/if}--></span><br />
<!--{/if}-->
{lang your_lastvisit}: <em>$lastvisittime</em>
<!--{if !empty($google) && ($google & 1)}--><br /><!--{/if}-->
<a href="search.php?srchfrom=$newthreads&searchsubmit=yes">{lang show_newthreads}</a>
<a href="member.php?action=markread" id="ajax_markread">{lang mark_read}</a>
<!--{elseif !empty($_DCOOKIE['loginuser'])}-->
<em>$_DCOOKIE['loginuser']</em>, <a href="logging.php?action=login">{lang index_activation}</a>
<!--{else}-->
<form id="loginform" method="post" name="login" action="logging.php?action=login&loginsubmit=true">
<input type="hidden" name="formhash" value="{FORMHASH}" />
<input type="hidden" name="cookietime" value="2592000" />
<input type="hidden" name="loginfield" value="username" />
<input type="text" id="username" name="username" size="15" maxlength="40" tabindex="1" value="{lang username}" />
<input type="password" id="password" name="password" size="10" tabindex="2" />
<button name="userlogin" type="submit" value="true">{lang login}</button>
</form>
<!--{/if}-->
</p>
</div>
<div id="forumstats">
<p>
{lang index_today}: <em>$todayposts</em>, {lang index_yesterday}: <em>$postdata[0]</em>, {lang index_maxday}: <em>$postdata[1]</em> <a href="digest.php">{lang digest}</a>
<!--{if $rssstatus}--><a href="rss.php?auth=$rssauth" title="{lang rss_subscribe_all}" target="_blank"><img src="images/common/xml.gif" alt="{lang rss_subscribe_all}" /></a><!--{/if}-->
</p>
<p>{lang index_threads}: <em>$threads</em>, {lang index_posts}: <em>$posts</em>, {lang index_members}: <em>$totalmembers</em>, {lang welcome_newmember} <cite><a href="space.php?username=$memberenc">$lastmember</a></cite></p>
</div>
<!--{if !empty($google) && ($google & 1)}-->
<div id="headsearch" style="clear: both">
<script type="text/javascript" src="forumdata/cache/google_var.js"></script>
<script type="text/javascript" src="include/javascript/google.js"></script>
</div>
<!--{/if}-->
</div>
<!--{if empty($gid) && $announcements}-->
<div id="announcement">
<div id="announcementbody"><ul>$announcements</ul></div>
</div>
<script type="text/javascript">
var anndelay = 3000;
var annst = 0;
var annstop = 0;
var annrowcount = 0;
var anncount = 0;
var annlis = $('announcementbody').getElementsByTagName("LI");
var annrows = new Array();
var annstatus;
function announcementScroll() {
if(annstop) {
annst = setTimeout('announcementScroll()', anndelay);
return;
}
if(!annst) {
var lasttop = -1;
for(i = 0;i < annlis.length;i++) {
if(lasttop != annlis.offsetTop) {
if(lasttop == -1) {
lasttop = 0;
}
annrows[annrowcount] = annlis.offsetTop - lasttop;
annrowcount++;
}
lasttop = annlis.offsetTop;
}
if(annrows.length == 1) {
$('announcement').onmouseover = $('announcement').onmouseout = null;
} else {
annrows[annrowcount] = annrows[1];
$('announcementbody').innerHTML += '<br style="clear:both" />' + $('announcementbody').innerHTML;
annst = setTimeout('announcementScroll()', anndelay);
}
annrowcount = 1;
return;
}
if(annrowcount >= annrows.length) {
$('announcementbody').scrollTop = 0;
annrowcount = 1;
annst = setTimeout('announcementScroll()', anndelay);
} else {
anncount = 0;
announcementScrollnext(annrows[annrowcount]);
}
}
function announcementScrollnext(time) {
$('announcementbody').scrollTop++;
anncount++;
if(anncount != time) {
annst = setTimeout('announcementScrollnext(' + time + ')', 10);
} else {
annrowcount++;
annst = setTimeout('announcementScroll()', anndelay);
}
}
</script>
<!--{/if}-->
<!--{if $admode && empty($insenz['hardadstatus']) && !empty($advlist['text'])}--><div class="ad_text" id="ad_text"><table summary="Text Ad" cellpadding="0" cellspacing="1">$advlist[text]</table></div><!--{else}--><div id="ad_text"></div><!--{/if}-->
<!-- 首页四格代码开始 -->
<div class="mainbox forumlist" style="padding:0;">
<table cellspacing="0" cellpadding="0">
<thead class="category">
<tr>
<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 1px 0 0"><h3>≡ 本周热门 ≡</h3></td>
<td align="center" style="padding:0"><h3>≡ 本月精华 ≡</h3></td>
</tr>
</thead>
<tr>
<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>
<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_hot_threadlist $mthread}-->
<div style="overflow: hidden;height: 20px;width: 100%;"><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]</a></div>
<!--{/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_digest_threadlist $dthread}-->
<div style="overflow: hidden;height: 20px;width: 100%;"><a href="viewthread.php?tid=$dthread[tid]" $dthread['highlight'] title='本月精华 {LF}所在论坛: $dthread[forumname]{LF}主题标题: $dthread[subject]{LF}主题作者: $dthread[author]{LF}发表时间: $dthread[date]{LF}浏览次数: $dthread[views] 次{LF}回复次数: $dthread[replies] 次{LF}最后回复: $dthread[lastreplytime]{LF}{lang lastpost}: $dthread[lastposter]'>$dthread[view_subject]</a></div>
<!--{/loop}--> </td>
</tr>
</table> </td>
</tr>
<tr>
<td colspan="4">今日发贴TOP10:$poststar</td>
</tr>
</table>
</div>
<!-- 首页四格代码结束 -->
<table summary="HeadBox" class="portalbox" cellpadding="0" cellspacing="1">
<tr>
<!--{if $hottagstatus}-->
<td>
<!--{if $hottagstatus}-->
<div id="hottags"><h3><a href="tag.php" target="_blank">{lang hottags}</a></h3>
$_DCACHE[tags]
</div>
<!--{/if}-->
</td>
<!--{/if}-->
<!--{if !empty($qihoo['status']) && ($qihoo['searchbox'] & 1)}-->
<td id="qihoosearch"{if $hottagstatus} style="width: 242px;"{/if}>
<!--{if !empty($qihoo['status']) && ($qihoo['searchbox'] & 1)}-->
<form method="post" action="search.php?srchtype=qihoo">
<input type="hidden" name="searchsubmit" value="yes" />
<input type="text" name="srchtxt" value="$qihoo_searchboxtxt" size="20" />
<select name="stype">
<option value="" selected="selected">{lang qihoo_search_filltext}</option>
<option value="1">{lang qihoo_search_title}</option>
<option value="2">{lang qihoo_search_author}</option>
</select>
<button name="searchsubmit" type="submit" value="true">{lang search}</button>
</form>
<!--{if !empty($qihoo['links']['keywords'])}-->
<strong>{lang qihoo_hot_searches}</strong>
<!--{loop $qihoo['links']['keywords'] $link}-->
$link
<!--{/loop}-->
<!--{/if}-->
<!--{if $customtopics}-->
<strong>{lang qihoo_custom_topics}</strong> $customtopics [<a href="###">{lang edit}</a>]<br />
<!--{/if}-->
<!--{if !empty($qihoo['links']['topics'])}-->
<strong>{lang qihoo_topics}</strong>
<!--{loop $qihoo['links']['topics'] $url}-->
{$url}
<!--{/loop}-->
<!--{/if}-->
<!--{/if}-->
</td>
<!--{/if}-->
</tr>
</table>
<!--{if !empty($insenz['vfstatus'])}--><script type="text/javascript" src="campaign.php?action=list"></script><!--{/if}-->
<!--{loop $catlist $key $cat}-->
<!--{if $cat['forumscount']}-->
<div class="mainbox forumlist">
<span class="headactions">
<!--{if $cat['moderators']}-->{lang forum_category_modedby}: $cat[moderators]<!--{/if}-->
<img id="category_$cat[fid]_img" src="{IMGDIR}/$cat[collapseimg]" title="{lang spread}" alt="{lang spread}" />
</span>
<h3><a href="$indexname?gid=$cat[fid]">$cat[name]</a></h3>
<table id="category_$cat[fid]" summary="category$cat[fid]" cellspacing="0" cellpadding="0" style="$collapse['category_'.$cat[fid]]">
<!--{if !$cat['forumcolumns']}-->
<thead class="category">
<tr>
<th>{lang forum_name}</th>
<td class="nums">{lang forum_threads}</td>
<td class="nums">{lang forum_posts}</td>
<td class="lastpost">{lang forum_lastpost}</td>
</tr>
</thead>
<!--{loop $cat[forums] $forumid}-->
<!--{eval $forum=$forumlist[$forumid];}-->
<tbody id="forum$forum[fid]">
<tr>
<th$forum[folder]>
$forum[icon]
<h2><a href="forumdisplay.php?fid=$forum[fid]">$forum[name]</a><!--{if $forum[todayposts] && !$forum['redirect']}--><em> ({lang index_today}: $forum[todayposts])</em><!--{/if}--></h2>
<!--{if $forum[description]}--><p>$forum[description]</p><!--{/if}-->
<!--{if $forum['subforums']}--><p>{lang forum_subforums}: $forum['subforums']</p><!--{/if}-->
<!--{if $forum['moderators']}--><!--{if $moddisplay == 'flat'}--><p class="moderators">{lang forum_moderators}: $forum[moderators]</p><!--{else}--><span class="dropmenu" id="mod$forum[fid]">{lang forum_moderators}</span><ul class="moderators popupmenu_popup" id="mod$forum[fid]_menu" style="display: none">$forum[moderators]</ul><!--{/if}--><!--{/if}-->
</th>
<td class="nums">{if $forum['redirect']}--{else}$forum[threads]{/if}</td>
<td class="nums">{if $forum['redirect']}--{else}$forum[posts]{/if}</td>
<td class="lastpost">
<!--{if $forum['permission'] == 1}-->
{lang private_forum}
<!--{else}-->
<!--{if $forum['redirect']}-->
--
<!--{elseif is_array($forum['lastpost'])}-->
<a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{echo cutstr($forum[lastpost][subject], 40)}</a>
<cite>{lang forum_lastpost_by} <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}--> - $forum[lastpost][dateline]</cite>
<!--{else}-->
{lang never}
<!--{/if}-->
<!--{/if}-->
</td>
</tr>
</tbody>
<!--{/loop}-->
<!--{else}-->
<tr>
<!--{loop $cat['forums'] $forumid}-->
<!--{eval $forum=$forumlist[$forumid];}-->
<!--{if $forum['orderid'] && ($forum['orderid'] % $cat['forumcolumns'] == 0)}-->
</tr></tbody>
<!--{if $forum['orderid'] < $cat['forumscount']}-->
<tbody><tr>
<!--{/if}-->
<!--{/if}-->
<th width="$cat[forumcolwidth]"{$forum[folder]}
<a href="forumdisplay.php?fid=$forum[fid]">{$forum[icon]}</a>
<h2><b><a href="forumdisplay.php?fid=$forum[fid]">$forum[name]</a></b><!--{if $forum[todayposts]}--><em> ({lang index_today}: $forum[todayposts])</em><!--{/if}--></h2>
<p>┌{lang forum_lastpost}:
<!--{if is_array($forum['lastpost'])}-->
<a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{echo cutstr($forum[lastpost][subject], 40)}</a>
{lang forum_lastpost_by} <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}-->
<!--{else}-->
{lang never}
<!--{/if}-->
<p>└<em>{lang forum_threads}: $forum[threads], {lang forum_posts}: $forum[posts], {lang index_today}: $forum[todayposts]</em></p>
<!--{if $forum['moderators']}--><!--{if $moddisplay == 'flat'}--><p class="moderators">{lang forum_moderators}: $forum[moderators]</p><!--{else}--><span class="dropmenu" id="mod$forum[fid]" >{lang forum_moderators}</span>
<ul class="moderators popupmenu_popup" id="mod$forum[fid]_menu" style="display: none">$forum[moderators]</ul><!--{/if}--><!--{/if}-->
<p>$forum[description]</p>
</p>
</th>
<!--{/loop}-->
$cat['endrows']
<!--{/if}-->
</table>
</div>
<!--{if $admode && empty($insenz['hardadstatus']) && !empty($advlist['intercat']) && ($advlist['intercat'][$key] = array_merge(($advlist['intercat'][0] ? $advlist['intercat'][0] : array()), ($advlist['intercat'][$key] ? $advlist['intercat'][$key] : array())))}--><div class="ad_column" id="ad_intercat_$key"><!--{echo $advitems[$advlist['intercat'][$key][array_rand($advlist['intercat'][$key])]]}--></div><!--{else}--><div id="ad_intercat_$key"></div><!--{/if}-->
<!--{/if}-->
<!--{/loop}-->
<!--{if $_DCACHE['forumlinks']}-->
<div class="box">
<span class="headactions"><img id="forumlinks_img" src="{IMGDIR}/$collapseimg[forumlinks]" alt="" /></span>
<h4>{lang board_links}</h4>
<table summary="{lang board_links}" id="forumlinks" cellpadding="0" cellspacing="0" style="table-layout: fixed; $collapse[forumlinks]">
<!--{loop $_DCACHE['forumlinks'] $flink}-->
<tr>
<td>
<!--{if $flink['type'] == 1}--><img src="$flink[logo]" alt="" class="forumlink_logo" /><!--{/if}-->
$flink[content]
</td>
</tr>
<!--{/loop}-->
</table>
</div>
<!--{/if}-->
<!--{if empty($gid) && ($whosonlinestatus || $maxbdays)}-->
<div class="box" id="online">
<!--{if $whosonlinestatus}-->
<!--{if $detailstatus}-->
<span class="headactions"><a href="$indexname?showoldetails=no#online" title="{lang pm_close}"><img src="{IMGDIR}/collapsed_no.gif" alt="{lang pm_close}" /></a></span>
<h4>
<strong><a href="member.php?action=online">{lang onlinemember}</a></strong>
- <em>$onlinenum</em> {lang onlines}
- <em>$membercount</em> {lang index_members}(<em>$invisiblecount</em> {lang index_invisibles}),
<em>$guestcount</em> {lang index_guests}
- {lang index_mostonlines} <em>$onlineinfo[0]</em> {lang on} <em>$onlineinfo[1]</em>.
</h4>
<!--{else}-->
<span class="headactions"><a href="$indexname?showoldetails=yes#online" class="nobdr"><img src="{IMGDIR}/collapsed_yes.gif" alt="" /></a></span>
<h4>
<strong><a href="member.php?action=online">{lang onlinemember}</a></strong>
- {lang total} <em>$onlinenum</em> {lang onlines}
- {lang index_mostonlines} <em>$onlineinfo[0]</em> {lang on} <em>$onlineinfo[1]</em>.
</h4>
<!--{/if}-->
<!--{else}-->
<h4><strong><a href="member.php?action=online">{lang onlinemember}</a></strong></h4>
<!--{/if}-->
<!--{if $maxbdays}-->
<div id="bdayslist">
<!--{if $_DCACHE['birthdays_index']['todaysbdays']}--><a href="member.php?action=list&type=birthdays">{lang todays_birthdays}</a>: $_DCACHE[birthdays_index][todaysbdays]<!--{else}-->{lang todays_birthdays_none}<!--{/if}-->
</div>
<!--{/if}-->
<!--{if $whosonlinestatus}-->
<dl id="onlinelist">
<dt>$_DCACHE[onlinelist][legend]</dt>
<!--{if $detailstatus}-->
<dd>
<ul class="userlist">
<!--{if $whosonline}-->
<!--{loop $whosonline $key $online}-->
<li title="{lang time}: $online[lastactivity]{LF} {lang action}: $online[action] <!--{if $online['fid']}-->{LF}{lang forum}: $online[fid]<!--{/if}-->">
<img src="images/common/$online[icon]" alt="" />
<!--{if $online['uid']}-->
<a href="space.php?uid=$online[uid]">$online[username]</a>
<!--{else}-->
$online[username]
<!--{/if}-->
</li>
<!--{/loop}-->
<!--{else}-->
<li style="width: auto">{lang online_only_guests}</li>
<!--{/if}-->
</ul>
</dd>
<!--{/if}-->
</dl>
<!--{/if}-->
</div>
<!--{/if}-->
<div class="legend">
<label><img src="{IMGDIR}/forum_new.gif" alt="{lang forum_newposts}" />{lang forum_newposts}</label>
<label><img src="{IMGDIR}/forum.gif" alt="{lang forum_nonewpost}" />{lang forum_nonewpost}</label>
</div>
<!--{if empty($gid) && $announcements}-->
<script type="text/javascript">announcementScroll();</script>
<!--{/if}--> |