zoukankan      html  css  js  c++  java
  • x2.5 discuz.htm代码调用解说(第一讲)

    1. <!--{subtemplate common/header}-->

    复制代码调用 common/header.htm 头部文件

    1. <div id="pt" class="bm cl">
    2.         <!--{if empty($gid) && $announcements}-->
    3.         <div class="y">
    4.                 <div id="an">
    5.                         <dl class="cl">
    6.                                 <dt class="z xw1">{lang announcements}: </dt>
    7.                                 <dd>
    8.                                         <div id="anc"><ul id="ancl">$announcements</ul></div>
    9.                                 </dd>
    10.                         </dl>
    11.                 </div>
    12.                 <script type="text/javascript">announcement();</script>
    13.         </div>
    14.         <!--{/if}-->
    复制代码

    调用 后台 运营 站点功能 所有的公告标题及日期
    而if表示有公告才显示 沒有公告不显示

    1.        <div class="z">
    2.                 <a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a><em>»</em><a href="forum.php"{if $_G['setting']['forumjump']} id="fjump" class="showmenu"{/if}>{$_G[setting][navs][2][navname]}</a>$navigation
    3.         </div>
    4.         <div class="z"><!--{hook/index_status_extra}--></div>
    5. </div>
    复制代码

    <a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a>
    调用 后台 界面 导航设置中论坛名 並跳轉到./也就是首页
    而当中的class="nvhm"即是调用坛名前的小屋图标 在后期会讲到
    <a href="forum.php"{if $_G['setting']['forumjump']} id="fjump" class="showmenu"{/if}>{$_G[setting][navs][2][navname]}</a>$navigation
    调用 后台 界面 导航设置中论坛名 並跳轉到forum.php也就是首页
    <div class="z"><!--{hook/index_status_extra}--></div>
    qq互联 收听 关注 调用插口

    1. <!--{if empty($gid)}-->
    2.         <!--{ad/text/wp a_t}-->
    3. <!--{/if}-->
    复制代码

    调用 后台 运营 站点广告 中的 格子广告

    1.         <style id="diy_style" type="text/css"></style>
    2. <!--{if empty($gid)}-->
    3.         <div class="wp">
    4.                 <!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
    5.         </div>
    6. <!--{/if}-->
    复制代码

    diy时的调用可插入位置在名之下 论坛统计之上

    1. <div id="ct" class="wp cl{if $_G['setting']['forumallowside']} ct2{/if}">
    2.         <!--{if empty($gid)}-->
    3.                 <div id="chart" class="bm bw0 cl">
    4.                         <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>
    复制代码

    调用于论坛统计
                            {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']调用于新会员的名字

    1.                         <div class="y">
    2.                                 <!--{hook/index_nav_extra}-->
    3.                                 <!--{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}-->
    4.                         </div>
    5.                 </div>
    6.         <!--{/if}-->
    复制代码

       <!--{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}-->
            调用于作查看新帖的接口

    1.       <div class="mn">
    2.                 <!--{hook/index_top}-->
    3.                 <!--{if !empty($_G['cache']['heats']['message'])}-->
    4.                         <div class="bm">
    5.                                 <div class="bm_h cl">
    6.                                         <h2>{lang hotthreads_forum}</h2>
    7.                                 </div>
    8.                                 <div class="bm_c cl">
    9.                                         <div class="heat z">
    10.                                                 <!--{loop $_G['cache']['heats']['message'] $data}-->
    11.                                                         <dl class="xld">
    12.                                                                 <dt><!--{if $_G['adminid'] == 1}--><a class="d" href="forum.php?mod=misc&action=removeindexheats&tid=$data[tid]">delete</a><!--{/if}-->
    13.                                                                 <a href="forum.php?mod=viewthread&tid=$data[tid]" target="_blank" class="xi2">$data[subject]</a></dt>
    14.                                                                 <dd>$data[message]</dd>
    15.                                                         </dl>
    16.                                                 <!--{/loop}-->
    17.                                         </div>
    18.                                         <ul class="xl xl1 heatl">
    19.                                         <!--{loop $_G['cache']['heats']['subject'] $data}-->
    20.                                                 <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>
    21.                                         <!--{/loop}-->
    22.                                         </ul>
    23.                                 </div>
    24.                         </div>
    25.                 <!--{/if}-->
    复制代码

                    调用于论坛热点功能
                   <!--{if $_G['adminid'] == 1}--><a class="d" href="forum.php?mod=misc&action=removeindexheats&tid=$data[tid]">delete</a><!--{/if}-->
                    if功能表示如果是adminid=1(即最大管理员"超版等例外")即可进行刪除热点动作
                    <a href="forum.php?mod=viewthread&tid=$data[tid]" target="_blank" class="xi2">$data[subject]</a></dt>
                                                                    <dd>$data[message]</dd>
                    调用于标题地址﹑标题以及內容

    1.               <!--{hook/index_catlist_top}-->
    2.                 <div class="fl bm">
    3.                 <!--{if empty($gid) && !empty($forum_favlist)}-->
    4.                         <!--{eval $forumscount = count($forum_favlist);}-->
    5.                         <!--{eval $forumcolumns = $forumscount > 3 ? ($forumscount == 4 ? 4 : 5) : 1;}-->
    6.                         <!--{eval $forumcolwidth = (floor(100 / $forumcolumns) - 0.1).'%';}-->
    7.                         <div class="bm bmw {if $forumcolumns} flg{/if} cl">
    8.                                 <div class="bm_h cl">
    9.                                         <span class="o">
    10.                                                 <img id="category_0_img" src="{IMGDIR}/$collapse['collapseimg_0']" title="{lang spread}" alt="{lang spread}" />
    11.                                         </span>
    12.                                         <h2><a href="home.php?mod=space&do=favorite&type=forum">{lang forum_myfav}</a></h2>
    13.                                 </div>
    复制代码

                                    调用于我的收藏版块标题及打开收縮

    1.                                <div id="category_0" class="bm_c" style="{echo $collapse['category_0']}">
    2.                                         <table cellspacing="0" cellpadding="0" class="fl_tb">
    3.                                                 <tr>
    4.                                                 <!--{eval $favorderid = 0;}-->
    5.                                                 <!--{loop $forum_favlist $key $favorite}-->
    6.                                                 <!--{eval $forum=$favforumlist[$favorite[id]];}-->
    7.                                                 <!--{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'];}-->
    8.                                                         <!--{if $forumcolumns>1}-->
    9.                                                                 <!--{if $favorderid && ($favorderid % $forumcolumns == 0)}-->
    10.                                                                         </tr>
    11.                                                                         <!--{if $favorderid < $forumscount}-->
    12.                                                                                 <tr class="fl_row">
    13.                                                                         <!--{/if}-->
    14.                                                                 <!--{/if}-->
    15.                                                                 <td class="fl_g"{if $forumcolwidth} width="$forumcolwidth"{/if}>
    16.                                                                         <div class="fl_icn_g"{if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style=" {$forum[extra][iconwidth]}px;"{/if}>
    17.                                                                         <!--{if $forum[icon]}-->
    18.                                                                                 $forum[icon]
    19.                                                                         <!--{else}-->
    20.                                                                                 <a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}><img src="{IMGDIR}/forum{if $forum[folder]}_new{/if}.gif" alt="$forum[name]" /></a>
    21.                                                                         <!--{/if}-->
    22.                                                                         </div>
    23.                                                                         <dl{if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="margin-left: {$forum[extra][iconwidth]}px;"{/if}>
    24.                                                                                 <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>
    25.                                                                                 <!--{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}-->
    26.                                                                                 <dd>
    27.                                                                                 <!--{if $forum['permission'] == 1}-->
    28.                                                                                         {lang private_forum}
    29.                                                                                 <!--{else}-->
    30.                                                                                         <!--{if $forum['redirect']}-->
    31.                                                                                                 <a href="$forumurl" class="xi2">{lang url_link}</a>
    32.                                                                                         <!--{elseif is_array($forum['lastpost'])}-->
    33.                                                                                                 <!--{if $forumcolumns < 3}-->
    34.                                                                                                         <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>
    35.                                                                                                 <!--{else}-->
    36.                                                                                                         <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{lang forum_lastpost}: $forum[lastpost][dateline]</a>
    37.                                                                                                 <!--{/if}-->
    38.                                                                                         <!--{else}-->
    39.                                                                                                 {lang never}
    40.                                                                                         <!--{/if}-->
    41.                                                                                 <!--{/if}-->
    42.                                                                                 </dd>
    43.                                                                                 <!--{hook/index_favforum_extra $forum[fid]}-->
    44.                                                                         </dl>
    45.                                                                 </td>
    46.                                                                 <!--{eval $favorderid++;}-->
    47.                                                         <!--{else}-->
    48.                                                                 <td class="fl_icn" {if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style=" {$forum[extra][iconwidth]}px;"{/if}>
    49.                                                                         <!--{if $forum[icon]}-->
    50.                                                                                 $forum[icon]
    51.                                                                         <!--{else}-->
    52.                                                                                 <a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}><img src="{IMGDIR}/forum{if $forum[folder]}_new{/if}.gif" alt="$forum[name]" /></a>
    53.                                                                         <!--{/if}-->
    54.                                                                 </td>
    55.                                                                 <td>
    56.                                                                         <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>
    57.                                                                         <!--{if $forum[description]}--><p class="xg2">$forum[description]</p><!--{/if}-->
    58.                                                                         <!--{if $forum['subforums']}--><p>{lang forum_subforums}: $forum['subforums']</p><!--{/if}-->
    59.                                                                         <!--{if $forum['moderators']}--><p>{lang forum_moderators}: <span class="xi2">$forum[moderators]</span></p><!--{/if}-->
    60.                                                                         <!--{hook/index_favforum_extra $forum[fid]}-->
    61.                                                                 </td>
    62.                                                                 <td class="fl_i">
    63.                                                                         <!--{if empty($forum[redirect])}--><span class="xi2"><!--{echo dnumber($forum[threads])}--></span><span class="xg1"> / <!--{echo dnumber($forum[posts])}--></span><!--{/if}-->
    64.                                                                 </td>
    65.                                                                 <td class="fl_by">
    66.                                                                         <div>
    67.                                                                         <!--{if $forum['permission'] == 1}-->
    68.                                                                                 {lang private_forum}
    69.                                                                         <!--{else}-->
    70.                                                                                 <!--{if $forum['redirect']}-->
    71.                                                                                         <a href="$forumurl" class="xi2">{lang url_link}</a>
    72.                                                                                 <!--{elseif is_array($forum['lastpost'])}-->
    73.                                                                                         <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>
    74.                                                                                 <!--{else}-->
    75.                                                                                         {lang never}
    76.                                                                                 <!--{/if}-->
    77.                                                                         <!--{/if}-->
    78.                                                                         </div>
    79.                                                                 </td>
    80.                                                         </tr>
    81.                                                         <tr class="fl_row">
    82.                                                         <!--{/if}-->
    83.                                                 <!--{/loop}-->
    84.                                                 <!--{if ($columnspad = $favorderid % $forumcolumns) > 0}--><!--{echo str_repeat('<td class="fl_g"'.($forumcolwidth ? " width="$forumcolwidth"" : '').'></td>', $forumcolumns - $columnspad);}--><!--{/if}-->
    85.                                                 </tr>
    86.                                         </table>
    87.                                 </div>
    88.                         </div>
    89.                         <!--{ad/intercat/bm a_c/-1}-->
    90.                 <!--{/if}-->
    复制代码

                    用于调用我的收藏版块所显示的信息
    <!--{ad/intercat/bm a_c/-1}--> 调用于 站点廣告中的论坛分类间廣告 中的收藏栏选项

    1.               <!--{loop $catlist $key $cat}-->
    2.                         <!--{hook/index_catlist $cat[fid]}-->
    3.                         <div class="bm bmw {if $cat['forumcolumns']} flg{/if} cl">
    4.                                 <div class="bm_h cl">
    5.                                         <span class="o">
    6.                                                 <img id="category_$cat[fid]_img" src="{IMGDIR}/$cat[collapseimg]" title="{lang spread}" alt="{lang spread}" />
    7.                                         </span>
    8.                                         <!--{if $cat['moderators']}--><span class="y">{lang forum_category_modedby}: $cat[moderators]</span><!--{/if}-->
    9.                                         <!--{eval $caturl = !empty($cat['domain']) && !empty($_G['setting']['domain']['root']['forum']) ? 'http://'.$cat['domain'].'.'.$_G['setting']['domain']['root']['forum'] : '';}-->
    10.                                         <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>
    11.                                 </div>
    12.                                 <div id="category_$cat[fid]" class="bm_c" style="{echo $collapse['category_'.$cat[fid]]}">
    13.                                         <table cellspacing="0" cellpadding="0" class="fl_tb">
    14.                                                 <tr>
    15.                                                 <!--{loop $cat[forums] $forumid}-->
    16.                                                 <!--{eval $forum=$forumlist[$forumid];}-->
    17.                                                 <!--{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'];}-->
    18.                                                 <!--{if $cat['forumcolumns']}-->
    19.                                                         <!--{if $forum['orderid'] && ($forum['orderid'] % $cat['forumcolumns'] == 0)}-->
    20.                                                                 </tr>
    21.                                                                 <!--{if $forum['orderid'] < $cat['forumscount']}-->
    22.                                                                         <tr class="fl_row">
    23.                                                                 <!--{/if}-->
    24.                                                         <!--{/if}-->
    25.                                                         <td class="fl_g" width="$cat[forumcolwidth]">
    26.                                                                 <div class="fl_icn_g"{if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style=" {$forum[extra][iconwidth]}px;"{/if}>
    27.                                                                 <!--{if $forum[icon]}-->
    28.                                                                         $forum[icon]
    29.                                                                 <!--{else}-->
    30.                                                                         <a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}><img src="{IMGDIR}/forum{if $forum[folder]}_new{/if}.gif" alt="$forum[name]" /></a>
    31.                                                                 <!--{/if}-->
    32.                                                                 </div>
    33.                                                                 <dl{if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="margin-left: {$forum[extra][iconwidth]}px;"{/if}>
    34.                                                                         <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>
    35.                                                                         <!--{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}-->
    36.                                                                         <dd>
    37.                                                                         <!--{if $forum['permission'] == 1}-->
    38.                                                                                 {lang private_forum}
    39.                                                                         <!--{else}-->
    40.                                                                                 <!--{if $forum['redirect']}-->
    41.                                                                                         <a href="$forumurl" class="xi2">{lang url_link}</a>
    42.                                                                                 <!--{elseif is_array($forum['lastpost'])}-->
    43.                                                                                         <!--{if $cat['forumcolumns'] < 3}-->
    44.                                                                                                 <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>
    45.                                                                                         <!--{else}-->
    46.                                                                                                 <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{lang forum_lastpost}: $forum[lastpost][dateline]</a>
    47.                                                                                         <!--{/if}-->
    48.                                                                                 <!--{else}-->
    49.                                                                                         {lang never}
    50.                                                                                 <!--{/if}-->
    51.                                                                         <!--{/if}-->
    52.                                                                         </dd>
    53.                                                                         <!--{hook/index_forum_extra $forum[fid]}-->
    54.                                                                 </dl>
    55.                                                         </td>
    56.                                                 <!--{else}-->
    57.                                                         <td class="fl_icn" {if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style=" {$forum[extra][iconwidth]}px;"{/if}>
    58.                                                                 <!--{if $forum[icon]}-->
    59.                                                                         $forum[icon]
    60.                                                                 <!--{else}-->
    61.                                                                         <a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}><img src="{IMGDIR}/forum{if $forum[folder]}_new{/if}.gif" alt="$forum[name]" /></a>
    62.                                                                 <!--{/if}-->
    63.                                                         </td>
    64.                                                         <td>
    65.                                                                 <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>
    66.                                                                 <!--{if $forum[description]}--><p class="xg2">$forum[description]</p><!--{/if}-->
    67.                                                                 <!--{if $forum['subforums']}--><p>{lang forum_subforums}: $forum['subforums']</p><!--{/if}-->
    68.                                                                 <!--{if $forum['moderators']}--><p>{lang forum_moderators}: <span class="xi2">$forum[moderators]</span></p><!--{/if}-->
    69.                                                                 <!--{hook/index_forum_extra $forum[fid]}-->
    70.                                                         </td>
    71.                                                         <td class="fl_i">
    72.                                                                 <!--{if empty($forum[redirect])}--><span class="xi2"><!--{echo dnumber($forum[threads])}--></span><span class="xg1"> / <!--{echo dnumber($forum[posts])}--></span><!--{/if}-->
    73.                                                         </td>
    74.                                                         <td class="fl_by">
    75.                                                                 <div>
    76.                                                                 <!--{if $forum['permission'] == 1}-->
    77.                                                                         {lang private_forum}
    78.                                                                 <!--{else}-->
    79.                                                                         <!--{if $forum['redirect']}-->
    80.                                                                                 <a href="$forumurl" class="xi2">{lang url_link}</a>
    81.                                                                         <!--{elseif is_array($forum['lastpost'])}-->
    82.                                                                                 <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>
    83.                                                                         <!--{else}-->
    84.                                                                                 {lang never}
    85.                                                                         <!--{/if}-->
    86.                                                                 <!--{/if}-->
    87.                                                                 </div>
    88.                                                         </td>
    89.                                                 </tr>
    90.                                                 <tr class="fl_row">
    91.                                                 <!--{/if}-->
    92.                                                 <!--{/loop}-->
    93.                                                 $cat['endrows']
    94.                                                 </tr>
    95.                                         </table>
    96.                                 </div>
    97.                         </div>
    98.                         <!--{ad/intercat/bm a_c/$cat[fid]}-->
    99.                 <!--{/loop}-->
    100.                 </div>
    复制代码

                直到此位置都是调用于显示 直排/橫排版块 中所有信息
                    <!--{ad/intercat/bm a_c/$cat[fid]}--> 调用于 站点廣告中的论坛分类间廣告 中的版块名选项

    1.                 <!--{hook/index_middle}-->
    2.                 <div class="wp mtn">
    3.                         <!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]-->
    4.                 </div>
    复制代码

                    调用于diy时可diy位置

    1.                 <!--{if empty($gid) && $_G['setting']['whosonlinestatus']}-->
    2.                         <div id="online" class="bm oll">
    3.                                 <div class="bm_h">
    4.                                 <!--{if $detailstatus}-->
    5.                                         <span class="o"><a href="forum.php?showoldetails=no#online" title="{lang spread}"><img src="{IMGDIR}/collapsed_no.gif" alt="{lang spread}" /></a></span>
    6.                                         <h3>
    7.                                                 <strong><a href="home.php?mod=space&do=friend&view=online&type=member">{lang onlinemember}</a></strong>
    8.                                                 <span class="xs1">- <strong>$onlinenum</strong> {lang onlines}
    9.                                                 - <strong>$membercount</strong> {lang index_members}(<strong>$invisiblecount</strong> {lang index_invisibles}),
    10.                                                 <strong>$guestcount</strong> {lang index_guests}
    11.                                                 - {lang index_mostonlines} <strong>$onlineinfo[0]</strong> {lang on} <strong>$onlineinfo[1]</strong>.</span>
    12.                                         </h3>
    13.                                 <!--{else}-->
    14.                                         <!--{if empty($_G['setting']['sessionclose'])}-->
    15.                                                 <span class="o"><a href="forum.php?showoldetails=yes#online" title="{lang spread}"><img src="{IMGDIR}/collapsed_yes.gif" alt="{lang spread}" /></a></span>
    16.                                         <!--{/if}-->
    17.                                         <h3>
    18.                                                 <strong>
    19.                                                         <!--{if !empty($_G['setting']['whosonlinestatus'])}-->
    20.                                                                 {lang onlinemember}
    21.                                                         <!--{else}-->
    22.                                                                 <a href="home.php?mod=space&do=friend&view=online&type=member">{lang onlinemember}</a>
    23.                                                         <!--{/if}-->
    24.                                                 </strong>
    25.                                                 <span class="xs1">- {lang total} <strong>$onlinenum</strong> {lang onlines}
    26.                                                 <!--{if $membercount}-->- <strong>$membercount</strong> {lang index_members},<strong>$guestcount</strong> {lang index_guests}<!--{/if}-->
    27.                                                 - {lang index_mostonlines} <strong>$onlineinfo[0]</strong> {lang on} <strong>$onlineinfo[1]</strong>.</span>
    28.                                         </h3>
    29.                                 <!--{/if}-->
    30.                                 </div>
    31.                         <!--{if $_G['setting']['whosonlinestatus'] && $detailstatus}-->
    32.                                 <dl id="onlinelist" class="bm_c">
    33.                                         <dt class="ptm pbm bbda">$_G[cache][onlinelist][legend]</dt>
    34.                                         <!--{if $detailstatus}-->
    35.                                                 <dd class="ptm pbm">
    36.                                                 <ul class="cl">
    37.                                                 <!--{if $whosonline}-->
    38.                                                         <!--{loop $whosonline $key $online}-->
    39.                                                                 <li title="{lang time}: $online[lastactivity]">
    40.                                                                 <img src="{STATICURL}image/common/$online[icon]" alt="icon" />
    41.                                                                 <!--{if $online['uid']}-->
    42.                                                                         <a href="home.php?mod=space&uid=$online[uid]">$online[username]</a>
    43.                                                                 <!--{else}-->
    44.                                                                         $online[username]
    45.                                                                 <!--{/if}-->
    46.                                                                 </li>
    47.                                                         <!--{/loop}-->
    48.                                                 <!--{else}-->
    49.                                                         <li style=" auto">{lang online_only_guests}</li>
    50.                                                 <!--{/if}-->
    51.                                                 </ul>
    52.                                         </dd>
    53.                                         <!--{/if}-->
    54.                                 </dl>
    55.                         <!--{/if}-->
    56.                         </div>
    57.                 <!--{/if}-->
    复制代码
    <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>


                                            调用于首页详细显示在线信息
                                            {lang onlinemember} 在线会员 
                                            $onlinenum 调用在线数 {lang onlines} 在线
                                            $membercount 调用是本站会员数 {lang index_members} 会员
                                            $invisiblecount 调用隐身人数 {lang index_invisibles}隐身
                                            $guestcount 调用游客数 {lang index_guests} 游客
                                            {lang index_mostonlines} 最高纪录 $onlineinfo[0] 调用最高日的人数
                                            {lang on} 于 $onlineinfo[1] 调用最高在线人数日期

    <span class="o"><a href="forum.php?showoldetails=yes#online" title="{lang spread}"><img src="{IMGDIR}/collapsed_yes.gif" alt="{lang spread}" /></a></span>
                                             调用是否打开详细列表显示


                                            <span class="o"><a href="forum.php?showoldetails=no#online" title="{lang spread}"><img src="{IMGDIR}/collapsed_no.gif" alt="{lang spread}" /></a></span>
                                            调用是否隐藏显示详细列表

    <li style=" auto">{lang online_only_guests}</li>
                                                            调用于表示在线只有游客
                                                    调用于首页简约显示在线信息
                                            {lang onlinemember} 在线会员 
                                            {lang total} 总数 $onlinenum 调用在线数
                                            {lang index_mostonlines} 最高纪录 $onlineinfo[0] 调用最高日的人数
                                            {lang on} 于 $onlineinfo[1] 调用最高在线人数日期

                                                                    <img src="{STATICURL}image/common/$online[icon]" alt="icon" />
                                                                    调用于后台 界面 在线列表 所设置的图标

                                                                            <a href="home.php?mod=space&uid=$online[uid]">$online[username]</a>
                                                                            调用会员名及空间地址

                                                                            $online[username]
                                                                            调用会员名


    1.                <!--{if empty($gid) && ($_G['cache']['forumlinks'][0] || $_G['cache']['forumlinks'][1] || $_G['cache']['forumlinks'][2])}-->
    2.                 <div class="bm lk">
    3.                         <div id="category_lk" class="bm_c ptm">
    4.                                 <!--{if $_G['cache']['forumlinks'][0]}-->
    5.                                         <ul class="m mbn cl">$_G['cache']['forumlinks'][0]</ul>
    6.                                         调用有文字及有图的友情
    7.                                 <!--{/if}-->
    8.                                 <!--{if $_G['cache']['forumlinks'][1]}-->
    9.                                         <div class="mbn cl">
    10.                                                 $_G['cache']['forumlinks'][1]
    11.                                                 调用有文字沒图的友情
    12.                                         </div>
    13.                                 <!--{/if}-->
    14.                                 <!--{if $_G['cache']['forumlinks'][2]}-->
    15.                                         <ul class="x mbm cl">
    16.                                                 $_G['cache']['forumlinks'][2]
    17.                                                 调用只有站名的友情
    18.                                         </ul>
    19.                                 <!--{/if}-->
    20.                         </div>
    21.                 </div>
    22.                 <!--{/if}-->
    23.                 <!--{hook/index_bottom}-->
    24.         </div>
    复制代码

    <ul class="m mbn cl">$_G['cache']['forumlinks'][0]</ul>
                                            调用有文字及有图的友情
    $_G['cache']['forumlinks'][1]
                                                    调用有文字沒图的友情
    $_G['cache']['forumlinks'][2]
                                                    调用只有站名的友情

    1.         <!--{if $_G['setting']['forumallowside']}-->
    2.                 <div id="sd" class="sd">
    3.                         <!--{hook/index_side_top}-->
    4.                         <div class="drag">
    5.                                 <!--[diy=diy2]--><div id="diy2" class="area"></div><!--[/diy]-->
    6.                         </div>
    7.                         <!--{hook/index_side_bottom}-->
    8.                 </div>
    9.         <!--{/if}-->
    10. </div>
    复制代码

    <!--[diy=diy2]--><div id="diy2" class="area"></div><!--[/diy]-->
                                    调用diy可加框內容的位置

    1. <!--{if $_G['group']['radminid'] == 1}-->
    2.         <!--{eval helper_manyou::checkupdate();}-->
    3. <!--{/if}-->
    复制代码

    调用漫游更新通知的.只有管理员可见

    1. <!--{subtemplate common/footer}-->
    复制代码

    调用 common/footer.htm 底部文件

  • 相关阅读:
    【动态规划】Column Addition @ICPC2017Tehran/upcexam5434
    【高精度&想法题】Count the Even Integers @ICPC2017HongKong/upcexam5563#Java
    【二分】Base Station Sites @ICPC2017HongKong/upcexam5559
    【想法题】Knot Puzzle @AtCoder Grand Contest 002 C/upcexam5583
    【搜索】传感器 @upcexam6023
    Unity 3D 开发 —— 脚本编程
    Kinect 开发 —— 骨骼数据与彩色影像和深度影像的对齐
    Kinect 开发 —— 杂一
    Kinect 开发 —— 面部追踪
    Kinect 开发 —— Kinect studio
  • 原文地址:https://www.cnblogs.com/alleyonline/p/7499795.html
Copyright © 2011-2022 走看看