找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 9864|回复: 7

discuz的最后回帖链接怎么实现伪静态?

  [复制链接]
发表于 2016-7-25 14:31:01 | 显示全部楼层 |阅读模式
discuz的最后回帖链接怎么实现伪静态?
QQ截图20160724075319.jpg
以上我图中圈起来的地方。
我在网上试了一下修改默认模版当中的文件 discuz.htm里面的代码不行。
我记得在后台是可以修改的,可是我忘记怎么修改的了,请大神告知一下。
还有我的伪静态已经做成了目录结构
回复

使用道具 举报

发表于 2016-7-25 16:53:39 | 显示全部楼层
伪静态文件加以下规则
  1. RewriteRule ^last-([0-9]+)\.html$ forum.php?mod=viewthread&tid=$1#lastpost%1
复制代码
修改 discuz.htm模板文件

搜索:
  1. forum.php?mod=redirect&tid=$thread[tid]&goto=lastpost#lastpost
复制代码
QQ截图20160725165550.jpg
修改为:

  1. last-$thread[tid].html
复制代码
如图:
QQ截图20160725165829.jpg


保存即可
回复

使用道具 举报

 楼主| 发表于 2016-7-25 19:03:53 | 显示全部楼层
不行 还是原来的老样子
回复

使用道具 举报

发表于 2016-7-25 19:27:21 | 显示全部楼层
沛龙网 发表于 2016-7-25 19:03
不行 还是原来的老样子

需要修改的的地方不只是1出,在discuz.htm模板中至少有10处左右要修改!

本地测试截图!

QQ截图20160725193104.jpg

正常打开

QQ截图20160725193127.jpg

附上改过的discuz.htm模板文件

discuz.htm (30.33 KB, 下载次数: )
回复

使用道具 举报

发表于 2016-7-25 19:27:58 | 显示全部楼层
给予官方默认模板修改的代码如下

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


  2. <div id="pt" class="bm cl">
  3.         <!--{if empty($gid) && $announcements}-->
  4.         <div class="y">
  5.                 <div id="an">
  6.                         <dl class="cl">
  7.                                 <dt class="z xw1">{lang announcements}: </dt>
  8.                                 <dd>
  9.                                         <div id="anc"><ul id="ancl">$announcements</ul></div>
  10.                                 </dd>
  11.                         </dl>
  12.                 </div>
  13.                 <script type="text/javascript">announcement();</script>
  14.         </div>
  15.         <!--{/if}-->
  16.         <div class="z">
  17.                 <a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a><em>&#187;</em><a href="forum.php">{$_G[setting][navs][2][navname]}</a>$navigation
  18.         </div>
  19.         <div class="z"><!--{hook/index_status_extra}--></div>
  20. </div>


  21. <!--{if empty($gid)}-->
  22.         <!--{ad/text/wp a_t}-->
  23. <!--{/if}-->

  24.         <style id="diy_style" type="text/css"></style>

  25. <!--{if empty($gid)}-->
  26.         <div class="wp">
  27.                 <!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
  28.         </div>
  29. <!--{/if}-->

  30. <div id="ct" class="wp cl{if $_G['setting']['forumallowside']} ct2{/if}">
  31.         <!--{if empty($gid)}-->
  32.                 <div id="chart" class="bm bw0 cl">
  33.                         <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>
  34.                         <div class="y">
  35.                                 <!--{hook/index_nav_extra}-->
  36.                                 <!--{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}-->
  37.                         </div>
  38.                 </div>
  39.         <!--{/if}-->
  40.         <!--[diy=diy_chart]--><div id="diy_chart" class="area"></div><!--[/diy]-->
  41.         <div class="mn">

  42.                 <!--{if !empty($_G['setting']['grid']['showgrid'])}-->
  43.                 <!-- index four grid -->
  44.                 <div class="fl bm">
  45.                         <div class="bm bmw cl">
  46.                                 <div id="category_grid" class="bm_c" >
  47.                                         <table cellspacing="0" cellpadding="0"><tr>
  48.                                         <!--{if !$_G['setting']['grid']['gridtype']}-->
  49.                                                 <td valign="top" class="category_l1">
  50.                                                         <div class="newimgbox">
  51.                                                                 <h4><span class="tit_newimg"></span>{lang latest_images}</h4>
  52.                                                                 <div class="module cl slidebox_grid" style="width:218px">
  53.                                                                         <script type="text/javascript">
  54.                                                                         var slideSpeed = 5000;
  55.                                                                         var slideImgsize = [218,200];
  56.                                                                         var slideBorderColor = '{$_G['style']['specialborder']}';
  57.                                                                         var slideBgColor = '{$_G['style']['commonbg']}';
  58.                                                                         var slideImgs = new Array();
  59.                                                                         var slideImgLinks = new Array();
  60.                                                                         var slideImgTexts = new Array();
  61.                                                                         var slideSwitchColor = '{$_G['style']['tabletext']}';
  62.                                                                         var slideSwitchbgColor = '{$_G['style']['commonbg']}';
  63.                                                                         var slideSwitchHiColor = '{$_G['style']['specialborder']}';
  64.                                                                         {eval $k = 1;}
  65.                                                                         <!--{loop $grids['slide'] $stid $svalue}-->
  66.                                                                                 slideImgs[<!--{echo $k}-->] = '$svalue[image]';
  67.                                                                                 slideImgLinks[<!--{echo $k}-->] = '{$svalue[url]}';
  68.                                                                                 slideImgTexts[<!--{echo $k}-->] = '$svalue[subject]';
  69.                                                                                 {eval $k++;}
  70.                                                                         <!--{/loop}-->
  71.                                                                         </script>
  72.                                                                         <script language="javascript" type="text/javascript" src="{$_G[setting][jspath]}forum_slide.js?{VERHASH}"></script>
  73.                                                                 </div>
  74.                                                         </div>
  75.                                                 </td>
  76.                                         <!--{/if}-->
  77.                                         <td valign="top" class="category_l2">
  78.                                                 <div class="subjectbox">
  79.                                                         <h4><span class="tit_subject"></span>{lang collection_lastthread}</h4>
  80.                                                 <ul class="category_newlist">
  81.                                                         <!--{loop $grids['newthread'] $thread}-->
  82.                                                         <!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
  83.                                                                         <!--{eval $thread[tid]=$thread[closed];}-->
  84.                                                                 <!--{/if}-->
  85.                                                                 <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>
  86.                                                                 <!--{/loop}-->
  87.                                                  </ul>
  88.                                          </div>
  89.                                         </td>
  90.                                         <td valign="top" class="category_l3">
  91.                                                 <div class="replaybox">
  92.                                                         <h4><span class="tit_replay"></span>{lang show_newthreads}</h4>
  93.                                                 <ul class="category_newlist">
  94.                                                         <!--{loop $grids['newreply'] $thread}-->
  95.                                                         <!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
  96.                                                                         <!--{eval $thread[tid]=$thread[closed];}-->
  97.                                                                 <!--{/if}-->
  98.                                                                 <li><a href="last-$thread[tid].html"{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>
  99.                                                                 <!--{/loop}-->
  100.                                                  </ul>
  101.                                          </div>
  102.                                         </td>
  103.                                         <td valign="top" class="category_l3">
  104.                                                 <div class="hottiebox">
  105.                                                         <h4><span class="tit_hottie"></span>{lang hot_thread}</h4>
  106.                                                 <ul class="category_newlist">
  107.                                                         <!--{loop $grids['hot'] $thread}-->
  108.                                                         <!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
  109.                                                                         <!--{eval $thread[tid]=$thread[closed];}-->
  110.                                                                 <!--{/if}-->
  111.                                                                 <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>
  112.                                                                 <!--{/loop}-->
  113.                                                  </ul>
  114.                                          </div>
  115.                                         </td>
  116.                                         <!--{if $_G['setting']['grid']['gridtype']}-->
  117.                                                 <td valign="top" class="category_l4">
  118.                                                         <div class="goodtiebox">
  119.                                                                 <h4><span class="tit_goodtie"></span>{lang post_digest_thread}</h4>
  120.                                                                 <ul class="category_newlist">
  121.                                                                         <!--{loop $grids['digest'] $thread}-->
  122.                                                                                 <!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
  123.                                                                                         <!--{eval $thread[tid]=$thread[closed];}-->
  124.                                                                                 <!--{/if}-->
  125.                                                                                 <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>
  126.                                                                         <!--{/loop}-->
  127.                                                                  </ul>
  128.                                                          </div>
  129.                                                 </td>
  130.                                         <!--{/if}-->
  131.                                         </table>
  132.                                 </div>
  133.                         </div>
  134.                 </div>
  135.                 <!-- index four grid end -->
  136.                 <!--{/if}-->
  137.                 <!--{hook/index_top}-->
  138.                 <!--{if !empty($_G['cache']['heats']['message'])}-->
  139.                         <div class="bm">
  140.                                 <div class="bm_h cl">
  141.                                         <h2>{lang hotthreads_forum}</h2>
  142.                                 </div>
  143.                                 <div class="bm_c cl">
  144.                                         <div class="heat z">
  145.                                                 <!--{loop $_G['cache']['heats']['message'] $data}-->
  146.                                                         <dl class="xld">
  147.                                                                 <dt><!--{if $_G['adminid'] == 1}--><a class="d" href="forum.php?mod=misc&action=removeindexheats&tid=$data[tid]" onclick="return removeindexheats()">delete</a><!--{/if}-->
  148.                                                                 <a href="forum.php?mod=viewthread&tid=$data[tid]" target="_blank" class="xi2">$data[subject]</a></dt>
  149.                                                                 <dd>$data[message]</dd>
  150.                                                         </dl>
  151.                                                 <!--{/loop}-->
  152.                                         </div>
  153.                                         <ul class="xl xl1 heatl">
  154.                                         <!--{loop $_G['cache']['heats']['subject'] $data}-->
  155.                                                 <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>
  156.                                         <!--{/loop}-->
  157.                                         </ul>
  158.                                 </div>
  159.                         </div>
  160.                 <!--{/if}-->

  161.                 <!--{hook/index_catlist_top}-->
  162.                 <div class="fl bm">
  163.                         <!--{if !empty($collectiondata['follows'])}-->

  164.                         <!--{eval $forumscount = count($collectiondata['follows']);}-->
  165.                         <!--{eval $forumcolumns = 4;}-->

  166.                         <!--{eval $forumcolwidth = (floor(100 / $forumcolumns) - 0.1).'%';}-->

  167.                         <div class="bm bmw {if $forumcolumns} flg{/if} cl">
  168.                                 <div class="bm_h cl">
  169.                                         <span class="o">
  170.                                                 <img id="category_-1_img" src="{IMGDIR}/$collapse['collapseimg_-1']" title="{lang spread}" alt="{lang spread}" onclick="toggle_collapse('category_-1');" />
  171.                                         </span>
  172.                                         <h2><a href="forum.php?mod=collection&op=my">{lang my_order_collection}</a></h2>
  173.                                 </div>
  174.                                 <div id="category_-1" class="bm_c" style="{echo $collapse['category_-1']}">
  175.                                         <table cellspacing="0" cellpadding="0" class="fl_tb">
  176.                                                 <tr>
  177.                                                 <!--{eval $ctorderid = 0;}-->
  178.                                                 <!--{loop $collectiondata['follows'] $key $colletion}-->
  179.                                                         <!--{if $ctorderid && ($ctorderid % $forumcolumns == 0)}-->
  180.                                                                 </tr>
  181.                                                                 <!--{if $ctorderid < $forumscount}-->
  182.                                                                         <tr class="fl_row">
  183.                                                                 <!--{/if}-->
  184.                                                         <!--{/if}-->
  185.                                                         <td class="fl_g"{if $forumcolwidth} width="$forumcolwidth"{/if}>
  186.                                                                 <div class="fl_icn_g">
  187.                                                                 <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>
  188.                                                                 </div>
  189.                                                                 <dl>
  190.                                                                         <dt><a href="forum.php?mod=collection&action=view&ctid={$colletion[ctid]}">$colletion[name]</a></dt>
  191.                                                                         <dd><em>{lang forum_threads}: <!--{echo dnumber($colletion[threadnum])}--></em>, <em>{lang collection_commentnum}: <!--{echo dnumber($colletion[commentnum])}--></em></dd>
  192.                                                                         <dd>
  193.                                                                         <!--{if $colletion['lastpost']}-->
  194.                                                                                 <!--{if $forumcolumns < 3}-->
  195.                                                                                         <a href="last-$colletion[lastpost].html" class="xi2"><!--{echo cutstr($colletion[lastsubject], 30)}--></a> <cite><!--{date($colletion[lastposttime])}--> <!--{if $colletion['lastposter']}-->$colletion['lastposter']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
  196.                                                                                 <!--{else}-->
  197.                                                                                         <a href="last-$colletion[lastpost].html">{lang forum_lastpost}: <!--{date($colletion[lastposttime])}--></a>
  198.                                                                                 <!--{/if}-->
  199.                                                                         <!--{else}-->
  200.                                                                                 {lang never}
  201.                                                                         <!--{/if}-->
  202.                                                                         </dd>
  203.                                                                         <!--{hook/index_followcollection_extra $colletion[ctid]}-->
  204.                                                                 </dl>
  205.                                                         </td>
  206.                                                         <!--{eval $ctorderid++;}-->

  207.                                                 <!--{/loop}-->
  208.                                                 <!--{if ($columnspad = $ctorderid % $forumcolumns) > 0}--><!--{echo str_repeat('<td class="fl_g"'.($forumcolwidth ? " width="$forumcolwidth"" : '').'></td>', $forumcolumns - $columnspad);}--><!--{/if}-->
  209.                                                 </tr>
  210.                                         </table>

  211.                                 </div>
  212.                         </div>

  213.                         <!--{/if}-->
  214.                         <!--{if empty($gid) && !empty($forum_favlist)}-->
  215.                         <!--{eval $forumscount = count($forum_favlist);}-->
  216.                         <!--{eval $forumcolumns = $forumscount > 3 ? ($forumscount == 4 ? 4 : 5) : 1;}-->

  217.                         <!--{eval $forumcolwidth = (floor(100 / $forumcolumns) - 0.1).'%';}-->

  218.                         <div class="bm bmw {if $forumcolumns} flg{/if} cl">
  219.                                 <div class="bm_h cl">
  220.                                         <span class="o">
  221.                                                 <img id="category_0_img" src="{IMGDIR}/$collapse['collapseimg_0']" title="{lang spread}" alt="{lang spread}" onclick="toggle_collapse('category_0');" />
  222.                                         </span>
  223.                                         <h2><a href="home.php?mod=space&do=favorite&type=forum">{lang forum_myfav}</a></h2>
  224.                                 </div>
  225.                                 <div id="category_0" class="bm_c" style="{echo $collapse['category_0']}">
  226.                                         <table cellspacing="0" cellpadding="0" class="fl_tb">
  227.                                                 <tr>
  228.                                                 <!--{eval $favorderid = 0;}-->
  229.                                                 <!--{loop $forum_favlist $key $favorite}-->
  230.                                                 <!--{if $favforumlist[$favorite[id]]}-->
  231.                                                 <!--{eval $forum=$favforumlist[$favorite[id]];}-->
  232.                                                 <!--{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'];}-->
  233.                                                         <!--{if $forumcolumns>1}-->
  234.                                                                 <!--{if $favorderid && ($favorderid % $forumcolumns == 0)}-->
  235.                                                                         </tr>
  236.                                                                         <!--{if $favorderid < $forumscount}-->
  237.                                                                                 <tr class="fl_row">
  238.                                                                         <!--{/if}-->
  239.                                                                 <!--{/if}-->
  240.                                                                 <td class="fl_g"{if $forumcolwidth} width="$forumcolwidth"{/if}>
  241.                                                                         <div class="fl_icn_g"{if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="width: {$forum[extra][iconwidth]}px;"{/if}>
  242.                                                                         <!--{if $forum[icon]}-->
  243.                                                                                 $forum[icon]
  244.                                                                         <!--{else}-->
  245.                                                                                 <a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}><img src="{IMGDIR}/forum{if $forum[folder]}_new{/if}.gif" alt="$forum[name]" /></a>
  246.                                                                         <!--{/if}-->
  247.                                                                         </div>
  248.                                                                         <dl{if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="margin-left: {$forum[extra][iconwidth]}px;"{/if}>
  249.                                                                                 <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>
  250.                                                                                 <!--{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}-->
  251.                                                                                 <dd>
  252.                                                                                 <!--{if $forum['permission'] == 1}-->
  253.                                                                                         {lang private_forum}
  254.                                                                                 <!--{else}-->
  255.                                                                                         <!--{if $forum['redirect']}-->
  256.                                                                                                 <a href="$forumurl" class="xi2">{lang url_link}</a>
  257.                                                                                         <!--{elseif is_array($forum['lastpost'])}-->
  258.                                                                                                 <!--{if $forumcolumns < 3}-->
  259.                                                                                                         <a href="last-$forum[lastpost][tid].html" 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>
  260.                                                                                                 <!--{else}-->
  261.                                                                                                         <a href="last-$forum[lastpost][tid].html">{lang forum_lastpost}: $forum[lastpost][dateline]</a>
  262.                                                                                                 <!--{/if}-->
  263.                                                                                         <!--{else}-->
  264.                                                                                                 {lang never}
  265.                                                                                         <!--{/if}-->
  266.                                                                                 <!--{/if}-->
  267.                                                                                 </dd>
  268.                                                                                 <!--{hook/index_favforum_extra $forum[fid]}-->
  269.                                                                         </dl>
  270.                                                                 </td>
  271.                                                                 <!--{eval $favorderid++;}-->
  272.                                                         <!--{else}-->
  273.                                                                 <td class="fl_icn" {if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="width: {$forum[extra][iconwidth]}px;"{/if}>
  274.                                                                         <!--{if $forum[icon]}-->
  275.                                                                                 $forum[icon]
  276.                                                                         <!--{else}-->
  277.                                                                                 <a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}><img src="{IMGDIR}/forum{if $forum[folder]}_new{/if}.gif" alt="$forum[name]" /></a>
  278.                                                                         <!--{/if}-->
  279.                                                                 </td>
  280.                                                                 <td>
  281.                                                                         <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>
  282.                                                                         <!--{if $forum[description]}--><p class="xg2">$forum[description]</p><!--{/if}-->
  283.                                                                         <!--{if $forum['subforums']}--><p>{lang forum_subforums}: $forum['subforums']</p><!--{/if}-->
  284.                                                                         <!--{if $forum['moderators']}--><p>{lang forum_moderators}: <span class="xi2">$forum[moderators]</span></p><!--{/if}-->
  285.                                                                         <!--{hook/index_favforum_extra $forum[fid]}-->
  286.                                                                 </td>
  287.                                                                 <td class="fl_i">
  288.                                                                         <!--{if empty($forum[redirect])}--><span class="xi2"><!--{echo dnumber($forum[threads])}--></span><span class="xg1"> / <!--{echo dnumber($forum[posts])}--></span><!--{/if}-->
  289.                                                                 </td>
  290.                                                                 <td class="fl_by">
  291.                                                                         <div>
  292.                                                                         <!--{if $forum['permission'] == 1}-->
  293.                                                                                 {lang private_forum}
  294.                                                                         <!--{else}-->
  295.                                                                                 <!--{if $forum['redirect']}-->
  296.                                                                                         <a href="$forumurl" class="xi2">{lang url_link}</a>
  297.                                                                                 <!--{elseif is_array($forum['lastpost'])}-->
  298.                                                                                         <a href="last-$forum[lastpost][tid].html" 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>
  299.                                                                                 <!--{else}-->
  300.                                                                                         {lang never}
  301.                                                                                 <!--{/if}-->
  302.                                                                         <!--{/if}-->
  303.                                                                         </div>
  304.                                                                 </td>
  305.                                                         </tr>
  306.                                                         <tr class="fl_row">

  307.                                                         <!--{/if}-->
  308.                                                 <!--{/if}-->
  309.                                                 <!--{/loop}-->
  310.                                                 <!--{if ($columnspad = $favorderid % $forumcolumns) > 0}--><!--{echo str_repeat('<td class="fl_g"'.($forumcolwidth ? " width="$forumcolwidth"" : '').'></td>', $forumcolumns - $columnspad);}--><!--{/if}-->
  311.                                                 </tr>
  312.                                         </table>

  313.                                 </div>
  314.                         </div>
  315.                         <!--{ad/intercat/bm a_c/-1}-->
  316.                 <!--{/if}-->
  317.                 <!--{loop $catlist $key $cat}-->
  318.                         <!--{hook/index_catlist $cat[fid]}-->
  319.                         <div class="bm bmw {if $cat['forumcolumns']} flg{/if} cl">
  320.                                 <div class="bm_h cl">
  321.                                         <span class="o">
  322.                                                 <img id="category_$cat[fid]_img" src="{IMGDIR}/$cat[collapseimg]" title="{lang spread}" alt="{lang spread}" onclick="toggle_collapse('category_$cat[fid]');" />
  323.                                         </span>
  324.                                         <!--{if $cat['moderators']}--><span class="y">{lang forum_category_modedby}: $cat[moderators]</span><!--{/if}-->
  325.                                         <!--{eval $caturl = !empty($cat['domain']) && !empty($_G['setting']['domain']['root']['forum']) ? 'http://'.$cat['domain'].'.'.$_G['setting']['domain']['root']['forum'] : '';}-->
  326.                                         <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>
  327.                                 </div>
  328.                                 <div id="category_$cat[fid]" class="bm_c" style="{echo $collapse['category_'.$cat[fid]]}">
  329.                                         <table cellspacing="0" cellpadding="0" class="fl_tb">
  330.                                                 <tr>
  331.                                                 <!--{loop $cat[forums] $forumid}-->
  332.                                                 <!--{eval $forum=$forumlist[$forumid];}-->
  333.                                                 <!--{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'];}-->
  334.                                                 <!--{if $cat['forumcolumns']}-->
  335.                                                         <!--{if $forum['orderid'] && ($forum['orderid'] % $cat['forumcolumns'] == 0)}-->
  336.                                                                 </tr>
  337.                                                                 <!--{if $forum['orderid'] < $cat['forumscount']}-->
  338.                                                                         <tr class="fl_row">
  339.                                                                 <!--{/if}-->
  340.                                                         <!--{/if}-->
  341.                                                         <td class="fl_g" width="$cat[forumcolwidth]">
  342.                                                                 <div class="fl_icn_g"{if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="width: {$forum[extra][iconwidth]}px;"{/if}>
  343.                                                                 <!--{if $forum[icon]}-->
  344.                                                                         $forum[icon]
  345.                                                                 <!--{else}-->
  346.                                                                         <a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}><img src="{IMGDIR}/forum{if $forum[folder]}_new{/if}.gif" alt="$forum[name]" /></a>
  347.                                                                 <!--{/if}-->
  348.                                                                 </div>
  349.                                                                 <dl{if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="margin-left: {$forum[extra][iconwidth]}px;"{/if}>
  350.                                                                         <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>
  351.                                                                         <!--{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}-->
  352.                                                                         <dd>
  353.                                                                         <!--{if $forum['permission'] == 1}-->
  354.                                                                                 {lang private_forum}
  355.                                                                         <!--{else}-->
  356.                                                                                 <!--{if $forum['redirect']}-->
  357.                                                                                         <a href="$forumurl" class="xi2">{lang url_link}</a>
  358.                                                                                 <!--{elseif is_array($forum['lastpost'])}-->
  359.                                                                                         <!--{if $cat['forumcolumns'] < 3}-->
  360.                                                                                                 <a href="last-$forum[lastpost][tid].html" 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>
  361.                                                                                         <!--{else}-->
  362.                                                                                                 <a href="last-$forum[lastpost][tid].html">{lang forum_lastpost}: $forum[lastpost][dateline]</a>
  363.                                                                                         <!--{/if}-->
  364.                                                                                 <!--{else}-->
  365.                                                                                         {lang never}
  366.                                                                                 <!--{/if}-->
  367.                                                                         <!--{/if}-->
  368.                                                                         </dd>
  369.                                                                         <!--{hook/index_forum_extra $forum[fid]}-->
  370.                                                                 </dl>
  371.                                                         </td>
  372.                                                 <!--{else}-->
  373.                                                         <td class="fl_icn" {if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="width: {$forum[extra][iconwidth]}px;"{/if}>
  374.                                                                 <!--{if $forum[icon]}-->
  375.                                                                         $forum[icon]
  376.                                                                 <!--{else}-->
  377.                                                                         <a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}><img src="{IMGDIR}/forum{if $forum[folder]}_new{/if}.gif" alt="$forum[name]" /></a>
  378.                                                                 <!--{/if}-->
  379.                                                         </td>
  380.                                                         <td>
  381.                                                                 <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>
  382.                                                                 <!--{if $forum[description]}--><p class="xg2">$forum[description]</p><!--{/if}-->
  383.                                                                 <!--{if $forum['subforums']}--><p>{lang forum_subforums}: $forum['subforums']</p><!--{/if}-->
  384.                                                                 <!--{if $forum['moderators']}--><p>{lang forum_moderators}: <span class="xi2">$forum[moderators]</span></p><!--{/if}-->
  385.                                                                 <!--{hook/index_forum_extra $forum[fid]}-->
  386.                                                         </td>
  387.                                                         <td class="fl_i">
  388.                                                                 <!--{if empty($forum[redirect])}--><span class="xi2"><!--{echo dnumber($forum[threads])}--></span><span class="xg1"> / <!--{echo dnumber($forum[posts])}--></span><!--{/if}-->
  389.                                                         </td>
  390.                                                         <td class="fl_by">
  391.                                                                 <div>
  392.                                                                 <!--{if $forum['permission'] == 1}-->
  393.                                                                         {lang private_forum}
  394.                                                                 <!--{else}-->
  395.                                                                         <!--{if $forum['redirect']}-->
  396.                                                                                 <a href="$forumurl" class="xi2">{lang url_link}</a>
  397.                                                                         <!--{elseif is_array($forum['lastpost'])}-->
  398.                                                                                 <a href="last-$forum[lastpost][tid].html" 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>
  399.                                                                         <!--{else}-->
  400.                                                                                 {lang never}
  401.                                                                         <!--{/if}-->
  402.                                                                 <!--{/if}-->
  403.                                                                 </div>
  404.                                                         </td>
  405.                                                 </tr>
  406.                                                 <tr class="fl_row">
  407.                                                 <!--{/if}-->
  408.                                                 <!--{/loop}-->
  409.                                                 $cat['endrows']
  410.                                                 </tr>
  411.                                         </table>
  412.                                 </div>
  413.                         </div>
  414.                         <!--{ad/intercat/bm a_c/$cat[fid]}-->
  415.                 <!--{/loop}-->
  416.                         <!--{if !empty($collectiondata['data'])}-->

  417.                         <!--{eval $forumscount = count($collectiondata['data']);}-->
  418.                         <!--{eval $forumcolumns = 4;}-->

  419.                         <!--{eval $forumcolwidth = (floor(100 / $forumcolumns) - 0.1).'%';}-->

  420.                         <div class="bm bmw {if $forumcolumns} flg{/if} cl">
  421.                                 <div class="bm_h cl">
  422.                                         <span class="o">
  423.                                                 <img id="category_-2_img" src="{IMGDIR}/$collapse['collapseimg_-2']" title="{lang spread}" alt="{lang spread}" onclick="toggle_collapse('category_-2');" />
  424.                                         </span>
  425.                                         <h2><a href="forum.php?mod=collection">{lang recommend_collection}</a></h2>
  426.                                 </div>
  427.                                 <div id="category_-2" class="bm_c" style="{echo $collapse['category_-2']}">
  428.                                         <table cellspacing="0" cellpadding="0" class="fl_tb">
  429.                                                 <tr>
  430.                                                 <!--{eval $ctorderid = 0;}-->
  431.                                                 <!--{loop $collectiondata['data'] $key $colletion}-->
  432.                                                         <!--{if $ctorderid && ($ctorderid % $forumcolumns == 0)}-->
  433.                                                                 </tr>
  434.                                                                 <!--{if $ctorderid < $forumscount}-->
  435.                                                                         <tr class="fl_row">
  436.                                                                 <!--{/if}-->
  437.                                                         <!--{/if}-->
  438.                                                         <td class="fl_g"{if $forumcolwidth} width="$forumcolwidth"{/if}>
  439.                                                                 <div class="fl_icn_g">
  440.                                                                 <a href="forum.php?mod=collection&action=view&ctid={$colletion[ctid]}" target="_blank"><img src="{IMGDIR}/forum.gif" alt="$colletion[name]" /></a>
  441.                                                                 </div>
  442.                                                                 <dl>
  443.                                                                         <dt><a href="forum.php?mod=collection&action=view&ctid={$colletion[ctid]}">$colletion[name]</a></dt>
  444.                                                                         <dd><em>{lang forum_threads}: <!--{echo dnumber($colletion[threadnum])}--></em>, <em>{lang collection_commentnum}: <!--{echo dnumber($colletion[commentnum])}--></em></dd>
  445.                                                                         <dd>
  446.                                                                         <!--{if $colletion['lastpost']}-->
  447.                                                                                 <!--{if $forumcolumns < 3}-->
  448.                                                                                         <a href="last-$colletion[lastpost].html" class="xi2"><!--{echo cutstr($colletion[lastsubject], 30)}--></a> <cite><!--{date($colletion[lastposttime])}--> <!--{if $colletion['lastposter']}-->$colletion['lastposter']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
  449.                                                                                 <!--{else}-->
  450.                                                                                         <a href="last-$colletion[lastpost].html">{lang forum_lastpost}: <!--{date($colletion[lastposttime])}--></a>
  451.                                                                                 <!--{/if}-->
  452.                                                                         <!--{else}-->
  453.                                                                                 {lang never}
  454.                                                                         <!--{/if}-->
  455.                                                                         </dd>
  456.                                                                         <!--{hook/index_datacollection_extra $colletion[ctid]}-->
  457.                                                                 </dl>
  458.                                                         </td>
  459.                                                         <!--{eval $ctorderid++;}-->

  460.                                                 <!--{/loop}-->
  461.                                                 <!--{if ($columnspad = $ctorderid % $forumcolumns) > 0}--><!--{echo str_repeat('<td class="fl_g"'.($forumcolwidth ? " width="$forumcolwidth"" : '').'></td>', $forumcolumns - $columnspad);}--><!--{/if}-->
  462.                                                 </tr>
  463.                                         </table>

  464.                                 </div>
  465.                         </div>

  466.                         <!--{/if}-->

  467.                 </div>

  468.                 <!--{hook/index_middle}-->
  469.                 <div class="wp mtn">
  470.                         <!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]-->
  471.                 </div>

  472.                 <!--{if empty($gid) && $_G['setting']['whosonlinestatus']}-->
  473.                         <div id="online" class="bm oll">
  474.                                 <div class="bm_h">
  475.                                 <!--{if $detailstatus}-->
  476.                                         <span class="o"><a href="forum.php?showoldetails=no#online" title="{lang spread}"><img src="{IMGDIR}/collapsed_no.gif" alt="{lang spread}" /></a></span>
  477.                                         <h3>
  478.                                                 <strong><a href="home.php?mod=space&do=friend&view=online&type=member">{lang onlinemember}</a></strong>
  479.                                                 <span class="xs1">- <strong>$onlinenum</strong> {lang onlines}
  480.                                                 - <strong>$membercount</strong> {lang index_members}(<strong>$invisiblecount</strong> {lang index_invisibles}),
  481.                                                 <strong>$guestcount</strong> {lang index_guests}
  482.                                                 - {lang index_mostonlines} <strong>$onlineinfo[0]</strong> {lang on} <strong>$onlineinfo[1]</strong>.</span>
  483.                                         </h3>
  484.                                 <!--{else}-->
  485.                                         <!--{if empty($_G['setting']['sessionclose'])}-->
  486.                                                 <span class="o"><a href="forum.php?showoldetails=yes#online" title="{lang spread}"><img src="{IMGDIR}/collapsed_yes.gif" alt="{lang spread}" /></a></span>
  487.                                         <!--{/if}-->
  488.                                         <h3>
  489.                                                 <strong>
  490.                                                         <!--{if !empty($_G['setting']['whosonlinestatus'])}-->
  491.                                                                 {lang onlinemember}
  492.                                                         <!--{else}-->
  493.                                                                 <a href="home.php?mod=space&do=friend&view=online&type=member">{lang onlinemember}</a>
  494.                                                         <!--{/if}-->
  495.                                                 </strong>
  496.                                                 <span class="xs1">- {lang total} <strong>$onlinenum</strong> {lang onlines}
  497.                                                 <!--{if $membercount}-->- <strong>$membercount</strong> {lang index_members},<strong>$guestcount</strong> {lang index_guests}<!--{/if}-->
  498.                                                 - {lang index_mostonlines} <strong>$onlineinfo[0]</strong> {lang on} <strong>$onlineinfo[1]</strong>.</span>
  499.                                         </h3>
  500.                                 <!--{/if}-->
  501.                                 </div>
  502.                         <!--{if $_G['setting']['whosonlinestatus'] && $detailstatus}-->
  503.                                 <dl id="onlinelist" class="bm_c">
  504.                                         <dt class="ptm pbm bbda">$_G[cache][onlinelist][legend]</dt>
  505.                                         <!--{if $detailstatus}-->
  506.                                                 <dd class="ptm pbm">
  507.                                                 <ul class="cl">
  508.                                                 <!--{if $whosonline}-->
  509.                                                         <!--{loop $whosonline $key $online}-->
  510.                                                                 <li title="{lang time}: $online[lastactivity]">
  511.                                                                 <img src="{STATICURL}image/common/$online[icon]" alt="icon" />
  512.                                                                 <!--{if $online['uid']}-->
  513.                                                                         <a href="home.php?mod=space&uid=$online[uid]">$online[username]</a>
  514.                                                                 <!--{else}-->
  515.                                                                         $online[username]
  516.                                                                 <!--{/if}-->
  517.                                                                 </li>
  518.                                                         <!--{/loop}-->
  519.                                                 <!--{else}-->
  520.                                                         <li style="width: auto">{lang online_only_guests}</li>
  521.                                                 <!--{/if}-->
  522.                                                 </ul>
  523.                                         </dd>
  524.                                         <!--{/if}-->
  525.                                 </dl>
  526.                         <!--{/if}-->
  527.                         </div>
  528.                 <!--{/if}-->

  529.                 <!--{if empty($gid) && ($_G['cache']['forumlinks'][0] || $_G['cache']['forumlinks'][1] || $_G['cache']['forumlinks'][2])}-->
  530.                 <div class="bm lk">
  531.                         <div id="category_lk" class="bm_c ptm">
  532.                                 <!--{if $_G['cache']['forumlinks'][0]}-->
  533.                                         <ul class="m mbn cl">$_G['cache']['forumlinks'][0]</ul>
  534.                                 <!--{/if}-->
  535.                                 <!--{if $_G['cache']['forumlinks'][1]}-->
  536.                                         <div class="mbn cl">
  537.                                                 $_G['cache']['forumlinks'][1]
  538.                                         </div>
  539.                                 <!--{/if}-->
  540.                                 <!--{if $_G['cache']['forumlinks'][2]}-->
  541.                                         <ul class="x mbm cl">
  542.                                                 $_G['cache']['forumlinks'][2]
  543.                                         </ul>
  544.                                 <!--{/if}-->
  545.                         </div>
  546.                 </div>
  547.                 <!--{/if}-->

  548.                 <!--{hook/index_bottom}-->
  549.         </div>

  550.         <!--{if $_G['setting']['forumallowside']}-->
  551.                 <div id="sd" class="sd">
  552.                         <!--{hook/index_side_top}-->
  553.                         <div class="drag">
  554.                                 <!--[diy=diy2]--><div id="diy2" class="area"></div><!--[/diy]-->
  555.                         </div>
  556.                         <!--{hook/index_side_bottom}-->
  557.                 </div>
  558.         <!--{/if}-->
  559. </div>
  560. <!--{if $_G['group']['radminid'] == 1}-->
  561.         <!--{eval helper_manyou::checkupdate();}-->
  562. <!--{/if}-->
  563. <!--{if empty($_G['setting']['disfixednv_forumindex']) }--><script>fixed_top_nv();</script><!--{/if}-->
  564. <!--{template common/footer}-->
复制代码


回复

使用道具 举报

 楼主| 发表于 2016-7-25 21:50:13 | 显示全部楼层
QQ截图20160725214948.jpg

要的链接是这样的格式
回复

使用道具 举报

发表于 2016-7-26 15:05:04 | 显示全部楼层
修改  以上代码中的伪静态规则即可!
回复

使用道具 举报

 楼主| 发表于 2016-7-26 17:01:29 | 显示全部楼层
admin 发表于 2016-7-26 15:05
修改  以上代码中的伪静态规则即可!

能不能详细的说说啊,我不会写啊
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|Discuz代码分析|Discuz目录结构|DZ起点网 ( 蜀ICP备13000518号-15 )

GMT+8, 2024-4-29 13:14 , Processed in 0.063823 second(s), 24 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表