discuz的最后回帖链接怎么实现伪静态?
discuz的最后回帖链接怎么实现伪静态?以上我图中圈起来的地方。
我在网上试了一下修改默认模版当中的文件 discuz.htm里面的代码不行。
我记得在后台是可以修改的,可是我忘记怎么修改的了,请大神告知一下。
还有我的伪静态已经做成了目录结构
伪静态文件加以下规则RewriteRule ^last-(+)\.html$ forum.php?mod=viewthread&tid=$1#lastpost%1修改 discuz.htm模板文件
搜索:
forum.php?mod=redirect&tid=$thread&goto=lastpost#lastpost
修改为:
last-$thread.html如图:
保存即可
不行 还是原来的老样子 沛龙网 发表于 2016-7-25 19:03
不行 还是原来的老样子
需要修改的的地方不只是1出,在discuz.htm模板中至少有10处左右要修改!
本地测试截图!
正常打开
附上改过的discuz.htm模板文件
给予官方默认模板修改的代码如下
<!--{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</a><em>»</em><a href="forum.php">{$_G}</a>$navigation
</div>
<div class="z"><!--{hook/index_status_extra}--></div>
</div>
<!--{if empty($gid)}-->
<!--{ad/text/wp a_t}-->
<!--{/if}-->
<style id="diy_style" type="text/css"></style>
<!--{if empty($gid)}-->
<div class="wp">
<!----><div id="diy1" class="area"></div><!---->
</div>
<!--{/if}-->
<div id="ct" class="wp cl{if $_G['setting']['forumallowside']} ct2{/if}">
<!--{if empty($gid)}-->
<div id="chart" class="bm bw0 cl">
<p class="chart z">{lang index_today}: <em>$todayposts</em><span class="pipe">|</span>{lang index_yesterday}: <em>$postdata</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}-->
<!----><div id="diy_chart" class="area"></div><!---->
<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 = ;
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';
slideImgLinks[<!--{echo $k}-->] = '{$svalue}';
slideImgTexts[<!--{echo $k}-->] = '$svalue';
{eval $k++;}
<!--{/loop}-->
</script>
<script language="javascript" type="text/javascript" src="{$_G}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=$thread;}-->
<!--{/if}-->
<li><a href="forum.php?mod=viewthread&tid=$thread&extra=$extra"{if $thread['highlight']} $thread['highlight']{/if}{if $_G['setting']['grid']['showtips']} tip="{lang title}: <strong>$thread</strong><br/>{lang author}: $thread ($thread)<br/>{lang show}/{lang reply}: $thread/$thread" onmouseover="showTip(this)"{else} title="$thread"{/if}{if $_G['setting']['grid']['targetblank']} target="_blank"{/if}>$thread</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=$thread;}-->
<!--{/if}-->
<li><a href="last-$thread.html"{if $thread['highlight']} $thread['highlight']{/if}{if $_G['setting']['grid']['showtips']}tip="{lang title}: <strong>$thread</strong><br/>{lang author}: $thread ($thread)<br/>{lang show}/{lang reply}: $thread/$thread" onmouseover="showTip(this)"{else} title="$thread"{/if}{if $_G['setting']['grid']['targetblank']} target="_blank"{/if}>$thread</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=$thread;}-->
<!--{/if}-->
<li><a href="forum.php?mod=viewthread&tid=$thread&extra=$extra"{if $thread['highlight']} $thread['highlight']{/if}{if $_G['setting']['grid']['showtips']} tip="{lang title}: <strong>$thread</strong><br/>{lang author}: $thread ($thread)<br/>{lang show}/{lang reply}: $thread/$thread" onmouseover="showTip(this)"{else} title="$thread"{/if}{if $_G['setting']['grid']['targetblank']} target="_blank"{/if}>$thread</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=$thread;}-->
<!--{/if}-->
<li><a href="forum.php?mod=viewthread&tid=$thread&extra=$extra"{if $thread['highlight']} $thread['highlight']{/if}{if $_G['setting']['grid']['showtips']} tip="{lang title}: <strong>$thread</strong><br/>{lang author}: $thread ($thread)<br/>{lang show}/{lang reply}: $thread/$thread" onmouseover="showTip(this)"{else} title="$thread"{/if}{if $_G['setting']['grid']['targetblank']} target="_blank"{/if}>$thread</a></li>
<!--{/loop}-->
</ul>
</div>
</td>
<!--{/if}-->
</table>
</div>
</div>
</div>
<!-- index four grid end -->
<!--{/if}-->
<!--{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" onclick="return removeindexheats()">delete</a><!--{/if}-->
<a href="forum.php?mod=viewthread&tid=$data" target="_blank" class="xi2">$data</a></dt>
<dd>$data</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" onclick="return removeindexheats()">delete</a><!--{/if}-->· <a href="forum.php?mod=viewthread&tid=$data" target="_blank" class="xi2">$data</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}" target="_blank"><img src="{IMGDIR}/forum{if $followcollections[$key]['lastvisit'] < $colletion['lastupdate']}_new{/if}.gif" alt="$colletion" /></a>
</div>
<dl>
<dt><a href="forum.php?mod=collection&action=view&ctid={$colletion}">$colletion</a></dt>
<dd><em>{lang forum_threads}: <!--{echo dnumber($colletion)}--></em>, <em>{lang collection_commentnum}: <!--{echo dnumber($colletion)}--></em></dd>
<dd>
<!--{if $colletion['lastpost']}-->
<!--{if $forumcolumns < 3}-->
<a href="last-$colletion.html" class="xi2"><!--{echo cutstr($colletion, 30)}--></a> <cite><!--{date($colletion)}--> <!--{if $colletion['lastposter']}-->$colletion['lastposter']<!--{else}-->$_G<!--{/if}--></cite>
<!--{else}-->
<a href="last-$colletion.html">{lang forum_lastpost}: <!--{date($colletion)}--></a>
<!--{/if}-->
<!--{else}-->
{lang never}
<!--{/if}-->
</dd>
<!--{hook/index_followcollection_extra $colletion}-->
</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]}-->
<!--{eval $forum=$favforumlist[$favorite];}-->
<!--{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) && !empty($forum)} style="width: {$forum}px;"{/if}>
<!--{if $forum}-->
$forum
<!--{else}-->
<a href="$forumurl"{if $forum} target="_blank"{/if}><img src="{IMGDIR}/forum{if $forum}_new{/if}.gif" alt="$forum" /></a>
<!--{/if}-->
</div>
<dl{if !empty($forum) && !empty($forum)} style="margin-left: {$forum}px;"{/if}>
<dt><a href="$forumurl"{if $forum} target="_blank"{/if}{if $forum} style="color: {$forum};"{/if}>$forum</a><!--{if $forum && !$forum['redirect']}--><em class="xw0 xi1" title="{lang forum_todayposts}"> ($forum)</em><!--{/if}--></dt>
<!--{if empty($forum)}--><dd><em>{lang forum_threads}: <!--{echo dnumber($forum)}--></em>, <em>{lang forum_posts}: <!--{echo dnumber($forum)}--></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="last-$forum.html" class="xi2"><!--{echo cutstr($forum, 30)}--></a> <cite>$forum <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->$_G<!--{/if}--></cite>
<!--{else}-->
<a href="last-$forum.html">{lang forum_lastpost}: $forum</a>
<!--{/if}-->
<!--{else}-->
{lang never}
<!--{/if}-->
<!--{/if}-->
</dd>
<!--{hook/index_favforum_extra $forum}-->
</dl>
</td>
<!--{eval $favorderid++;}-->
<!--{else}-->
<td class="fl_icn" {if !empty($forum) && !empty($forum)} style="width: {$forum}px;"{/if}>
<!--{if $forum}-->
$forum
<!--{else}-->
<a href="$forumurl"{if $forum} target="_blank"{/if}><img src="{IMGDIR}/forum{if $forum}_new{/if}.gif" alt="$forum" /></a>
<!--{/if}-->
</td>
<td>
<h2><a href="$forumurl"{if $forum} target="_blank"{/if}{if $forum} style="color: {$forum};"{/if}>$forum</a><!--{if $forum && !$forum['redirect']}--><em class="xw0 xi1" title="{lang forum_todayposts}"> ($forum)</em><!--{/if}--></h2>
<!--{if $forum}--><p class="xg2">$forum</p><!--{/if}-->
<!--{if $forum['subforums']}--><p>{lang forum_subforums}: $forum['subforums']</p><!--{/if}-->
<!--{if $forum['moderators']}--><p>{lang forum_moderators}: <span class="xi2">$forum</span></p><!--{/if}-->
<!--{hook/index_favforum_extra $forum}-->
</td>
<td class="fl_i">
<!--{if empty($forum)}--><span class="xi2"><!--{echo dnumber($forum)}--></span><span class="xg1"> / <!--{echo dnumber($forum)}--></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="last-$forum.html" class="xi2"><!--{echo cutstr($forum, 30)}--></a> <cite>$forum <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->$_G<!--{/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}-->
<!--{loop $catlist $key $cat}-->
<!--{hook/index_catlist $cat}-->
<div class="bm bmw {if $cat['forumcolumns']} flg{/if} cl">
<div class="bm_h cl">
<span class="o">
<img id="category_$cat_img" src="{IMGDIR}/$cat" title="{lang spread}" alt="{lang spread}" onclick="toggle_collapse('category_$cat');" />
</span>
<!--{if $cat['moderators']}--><span class="y">{lang forum_category_modedby}: $cat</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{/if}" style="{if $cat}color: {$cat};{/if}">$cat</a></h2>
</div>
<div id="category_$cat" class="bm_c" style="{echo $collapse['category_'.$cat]}">
<table cellspacing="0" cellpadding="0" class="fl_tb">
<tr>
<!--{loop $cat $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">
<div class="fl_icn_g"{if !empty($forum) && !empty($forum)} style="width: {$forum}px;"{/if}>
<!--{if $forum}-->
$forum
<!--{else}-->
<a href="$forumurl"{if $forum} target="_blank"{/if}><img src="{IMGDIR}/forum{if $forum}_new{/if}.gif" alt="$forum" /></a>
<!--{/if}-->
</div>
<dl{if !empty($forum) && !empty($forum)} style="margin-left: {$forum}px;"{/if}>
<dt><a href="$forumurl"{if $forum} target="_blank"{/if}{if $forum} style="color: {$forum};"{/if}>$forum</a><!--{if $forum && !$forum['redirect']}--><em class="xw0 xi1" title="{lang forum_todayposts}"> ($forum)</em><!--{/if}--></dt>
<!--{if empty($forum)}--><dd><em>{lang forum_threads}: <!--{echo dnumber($forum)}--></em>, <em>{lang forum_posts}: <!--{echo dnumber($forum)}--></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="last-$forum.html" class="xi2"><!--{echo cutstr($forum, 30)}--></a> <cite>$forum <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->$_G<!--{/if}--></cite>
<!--{else}-->
<a href="last-$forum.html">{lang forum_lastpost}: $forum</a>
<!--{/if}-->
<!--{else}-->
{lang never}
<!--{/if}-->
<!--{/if}-->
</dd>
<!--{hook/index_forum_extra $forum}-->
</dl>
</td>
<!--{else}-->
<td class="fl_icn" {if !empty($forum) && !empty($forum)} style="width: {$forum}px;"{/if}>
<!--{if $forum}-->
$forum
<!--{else}-->
<a href="$forumurl"{if $forum} target="_blank"{/if}><img src="{IMGDIR}/forum{if $forum}_new{/if}.gif" alt="$forum" /></a>
<!--{/if}-->
</td>
<td>
<h2><a href="$forumurl"{if $forum} target="_blank"{/if}{if $forum} style="color: {$forum};"{/if}>$forum</a><!--{if $forum && !$forum['redirect']}--><em class="xw0 xi1" title="{lang forum_todayposts}"> ($forum)</em><!--{/if}--></h2>
<!--{if $forum}--><p class="xg2">$forum</p><!--{/if}-->
<!--{if $forum['subforums']}--><p>{lang forum_subforums}: $forum['subforums']</p><!--{/if}-->
<!--{if $forum['moderators']}--><p>{lang forum_moderators}: <span class="xi2">$forum</span></p><!--{/if}-->
<!--{hook/index_forum_extra $forum}-->
</td>
<td class="fl_i">
<!--{if empty($forum)}--><span class="xi2"><!--{echo dnumber($forum)}--></span><span class="xg1"> / <!--{echo dnumber($forum)}--></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="last-$forum.html" class="xi2"><!--{echo cutstr($forum, 30)}--></a> <cite>$forum <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->$_G<!--{/if}--></cite>
<!--{else}-->
{lang never}
<!--{/if}-->
<!--{/if}-->
</div>
</td>
</tr>
<tr class="fl_row">
<!--{/if}-->
<!--{/loop}-->
$cat['endrows']
</tr>
</table>
</div>
</div>
<!--{ad/intercat/bm a_c/$cat}-->
<!--{/loop}-->
<!--{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}" target="_blank"><img src="{IMGDIR}/forum.gif" alt="$colletion" /></a>
</div>
<dl>
<dt><a href="forum.php?mod=collection&action=view&ctid={$colletion}">$colletion</a></dt>
<dd><em>{lang forum_threads}: <!--{echo dnumber($colletion)}--></em>, <em>{lang collection_commentnum}: <!--{echo dnumber($colletion)}--></em></dd>
<dd>
<!--{if $colletion['lastpost']}-->
<!--{if $forumcolumns < 3}-->
<a href="last-$colletion.html" class="xi2"><!--{echo cutstr($colletion, 30)}--></a> <cite><!--{date($colletion)}--> <!--{if $colletion['lastposter']}-->$colletion['lastposter']<!--{else}-->$_G<!--{/if}--></cite>
<!--{else}-->
<a href="last-$colletion.html">{lang forum_lastpost}: <!--{date($colletion)}--></a>
<!--{/if}-->
<!--{else}-->
{lang never}
<!--{/if}-->
</dd>
<!--{hook/index_datacollection_extra $colletion}-->
</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">
<!----><div id="diy3" class="area"></div><!---->
</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</strong> {lang on} <strong>$onlineinfo</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</strong> {lang on} <strong>$onlineinfo</strong>.</span>
</h3>
<!--{/if}-->
</div>
<!--{if $_G['setting']['whosonlinestatus'] && $detailstatus}-->
<dl id="onlinelist" class="bm_c">
<dt class="ptm pbm bbda">$_G</dt>
<!--{if $detailstatus}-->
<dd class="ptm pbm">
<ul class="cl">
<!--{if $whosonline}-->
<!--{loop $whosonline $key $online}-->
<li title="{lang time}: $online">
<img src="{STATICURL}image/common/$online" alt="icon" />
<!--{if $online['uid']}-->
<a href="home.php?mod=space&uid=$online">$online</a>
<!--{else}-->
$online
<!--{/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'] || $_G['cache']['forumlinks'] || $_G['cache']['forumlinks'])}-->
<div class="bm lk">
<div id="category_lk" class="bm_c ptm">
<!--{if $_G['cache']['forumlinks']}-->
<ul class="m mbn cl">$_G['cache']['forumlinks']</ul>
<!--{/if}-->
<!--{if $_G['cache']['forumlinks']}-->
<div class="mbn cl">
$_G['cache']['forumlinks']
</div>
<!--{/if}-->
<!--{if $_G['cache']['forumlinks']}-->
<ul class="x mbm cl">
$_G['cache']['forumlinks']
</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">
<!----><div id="diy2" class="area"></div><!---->
</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}-->
要的链接是这样的格式
修改以上代码中的伪静态规则即可! admin 发表于 2016-7-26 15:05
修改以上代码中的伪静态规则即可!
能不能详细的说说啊,我不会写啊
页:
[1]