- <!--{subtemplate common/header}-->
- <div id="pt" class="bm cl">
- <!--{if empty($gid) && $announcements}-->
- <div class="y">
- <div id="an">
- <dl class="cl">
- <dt class="z xw1">{lang announcements}: </dt>
- <dd>
- <div id="anc"><ul id="ancl">$announcements</ul></div>
- </dd>
- </dl>
- </div>
- <script type="text/javascript">announcement();</script>
- </div>
- <!--{/if}-->
- <div class="z">
- <a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a><em>»</em><a href="forum.php">{$_G[setting][navs][2][navname]}</a>$navigation
- </div>
- <div class="z"><!--{hook/index_status_extra}--></div>
- </div>
- <!--{if empty($gid)}-->
- <!--{ad/text/wp a_t}-->
- <!--{/if}-->
- <style id="diy_style" type="text/css"></style>
- <!--{if empty($gid)}-->
- <div class="wp">
- <!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
- </div>
- <!--{/if}-->
- <div id="ct" class="wp cl{if $_G['setting']['forumallowside']} ct2{/if}">
- <!--{if empty($gid)}-->
- <div id="chart" class="bm bw0 cl">
- <p class="chart z">{lang index_today}: <em>$todayposts</em><span class="pipe">|</span>{lang index_yesterday}: <em>$postdata[0]</em><span class="pipe">|</span>{lang index_posts}: <em>$posts</em><span class="pipe">|</span>{lang index_members}: <em>$_G['cache']['userstats']['totalmembers']</em><!--{if $_G['setting']['lastmember']}--><span class="pipe">|</span>{lang welcome_new_members}: <em><a href="home.php?mod=space&username={echo rawurlencode($_G['setting']['lastmember'])}" target="_blank" class="xi2">$_G['setting']['lastmember']</a></em><!--{/if}--></p>
- <div class="y">
- <!--{if $_G['uid']}--><a href="home.php?mod=space&uid=$_G['uid']&do=thread&view=me" title="{lang my_posts}" class="xi2">{lang my_posts}</a><!--{/if}--><!--{if !empty($_G['setting']['search']['forum']['status'])}--><!--{if $_G['uid']}--><span class="pipe">|</span><!--{/if}--><a href="search.php?mod=forum&srchfrom=$newthreads&searchsubmit=yes" title="{lang show_newthreads}" class="xi2">{lang show_newthreads}</a><!--{/if}-->
- </div>
- </div>
- <!--{/if}-->
- <div class="fansbar_xh">
- <span id="weather">
- <iframe src="http://m.weather.com.cn/m/pn4/weather.htm?id=101091016T " width="198" height="20" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe>
- </span>
- <h3 class="mrmy"><script src="drc_imgs/js/mrmy.js" type="text/javascript"></script></h3>
- <div class="fansbox">
- <table><tr>
- <td valign="top" style="padding-left:1px;">
- <ul class="tabs">
- <li id="imgbox_1" class="current" onMouseOver="switchTab('imgbox',1,2,'current');"><span>最新图片展示</span></li>
- <li id="imgbox_2" onMouseOver="switchTab('imgbox',2,2,'current');"><span>热门游戏试玩</span></li>
- </ul>
- <div id="imgbox_c_1" style="display:block;" class="imagebody">
- <!--[diy=fansbar_n1]--><div id="fansbar_n1" class="area"></div><!--[/diy]-->
- </div>
- <div id="imgbox_c_2" style="display:none;" class="imagebody">
- <!--[diy=fansbar_n0]--><div id="fansbar_n0" class="area"></div><!--[/diy]-->
- </div>
- </td>
- <td valign="top" style="width:100%; padding:0 6px;;">
- <ul class="tabs">
- <li id="indexbox_1" class="current" onMouseOver="switchTab('indexbox',1,4,'current');"><span>最新主题</span></li>
- <li id="indexbox_2" onMouseOver="switchTab('indexbox',2,4,'current');"><span>最新回复</span></li>
- <li id="indexbox_3" onMouseOver="switchTab('indexbox',3,4,'current');"><span>热门主题</span></li>
- <li id="indexbox_4" onMouseOver="switchTab('indexbox',4,4,'current');"><span>最新精华</span></li></ul>
- <div class="threadbody">
- <div id="indexbox_c_1" style="display:block;" class="threadbox threadprefix">
- <ul>
- <!--[diy=fansbar_n2]--><div id="fansbar_n2" class="area"></div><!--[/diy]-->
- </ul></div>
- <div id="indexbox_c_2" style="display:none;" class="threadbox threadprefix">
- <ul>
- <!--[diy=fansbar_n3]--><div id="fansbar_n3" class="area"></div><!--[/diy]-->
- </ul></div>
- <div id="indexbox_c_3" style="display:none;" class="threadbox threadprefix">
- <ul>
- <!--[diy=fansbar_n4]--><div id="fansbar_n4" class="area"></div><!--[/diy]-->
- </ul></div>
- <div id="indexbox_c_4" style="display:none;" class="threadbox threadprefix">
- <ul>
- <!--[diy=fansbar_n5]--><div id="fansbar_n5" class="area"></div><!--[/diy]-->
- </ul></div>
- </div>
- </td>
- <td valign="top" style="padding-right:1px;">
- <ul class="tabs">
- <li id="ranklist_1" class="current" onMouseOver="switchTab('ranklist',1,2,'current');"><span>今日明星</span></li>
- <li id="ranklist_2" onMouseOver="switchTab('ranklist',2,2,'current');"><span>活跃会员</span></li>
- </ul>
- <div class="rankbody">
- <div id="ranklist_c_1" style="display:block;" class="rankbox rankstar">
- <!--[diy=fansbar_n6]--><div id="fansbar_n6" class="area"></div><!--[/diy]-->
- </div>
- <div id="ranklist_c_2" style="display:none;" class="threadbox rankprefix">
- <ul>
- <!--[diy=fansbar_n7]--><div id="fansbar_n7" class="area"></div><!--[/diy]-->
- </ul>
- </div></div>
- </td>
- </tr></table>
- </div>
- </div>
- <div class="mn2">
- <!--{hook/index_top}-->
- <!--{if !empty($_G['cache']['heats']['message'])}-->
- <div class="bm">
- <div class="bm_h cl">
- <h2>{lang hotthreads_forum}</h2>
- </div>
- <div class="bm_c2 cl">
- <div class="heat z">
- <!--{loop $_G['cache']['heats']['message'] $data}-->
- <dl class="xld">
- <dt><!--{if $_G['adminid'] == 1}--><a class="d" href="forum.php?mod=misc&action=removeindexheats&tid=$data[tid]" onclick="return removeindexheats()">delete</a><!--{/if}-->
- <a href="forum.php?mod=viewthread&tid=$data[tid]" target="_blank" class="xi2">$data[subject]</a></dt>
- <dd>$data[message]</dd>
- </dl>
- <!--{/loop}-->
- </div>
- <ul class="xl xl1 heatl">
- <!--{loop $_G['cache']['heats']['subject'] $data}-->
- <li><!--{if $_G['adminid'] == 1}--><a class="d" href="forum.php?mod=misc&action=removeindexheats&tid=$data[tid]" onclick="return removeindexheats()">delete</a><!--{/if}-->· <a href="forum.php?mod=viewthread&tid=$data[tid]" target="_blank" class="xi2">$data[subject]</a></li>
- <!--{/loop}-->
- </ul>
- </div>
- </div>
- <!--{/if}-->
- <div class="fl bm">
- <!--{loop $catlist $key $cat}-->
- <div class="bm bmw {if $cat['forumcolumns']} flg{/if} cl">
- <div class="bm_h cl">
- <span class="o">
- <img id="category_$cat[fid]_img" src="{IMGDIR}/$cat[collapseimg]" title="{lang spread}" alt="{lang spread}" onclick="toggle_collapse('category_$cat[fid]');" />
- </span>
- <!--{if $cat['moderators']}--><span class="y">{lang forum_category_modedby}: $cat[moderators]</span><!--{/if}-->
- <!--{eval $caturl = !empty($cat['domain']) && !empty($_G['setting']['domain']['root']['forum']) ? 'http://'.$cat['domain'].'.'.$_G['setting']['domain']['root']['forum'] : '';}-->
- <h2><a href="{if !empty($caturl)}$caturl{else}forum.php?gid=$cat[fid]{/if}" style="{if $cat[extra][namecolor]}color: {$cat[extra][namecolor]};{/if}">$cat[name]</a></h2>
- </div>
- <div id="category_$cat[fid]" class="bm_c2" style="$collapse['category_'.$cat[fid]]">
- <table cellspacing="0" cellpadding="0" class="fl_tb">
- <tr>
- <!--{loop $cat[forums] $forumid}-->
- <!--{eval $forum=$forumlist[$forumid];}-->
- <!--{eval $forumurl = !empty($forum['domain']) && !empty($_G['setting']['domain']['root']['forum']) ? 'http://'.$forum['domain'].'.'.$_G['setting']['domain']['root']['forum'] : 'forum.php?mod=forumdisplay&fid='.$forum['fid'];}-->
- <!--{if $cat['forumcolumns']}-->
- <!--{if $forum['orderid'] && ($forum['orderid'] % $cat['forumcolumns'] == 0)}-->
- </tr>
- <!--{if $forum['orderid'] < $cat['forumscount']}-->
- <tr class="fl_row">
- <!--{/if}-->
- <!--{/if}-->
- <td class="fl_g" width="$cat[forumcolwidth]">
- <dl{if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="margin-left: {$forum[extra][iconwidth]}px;"{/if}>
- <dt><a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}{if $forum[extra][namecolor]} style="color: {$forum[extra][namecolor]};"{/if}>$forum[name]</a><!--{if $forum[todayposts] && !$forum['redirect']}--><em class="xw01 xi1" title="{lang forum_todayposts}"> ($forum[todayposts])</em><!--{/if}--></dt>
- <!--{if empty($forum[redirect])}--><dd><em>{lang forum_threads}: $forum[threads]</em>, <em>{lang forum_posts}: $forum[posts]</em></dd><!--{/if}-->
- <dd>
- <!--{if $forum['permission'] == 1}-->
- {lang private_forum}
- <!--{else}-->
- <!--{if $forum['redirect']}-->
- <a href="$forumurl" class="xi2">{lang url_link}</a>
- <!--{elseif is_array($forum['lastpost'])}-->
- <!--{if $cat['forumcolumns'] < 3}-->
- <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($forum[lastpost][subject], 30)}--></a> <cite>$forum[lastpost][dateline] <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
- <!--{else}-->
- <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{lang forum_lastpost}: $forum[lastpost][dateline]</a>
- <!--{/if}-->
- <!--{else}-->
- {lang never}
- <!--{/if}-->
- <!--{/if}-->
- </dd>
- </dl>
- </td>
- <!--{else}-->
- <td class="fl_icn" {if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="width: {$forum[extra][iconwidth]}px;"{/if}>
- <!--{if $forum[icon]}-->
- $forum[icon]
- <!--{else}-->
- <a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}><img src="{IMGDIR}/forum{if $forum[folder]}_new{/if}.gif" alt="$forum[name]" /></a>
- <!--{/if}-->
- </td>
- <td>
- <h2><a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}{if $forum[extra][namecolor]} style="color: {$forum[extra][namecolor]};"{/if}>$forum[name]</a><!--{if $forum[todayposts] && !$forum['redirect']}--><em class="xs01 xi1" title="{lang forum_todayposts}"> ($forum[todayposts])</em><!--{/if}--></h2>
- <!--{if $forum[description]}--><p class="xg2">$forum[description]</p><!--{/if}-->
- <!--{if $forum['subforums']}--><p>{lang forum_subforums}: $forum['subforums']</p><!--{/if}-->
- <!--{if $forum['moderators']}--><p>{lang forum_moderators}: <span class="xi2">$forum[moderators]</span></p><!--{/if}-->
- </td>
- </tr>
- <tr class="fl_row">
- <!--{/if}-->
- <!--{/loop}-->
- $cat['endrows']
- </tr>
- </table>
- </div>
- </div>
- <!--{ad/intercat/bm a_c/$cat[fid]}-->
- <!--{/loop}-->
- </div>
- <!--{hook/index_middle}-->
- <div class="wp mtn">
- <!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]-->
- </div>
- <!--{hook/index_bottom}-->
- </div>
- <div id="sd" class="sd2">
- <div class="drag">
- <!--[diy=diy_orz_post]--><div id="diy_orz_post" class="area"></div><!--[/diy]-->
- </div>
- </div>
- <!--{if $_G['setting']['forumallowside']}-->
- <div id="sd" class="sd2">
- <!--{hook/index_side_top}-->
- <div class="drag">
- <!--[diy=diy2]--><div id="diy2" class="area"></div><!--[/diy]-->
- </div>
- <!--{hook/index_side_bottom}-->
- </div>
- <!--{/if}-->
- <div id="content_search">
- <!--{subtemplate common/pubsearchform}-->
- </div>
- <!---->
- <!--{if empty($gid) && ($_G['cache']['forumlinks'][0] || $_G['cache']['forumlinks'][1] || $_G['cache']['forumlinks'][2])}-->
- <div class="sdlk lk">
- <div id="category_lk" class="bm_c ptm">
- <!--{if $_G['cache']['forumlinks'][0]}-->
- <ul class="m mbn cl">$_G['cache']['forumlinks'][0]</ul>
- <!--{/if}-->
- <!--{if $_G['cache']['forumlinks'][1]}-->
- <div class="mbn cl">
- $_G['cache']['forumlinks'][1]
- </div>
- <!--{/if}-->
- <!--{if $_G['cache']['forumlinks'][2]}-->
- <ul class="x mbm cl">
- $_G['cache']['forumlinks'][2]
- </ul>
- <!--{/if}-->
- </div>
- </div>
- <!--{/if}-->
- </div>
- <!--{if empty($gid) && $_G['setting']['whosonlinestatus']}-->
- <div id="online" class="bm oll">
- <div class="bm_h">
- <!--{if $detailstatus}-->
- <span class="o"><a href="forum.php?showoldetails=no#online" title="{lang spread}"><img src="{IMGDIR}/collapsed_no.gif" alt="{lang spread}" /></a></span>
- <h3>
- <strong><a href="home.php?mod=space&do=friend&view=online&type=member">{lang onlinemember}</a></strong>
- <span class="xs1">- <strong>$onlinenum</strong> {lang onlines}
- - <strong>$membercount</strong> {lang index_members}(<strong>$invisiblecount</strong> {lang index_invisibles}),
- <strong>$guestcount</strong> {lang index_guests}
- - {lang index_mostonlines} <strong>$onlineinfo[0]</strong> {lang on} <strong>$onlineinfo[1]</strong>.</span>
- </h3>
- <!--{else}-->
- <span class="o"><a href="forum.php?showoldetails=yes#online" title="{lang spread}"><img src="{IMGDIR}/collapsed_yes.gif" alt="{lang spread}" /></a></span>
- <h3>
- <strong><a href="home.php?mod=space&do=friend&view=online&type=member">{lang onlinemember}</a></strong>
- <span class="xs1">- {lang total} <strong>$onlinenum</strong> {lang onlines}
- - {lang index_mostonlines} <strong>$onlineinfo[0]</strong> {lang on} <strong>$onlineinfo[1]</strong>.</span>
- </h3>
- <!--{/if}-->
- </div>
- <!--{if $_G['setting']['whosonlinestatus'] && $detailstatus}-->
- <dl id="onlinelist" class="bm_c">
- <dt class="ptm pbm bbda">$_G[cache][onlinelist][legend]</dt>
- <!--{if $detailstatus}-->
- <dd class="ptm pbm">
- <ul class="cl">
- <!--{if $whosonline}-->
- <!--{loop $whosonline $key $online}-->
- <li title="{lang time}: $online[lastactivity]">
- <img src="{STATICURL}image/common/$online[icon]" alt="icon" />
- <!--{if $online['uid']}-->
- <a href="home.php?mod=space&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}-->
- <!--{subtemplate common/footer}-->
复制代码
论坛的首页不显示论坛的版本图标
使用默认的就显示。说明是模版的问题。
但是我不懂代码。希望懂得朋友们能帮我看一下。谢谢了。
分不多。希望有人能帮我一下
网址 http://bbs.xilinghu.com
可以看一下。 如果一排一个板块显示。就显示图标。如果一排三个 就不显示图标了。我也不懂代码。帮帮忙看看吧
谢谢了!
|