|
|
下面这段的主要意思是:如果没有板块ID并且设置了站点公告,就显示站点公告 展示面包屑导航
- <!--{template common/header}-->
- <!-- 引入头部文件 -->
- <!--
- 如果没有板块ID并且设置了站点公告,就显示站点公告
- {lang announcements}:公告
- $announcements:展示站点公告标题带超链接,以及发布站点公告的时间
- {lang homepage}:首页
- $_G[setting][bbname]:站点名称
- {$_G[setting][navs][2][navname]}:论坛(即当前所属导航栏目)
- $navigation:面包屑导航
- -->
- <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>
复制代码
下面这段的主要意思是在头部放置一个广告,和一个DIY文件- <!--
- 这个地方是一个广告
- 具体设置为:后台-运营-站点广告-门户/论坛/群组/空间 格子广告
- -->
- <!--{if empty($gid)}-->
- <!--{ad/text/wp a_t}-->
- <!--{/if}-->
- <style id="diy_style" type="text/css"></style>
- <!-- 这个地方开始放置DIY文件 -->
- <!--{if empty($gid)}-->
- <div class="wp">
- <!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
- </div>
- <!--{/if}-->
复制代码
下面这段主要显示了今日: 0|昨日: 1|帖子: 1|会员: 1|欢迎新会员: admin,以及左侧我的帖子,最新回复字样- <!--
- $_G['setting']['forumallowside']:是否开启侧边栏(具体设置:首台-界面-界面设置-论坛首页-选择显示边栏)
- 如果没有板块ID即板块不存在则显示是今日: 0|昨日: 1|帖子: 1|会员: 1|欢迎新会员: admin
- {lang index_today}:今日
- $todayposts:今天的发帖量
- {lang index_yesterday}:昨日
- $postdata[0]:昨天的发帖量
- {lang index_posts}:帖子
- $posts:论坛发帖的总量
- {lang index_members}:会员
- $_G['cache']['userstats']['totalmembers']:论坛会员数量
- {lang welcome_new_members}:欢迎新会员
- $_G['cache']['userstats']['newsetuser']:新注册的会员名
- $_G['uid']:当前用的uid值
- {lang my_posts}:我的帖子
- {lang show_newthreads}:最新回复
- 如果有新会员注册,则显示新会员名字
- $_G['uid']:当前用的uid值,如果是登录状态,则显示我的帖子字样
- 如果用户的情况下会显示|并且显示{lang show_newthreads}最新回复
- -->
- <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['cache']['userstats']['newsetuser']}--><span class="pipe">|</span>{lang welcome_new_members}: <em><a href="home.php?mod=space&username={echo rawurlencode($_G['cache']['userstats']['newsetuser'])}" target="_blank" class="xi2">$_G['cache']['userstats']['newsetuser']</a></em><!--{/if}--></p>
- <div class="y">
- <!--{hook/index_nav_extra}-->
- <!--{if $_G['uid']}--><a href="forum.php?mod=guide&view=my" 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="forum.php?mod=guide&view=new" title="{lang show_newthreads}" class="xi2">{lang show_newthreads}</a><!--{/if}-->
- </div>
- </div>
- <!--{/if}-->
- <!-- 这个地方放置一个DIY文件 -->
- <!--[diy=diy_chart]--><div id="diy_chart" class="area"></div><!--[/diy]-->
复制代码
下面是首页四格的主要展现形式,最新主题,最新回复,热帖,精华帖子的展现形式基本一样- <!--{if !$_G['setting']['grid']['gridtype']}-->展示风格图文并茂
- <!--{if $_G['setting']['grid']['gridtype']}-->展示风格简洁文字
复制代码- <div class="mn">
- <!--
- $_G['setting']['grid']['showgrid']:如果在后台开启了首页四格
- $_G['setting']['grid']['gridtype']:如果有数据,即:有图片
- {lang latest_images}:最新图片
- {lang collection_lastthread}:最新主题
- {lang show_newthreads}:最新回复
- {lang hot_thread}:热帖
- {lang post_digest_thread}:精华帖子
- -->
- <!--{if !empty($_G['setting']['grid']['showgrid'])}-->
- <!-- index four grid -->
- <div class="fl bm">
- <div class="bm bmw cl">
- <div id="category_grid" class="bm_c" >
- <table cellspacing="0" cellpadding="0"><tr>
- <!--{if !$_G['setting']['grid']['gridtype']}-->
- <td valign="top" class="category_l1">
- <div class="newimgbox">
- <h4><span class="tit_newimg"></span>{lang latest_images}</h4>
- <div class="module cl slidebox_grid" style="width:218px">
- <script type="text/javascript">
- var slideSpeed = 5000;
- var slideImgsize = [218,200];
- var slideBorderColor = '{$_G['style']['specialborder']}';
- var slideBgColor = '{$_G['style']['commonbg']}';
- var slideImgs = new Array();
- var slideImgLinks = new Array();
- var slideImgTexts = new Array();
- var slideSwitchColor = '{$_G['style']['tabletext']}';
- var slideSwitchbgColor = '{$_G['style']['commonbg']}';
- var slideSwitchHiColor = '{$_G['style']['specialborder']}';
- {eval $k = 1;}
- <!--{loop $grids['slide'] $stid $svalue}-->
- slideImgs[<!--{echo $k}-->] = '$svalue[image]';
- slideImgLinks[<!--{echo $k}-->] = '{$svalue[url]}';
- slideImgTexts[<!--{echo $k}-->] = '$svalue[subject]';
- {eval $k++;}
- <!--{/loop}-->
- </script>
- <script language="javascript" type="text/javascript" src="{$_G[setting][jspath]}forum_slide.js?{VERHASH}"></script>
- </div>
- </div>
- </td>
- <!--{/if}-->
- <!--
- 下面是最新主题
- $grids['newthread']是一个数组里面包含了最新发布的主题标题,作者还有发布时间等等
- -->
- <td valign="top" class="category_l2">
- <div class="subjectbox">
- <h4><span class="tit_subject"></span>{lang collection_lastthread}</h4>
- <ul class="category_newlist">
- <!--{loop $grids['newthread'] $thread}-->
- <!-- 如果没有最新主题的时候会显示下面的 -->
- <!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
- <!--{eval $thread[tid]=$thread[closed];}-->
- <!--{/if}-->
- <!--
- 下面三个if判断意思依次是
- 是否显示主题高亮
- 是否显示帖子信息
- 是否在新窗口打开
- -->
- <li><a href="forum.php?mod=viewthread&tid=$thread[tid]&extra=$extra"
- {if $thread['highlight']} $thread['highlight']{/if}
- {if $_G['setting']['grid']['showtips']}
- tip="{lang title}: <strong>$thread[oldsubject]</strong><br/>{lang author}: $thread[author] ($thread[dateline])<br/>{lang show}/{lang reply}: $thread[views]/$thread[replies]" onmouseover="showTip(this)"{else} title="$thread[oldsubject]"
- {/if}
- {if $_G['setting']['grid']['targetblank']} target="_blank"{/if}>
- $thread[subject]
- </a></li>
- <!--{/loop}-->
- </ul>
- </div>
- </td>
复制代码- <!--
- 下面这段是最新回复
- $grids['newreply']是一个数组,里面包含了最新回复的文章标题,回复时间,以及作者等等
- -->
- <td valign="top" class="category_l3">
- <div class="replaybox">
- <h4><span class="tit_replay"></span>{lang show_newthreads}</h4>
- <ul class="category_newlist">
- <!--{loop $grids['newreply'] $thread}-->
- <!-- 如果没有回复的时候会显示下面的 -->
- <!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
- <!--{eval $thread[tid]=$thread[closed];}-->
- <!--{/if}-->
- <!--
- 下面三个if判断意思依次是
- 是否显示主题高亮
- 是否显示帖子信息
- 是否在新窗口打开
- -->
- <li><a href="forum.php?mod=redirect&tid=$thread[tid]&goto=lastpost#lastpost"
- {if $thread['highlight']} $thread['highlight']{/if}
- {if $_G['setting']['grid']['showtips']}tip="{lang title}: <strong>$thread[oldsubject]</strong><br/>{lang author}: $thread[author] ($thread[dateline])<br/>{lang show}/{lang reply}: $thread[views]/$thread[replies]" onmouseover="showTip(this)"{else} title="$thread[oldsubject]"{/if}
- {if $_G['setting']['grid']['targetblank']} target="_blank"{/if}>$thread[subject]</a></li>
- <!--{/loop}-->
- </ul>
- </div>
- </td>
- <td valign="top" class="category_l3">
- <div class="hottiebox">
- <h4><span class="tit_hottie"></span>{lang hot_thread}</h4>
- <ul class="category_newlist">
- <!--{loop $grids['hot'] $thread}-->
- <!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
- <!--{eval $thread[tid]=$thread[closed];}-->
- <!--{/if}-->
- <li><a href="forum.php?mod=viewthread&tid=$thread[tid]&extra=$extra"{if $thread['highlight']} $thread['highlight']{/if}{if $_G['setting']['grid']['showtips']} tip="{lang title}: <strong>$thread[oldsubject]</strong><br/>{lang author}: $thread[author] ($thread[dateline])<br/>{lang show}/{lang reply}: $thread[views]/$thread[replies]" onmouseover="showTip(this)"{else} title="$thread[oldsubject]"{/if}{if $_G['setting']['grid']['targetblank']} target="_blank"{/if}>$thread[subject]</a></li>
- <!--{/loop}-->
- </ul>
- </div>
- </td>
复制代码
下面这句是在后台设置开启了论坛热点的情况下会显示- <!--
- $_G['cache']['heats']['message']:如果后台开启了论坛热点
- {lang hotthreads_forum}:论坛热点
- $_G['cache']['heats']['message']是一个数组里面包含了热点帖子ID 发布时间 帖子标题 帖子描述 tag标签等等;
- $data[subject]:热点文章标题
- $data[subject]:热点描述
- -->
- <!--{if !empty($_G['cache']['heats']['message'])}-->
- <div class="bm">
- <div class="bm_h cl">
- <h2>{lang hotthreads_forum}</h2>
- </div>
- <div class="bm_c 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}-->
复制代码
下面我订阅的专辑显示界面
- <!--
- 下面我订阅的专辑显示界面
- {lang my_order_collection}:我订阅的专辑
- -->
- <!--
- $_G[setting][anonymoustext]:匿名
- {lang forum_threads}主题
- {lang collection_commentnum}: 评论
- {lang forum_lastpost}: 最后发表
- {lang never}: 从未
- -->
- <div class="fl bm">
- <!--{if !empty($collectiondata['follows'])}-->
- <!--{eval $forumscount = count($collectiondata['follows']);}-->
- <!--{eval $forumcolumns = 4;}-->
- <!--{eval $forumcolwidth = (floor(100 / $forumcolumns) - 0.1).'%';}-->
- <div class="bm bmw {if $forumcolumns} flg{/if} cl">
- <div class="bm_h cl">
- <span class="o">
- <img id="category_-1_img" src="{IMGDIR}/$collapse['collapseimg_-1']" title="{lang spread}" alt="{lang spread}" onclick="toggle_collapse('category_-1');" />
- </span>
- <h2><a href="forum.php?mod=collection&op=my">{lang my_order_collection}</a></h2>
- </div>
- <div id="category_-1" class="bm_c" style="{echo $collapse['category_-1']}">
- <table cellspacing="0" cellpadding="0" class="fl_tb">
- <tr>
- <!--{eval $ctorderid = 0;}-->
- <!--{loop $collectiondata['follows'] $key $colletion}-->
- <!--{if $ctorderid && ($ctorderid % $forumcolumns == 0)}-->
- </tr>
- <!--{if $ctorderid < $forumscount}-->
- <tr class="fl_row">
- <!--{/if}-->
- <!--{/if}-->
- <td class="fl_g"{if $forumcolwidth} width="$forumcolwidth"{/if}>
- <div class="fl_icn_g">
- <a href="forum.php?mod=collection&action=view&ctid={$colletion[ctid]}" target="_blank"><img src="{IMGDIR}/forum{if $followcollections[$key]['lastvisit'] < $colletion['lastupdate']}_new{/if}.gif" alt="$colletion[name]" /></a>
- </div>
- <dl>
- <dt><a href="forum.php?mod=collection&action=view&ctid={$colletion[ctid]}">$colletion[name]</a></dt>
- <dd><em>{lang forum_threads}: <!--{echo dnumber($colletion[threadnum])}--></em>, <em>{lang collection_commentnum}: <!--{echo dnumber($colletion[commentnum])}--></em></dd>
- <dd>
- <!--{if $colletion['lastpost']}-->
- <!--{if $forumcolumns < 3}-->
- <a href="forum.php?mod=redirect&tid=$colletion[lastpost]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($colletion[lastsubject], 30)}--></a> <cite><!--{date($colletion[lastposttime])}--> <!--{if $colletion['lastposter']}-->$colletion['lastposter']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
- <!--{else}-->
- <a href="forum.php?mod=redirect&tid=$colletion[lastpost]&goto=lastpost#lastpost">{lang forum_lastpost}: <!--{date($colletion[lastposttime])}--></a>
- <!--{/if}-->
- <!--{else}-->
- {lang never}
- <!--{/if}-->
- </dd>
- <!--{hook/index_followcollection_extra $colletion[ctid]}-->
- </dl>
- </td>
- <!--{eval $ctorderid++;}-->
- <!--{/loop}-->
- <!--{if ($columnspad = $ctorderid % $forumcolumns) > 0}--><!--{echo str_repeat('<td class="fl_g"'.($forumcolwidth ? " width="$forumcolwidth"" : '').'></td>', $forumcolumns - $columnspad);}--><!--{/if}-->
- </tr>
- </table>
- </div>
- </div>
- <!--{/if}-->
复制代码
下面这段显示的是我收藏的版块和私密版块,需要再后台设置
下面显示各个板块的详细信息,主要有允许横排,和不允许横排的情况,可以在后台设置
第一种情况允许横排显示
- <!--
- 下面这段就开始显示各版块的详细信息了。
- $catlist是一个数组,里面包含各版块的名字,还有分区版主等等。
- {lang spread}:收起/展开
- {IMGDIR}/$cat[collapseimg]:收起和展开的图标collapsed_no.gif为收起collapsed_yes.gif为展开图标
- $cat['moderators']:分区版主
- 如果有分区版主的话,就显示分区版主
- $cat[name]:大区的名字
- $cat[forums]:是一个数组,里面包含了每一个大区下分类版块的id,也就是fid
- $forum:是一个数组,里面包含了当前大区下每一个版块的名字,以及发帖量,最后一篇发帖文章还有发帖时间。
- $cat['forumcolumns']: 如果下级子版块横排数为0则按下面版式来显示版块列表,横排数可在后台设置的
- $forum[icon]:版块图标
- -->
- <!--{loop $catlist $key $cat}-->
- <!--{hook/index_catlist $cat[fid]}-->
- <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_c" style="{echo $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]">
- <div class="fl_icn_g"{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}-->
- </div>
- <!--
- $forum[todayposts]:本版块今天发帖的数量,
- {lang forum_threads}:主题
- $forum[threads]:所有主题的数量
- {lang forum_posts}:帖数
- $forum[posts]:所有贴数的数量
- {lang private_forum}:私密版块
- 如果版块设置了权限,就会显示私密权限
- 如果设置的url转发则显示链接到外部地址
- $forum['lastpost']:是一个数组,也就是证明有最后回复的时候
- $cat['forumcolumns'] < 3:如果在后台设置论坛水平横排设置小于3的时候
- $forum[lastpost][dateline]:最后发表时间
- $forum['lastpost']['author']:最后发表的作者
- $_G[setting][anonymoustext]:后台可以设置是否允许匿名发帖
- {lang forum_lastpost}:最后发表
- {lang never}:从未
- -->
- <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="xw0 xi1" title="{lang forum_todayposts}"> ($forum[todayposts])</em><!--{/if}--></dt>
- <!--{if empty($forum[redirect])}--><dd><em>{lang forum_threads}: <!--{echo dnumber($forum[threads])}--></em>, <em>{lang forum_posts}: <!--{echo dnumber($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>
- <!--{hook/index_forum_extra $forum[fid]}-->
- </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="xw0 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}-->
- <!--{hook/index_forum_extra $forum[fid]}-->
- </td>
- <!--
- 下面这一段主要显示了每个版块下的发帖量,展示形式如9 / 13 8 / 10
- -->
- <td class="fl_i">
- <!--{if empty($forum[redirect])}--><span class="xi2"><!--{echo dnumber($forum[threads])}--></span><span class="xg1"> / <!--{echo dnumber($forum[posts])}--></span><!--{/if}-->
- </td>
- <!--
- 下面这段主要是显示最后发表的标题带连接,发表时间以及发表作者名,如果没有发表,则显示从未
- -->
- <td class="fl_by">
- <div>
- <!--{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'])}-->
- <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}-->
- {lang never}
- <!--{/if}-->
- <!--{/if}-->
- </div>
- </td>
- </tr>
- <tr class="fl_row">
- <!--{/if}-->
- <!--{/loop}-->
- $cat['endrows']
- </tr>
- </table>
- </div>
- </div>
复制代码
下面这一块显示的是淘专辑
- <!--
- 下面这一块显示的是淘专辑
- {lang recommend_collection}:淘专辑推荐
- {lang forum_threads}:主题
- {lang forum_lastpost}:最后发表
- -->
-
- <!--{if !empty($collectiondata['data'])}-->
- <!--{eval $forumscount = count($collectiondata['data']);}-->
- <!--{eval $forumcolumns = 4;}-->
- <!--{eval $forumcolwidth = (floor(100 / $forumcolumns) - 0.1).'%';}-->
- <div class="bm bmw {if $forumcolumns} flg{/if} cl">
- <div class="bm_h cl">
- <span class="o">
- <img id="category_-2_img" src="{IMGDIR}/$collapse['collapseimg_-2']" title="{lang spread}" alt="{lang spread}" onclick="toggle_collapse('category_-2');" />
- </span>
- <h2><a href="forum.php?mod=collection">{lang recommend_collection}</a></h2>
- </div>
- <div id="category_-2" class="bm_c" style="{echo $collapse['category_-2']}">
- <table cellspacing="0" cellpadding="0" class="fl_tb">
- <tr>
- <!--{eval $ctorderid = 0;}-->
- <!--{loop $collectiondata['data'] $key $colletion}-->
- <!--{if $ctorderid && ($ctorderid % $forumcolumns == 0)}-->
- </tr>
- <!--{if $ctorderid < $forumscount}-->
- <tr class="fl_row">
- <!--{/if}-->
- <!--{/if}-->
- <td class="fl_g"{if $forumcolwidth} width="$forumcolwidth"{/if}>
- <div class="fl_icn_g">
- <a href="forum.php?mod=collection&action=view&ctid={$colletion[ctid]}" target="_blank"><img src="{IMGDIR}/forum.gif" alt="$colletion[name]" /></a>
- </div>
- <dl>
- <dt><a href="forum.php?mod=collection&action=view&ctid={$colletion[ctid]}">$colletion[name]</a></dt>
- <dd><em>{lang forum_threads}: <!--{echo dnumber($colletion[threadnum])}--></em>, <em>{lang collection_commentnum}: <!--{echo dnumber($colletion[commentnum])}--></em></dd>
- <dd>
- <!--{if $colletion['lastpost']}-->
- <!--{if $forumcolumns < 3}-->
- <a href="forum.php?mod=redirect&tid=$colletion[lastpost]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($colletion[lastsubject], 30)}--></a> <cite><!--{date($colletion[lastposttime])}--> <!--{if $colletion['lastposter']}-->$colletion['lastposter']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
- <!--{else}-->
- <a href="forum.php?mod=redirect&tid=$colletion[lastpost]&goto=lastpost#lastpost">{lang forum_lastpost}: <!--{date($colletion[lastposttime])}--></a>
- <!--{/if}-->
- <!--{else}-->
- {lang never}
- <!--{/if}-->
- </dd>
- <!--{hook/index_datacollection_extra $colletion[ctid]}-->
- </dl>
- </td>
- <!--{eval $ctorderid++;}-->
- <!--{/loop}-->
- <!--{if ($columnspad = $ctorderid % $forumcolumns) > 0}--><!--{echo str_repeat('<td class="fl_g"'.($forumcolwidth ? " width="$forumcolwidth"" : '').'></td>', $forumcolumns - $columnspad);}--><!--{/if}-->
- </tr>
- </table>
- </div>
- </div>
- <!--{/if}-->
- </div>
复制代码
下面这段的基本展现形式:在线会员 - 总计 2 人在线 - 最高记录是 5 于 2014-11-15.
- <!--
- 下面这段的基本展现形式:在线会员 - 总计 2 人在线 - 最高记录是 5 于 2014-11-15.
- {lang onlinemember}:在线会员
- {lang onlines}:人在线
- {lang index_guests}:位游客
- {lang index_mostonlines}:最高记录是
- {lang on}:于
- -->
- <!--{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}-->
- <!--{if empty($_G['setting']['sessionclose'])}-->
- <span class="o"><a href="forum.php?showoldetails=yes#online" title="{lang spread}"><img src="{IMGDIR}/collapsed_yes.gif" alt="{lang spread}" /></a></span>
- <!--{/if}-->
- <h3>
- <strong>
- <!--{if !empty($_G['setting']['whosonlinestatus'])}-->
- {lang onlinemember}
- <!--{else}-->
- <a href="home.php?mod=space&do=friend&view=online&type=member">{lang onlinemember}</a>
- <!--{/if}-->
- </strong>
- <span class="xs1">- {lang total} <strong>$onlinenum</strong> {lang onlines}
- <!--{if $membercount}-->- <strong>$membercount</strong> {lang index_members},<strong>$guestcount</strong> {lang index_guests}<!--{/if}-->
- - {lang index_mostonlines} <strong>$onlineinfo[0]</strong> {lang on} <strong>$onlineinfo[1]</strong>.</span>
- </h3>
- <!--{/if}-->
- </div>
复制代码
以下会显示当前在线会员
- <!--
- 以下会显示当前在线会员
- lang online_only_guests:
- -->
- <!--{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}-->
复制代码
以下这个地方显示友情连接
- <!-- 以下这个地方显示友情连接 -->
- <!--{if empty($gid) && ($_G['cache']['forumlinks'][0] || $_G['cache']['forumlinks'][1] || $_G['cache']['forumlinks'][2])}-->
- <div class="bm 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}-->
- <!--{hook/index_bottom}-->
- </div>
复制代码
一下的主要意思是如果开启了侧边栏会显示...
如果是管理员身份,会显示提示更新信息
导航固定浮动的效果,后台可以设置开启关闭
引入底部文件
- <!--
- 如果开启了侧边栏
- -->
- <!--{if $_G['setting']['forumallowside']}-->
- <div id="sd" class="sd">
- <!--{hook/index_side_top}-->
- <div class="drag">
- <!--[diy=diy2]--><div id="diy2" class="area"></div><!--[/diy]-->
- </div>
- <!--{hook/index_side_bottom}-->
- </div>
- <!--{/if}-->
- </div>
- <!-- 如果是管理员身份,会显示提示更新信息 -->
- <!--{if $_G['group']['radminid'] == 1}-->
- <!--{eval helper_manyou::checkupdate();}-->
- <!--{/if}-->
- <!-- 导航固定浮动的效果,后台可以设置开启关闭 -->
- <!--{if empty($_G['setting']['disfixednv_forumindex']) }--><script>fixed_top_nv();</script><!--{/if}-->
- <!-- 引入footer文件 -->
- <!--{template common/footer}-->
复制代码
|
|