DISCUZ首页模板解释

<!--{template 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>
<pre name="code" class="php"><!--通知公告模块end-->
<pre name="code" class="php"><!--讨厌的广告-->
<!--{if empty($gid)}-->
<!--{ad/text/wp a_t}-->
<!--{/if}-->
<pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><!--讨厌的广告-->
<style id="diy_style" type="text/css"></style>
<pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><!--讨厌的广告end-->

<pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><!--首页DIY1-->
<!--{if empty($gid)}-->
<div class="wp">
    <!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
</div>
<!--{/if}-->
<pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><!--首页DIY1end-->

<pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php">

<div id="ct" class="wp cl{if $_G['setting']['forumallowside']} ct2{/if}"><!--{if empty($gid)}--><div id="chart" class="bm bw0 cl"> <!--今日: 0|昨日: 1|帖子: 1|会员: 1|欢迎新会员: admin--> <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_chart]--><div id="diy_chart" class="area"></div><!--[/diy]--><div class="mn"><!--首页四格--><!--{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}--> <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}--> <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> <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}--> <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> <!--{if $_G['setting']['grid']['gridtype']}--> <td valign="top" class="category_l4"> <div class="goodtiebox"> <h4><span class="tit_goodtie"></span>{lang post_digest_thread}</h4> <ul class="category_newlist"> <!--{loop $grids['digest'] $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> <!--{/if}--> </table> </div> </div></div><!-- index four grid end --><!--{/if}-->
<pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><!--首页四格end-->
<!--{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_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}--><!--{hook/index_catlist_top}--><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}--> <!--{if empty($gid) && !empty($forum_favlist)}--> <!--{eval $forumscount = count($forum_favlist);}--> <!--{eval $forumcolumns = $forumscount > 3 ? ($forumscount == 4 ? 4 : 5) : 1;}--> <!--{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_0_img" src="{IMGDIR}/$collapse['collapseimg_0']" title="{lang spread}" alt="{lang spread}" onclick="toggle_collapse('category_0');" /></span> <h2><a href="home.php?mod=space&do=favorite&type=forum">{lang forum_myfav}</a></h2> </div> <div id="category_0" class="bm_c" style="{echo $collapse['category_0']}"> <table cellspacing="0" cellpadding="0" class="fl_tb"> <tr> <!--{eval $favorderid = 0;}--> <!--{loop $forum_favlist $key $favorite}--> <!--{if $favforumlist[$favorite[id]]}--> <!--{eval $forum=$favforumlist[$favorite[id]];}--> <!--{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 $forumcolumns>1}--> <!--{if $favorderid && ($favorderid % $forumcolumns == 0)}--> </tr> <!--{if $favorderid < $forumscount}--> <tr class="fl_row"> <!--{/if}--> <!--{/if}--> <td class="fl_g"{if $forumcolwidth} width="$forumcolwidth"{/if}> <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> <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 $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_favforum_extra $forum[fid]}--> </dl> </td> <!--{eval $favorderid++;}--> <!--{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_favforum_extra $forum[fid]}--> </td> <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}--> <!--{/if}--> <!--{/loop}--> <!--{if ($columnspad = $favorderid % $forumcolumns) > 0}--><!--{echo str_repeat('<td class="fl_g"'.($forumcolwidth ? " width=\"$forumcolwidth\"" : '').'></td>', $forumcolumns - $columnspad);}--><!--{/if}--> </tr> </table> </div></div><!--{ad/intercat/bm a_c/-1}--><!--{/if}-->
<pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><!--这里是重点了-->
<!--循环分区--><!--{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'];}-->
<pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php">               <!--如果板块左浮动展现-->
  <!--{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> <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>
<pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php">             <!--如果板块左浮动展现end-->
<pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php">             <!--如果每个板块占一行-->
  <!--{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> <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}-->
<pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php"><pre name="code" class="php">               <!--如果每个板块占一行end-->
  <!--{/loop}--> $cat['endrows'] </tr> </table> </div></div><!--{ad/intercat/bm a_c/$cat[fid]}--><!--{/loop}--><!--循环分区end--><!--{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><!--{hook/index_middle}--><div class="wp mtn"> <!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]--></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}--> <!--{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> <!--{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}--><!--{template common/footer}-->

参照如下:



论坛首页是大家经常需要改动的一个页面,下面我就给大家分析一下这个页面的结构。
这个页面的静态htm地址为./template/default/forum/discus.htm文件。
首先页面的头部为,引进默认的头部文件代码:<!--{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>


这部分为论坛的公告和nav导航部分。其中公告部分为<divclass="y"></div>中的代码,他做了右浮动,nav导航部分<div class="z"></div>中的一部分。

接下来便是这个页面的主题部分:<div id="ct" />部分了。这个标签中涵盖了论坛首页的大部分内容。

下面我们就来具体的分析下这个标签中的内容,首先出现的代码片段为:

<!--{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}-->

这段代码的具体对应了页面中的:

1.png


有英文意思你就可以大体指导对应的页面元素了,当然你想作弊的话简单的修改下这里面的变量就可以了。

接下来就到了我们论坛最重要的部分了,版块类表展示区,这个区域的内容都包含在,

    <divclass="mn"></div>的div标签中。

以下代码为论坛论坛热点,当后台开启后,此段代码便会显示

<!--{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]">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]">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">为具体的外框的开始

2.png


以下代码是蓝色底纹,版块标题,收缩框,版主展示区域的代码。

<div class="bm_h cl">  
                                        <span class="o">  
                                                <img id="category_$cat[fid]_img" src="{IMGDIR}/$cat[collapseimg]" title="{lang spread}" alt="{lang spread}" />  
                                        </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="$collapse['category_'.$cat[fid]]"></div>每个板块的具体信息是以table框架展示的,根据每行的展示个数,做了不同的展示方式。

这一段内容大体包含了,板块图标,版块名称,今日主题数,今日回复数,最后发表等等等的信息,有时候在做模板的时候经常需要对着些信息做些改动。那你就需要掌握基本的页面技术了。我这里只简单的说一下他们的默认结构为以下代码。

<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}: $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>

接下来便是在线人数和友情链接展示的区域代码:

<div id="online" class="bmoll"></div>,<divclass="bm lk"></div>

这两段代码我们一般不需要修改来我这里就不具体讲解了。

接下来就是侧边栏了。

<div id="sd" class="sd"></div>当我们开启侧边栏的时候他就会显示了。经常有人希望在侧边栏加些东西,这是我们就可以在这个标签底部加一段diy的标签,这样我们就可以diy一些自己想要的东西了。

以上就是这个文件的具体分析,希望对大家能有所帮助!


转载于:https://my.oschina.net/u/1186749/blog/616571

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值