?mod=forumdisplay&fid=51&filter=dede list typeidd&dede list typeidd=11 里面的正常人类账号

1688.com,阿里巴巴打造的全球最大的采购批发平台
1688/淘宝会员(仅限会员名)请在此登录
cbulogin.et2Server is OK查看: 977|回复: 0
http://bbs.mumayi.com/forum.php?mod=forumdisplay&fid=2084&ty
兑换券0 元
在线时间96 小时
木蚂蚁M点17
主题帖子积分
木蚂蚁初中二年级, 积分 14791, 距离下一级还需 209 积分
木蚂蚁初中二年级, 积分 14791, 距离下一级还需 209 积分
http://bbs.mumayi.com/forum.php?mod=forumdisplay&fid=2084&typeid=6209&typeid=6209&filter=typeid&page=51
上一篇:下一篇:
推荐版块:
&nbsp&nbsp|&nbsp&nbsp
&nbsp&nbsp|&nbsp&nbsp
&nbsp&nbsp|&nbsp&nbsp
&nbsp&nbsp|&nbsp&nbsp
&nbsp&nbsp|&nbsp&nbsp
&nbsp&nbsp&nbsp&nbsp
&nbsp&nbsp
&nbsp&nbsp|&nbsp&nbsp
&nbsp&nbsp|&nbsp&nbsp
&nbsp&nbsp|&nbsp&nbsp
&nbsp&nbsp|&nbsp&nbsp
&nbsp&nbsp|&nbsp&nbsp
&nbsp&nbsp&nbsp&nbsp
&nbsp&nbsp
&nbsp&nbsp
&nbsp&nbsp
&nbsp&nbsp
&nbsp&nbsp
&nbsp&nbsp
&nbsp&nbsp
&nbsp&nbsp
&nbsp&nbsp
&nbsp&nbsp
&nbsp&nbsp
木蚂蚁官方微信:欢迎光临杨雨的个人博客站!
关注互联网和搜索引擎的个人博客网站
Discuz教程:主题分类伪静态(亲测)iis/apache/nginx
发布时间:  编辑:   点击:   
首先准备好修改的模板文件:forumdisplay.htm、forumdisplay_list.htm,这两个文件都在 \template\default\forum 的目录下。我们要先修改主题分类的:打开forumdisplay.htm的源代码:默认主题一般在415行,当然如你的主题有修改过模板,以你的主题文件为准&li&&a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=typeid&typeid=$id$forumdisplayadd[typeid]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}"&修改为:&li&&a href="forumtype-$_G[fid]-$id-$page.html{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}"&接下来再打开forumdisplay_list.htm的源代码:默认主题一般在162行,如你的主题有修改过模板,以你的主题文件为准找到:&a href="forum.php?mod=viewthread&tid=$thread[tid]&{if $_GET['archiveid']}archiveid={$_GET['archiveid']}&{/if}extra=$extra"$thread[highlight]{if $thread['isgroup'] == 1 || $thread['forumstick']} target="_blank"{else}{/if}&$thread[subject]&/a&修改为:&a href="forum.php?mod=viewthread&tid=$thread[tid]{if $_G['gp_archiveid']}&archiveid={$_G['gp_archiveid']}{/if}"$thread[highlight]{if $thread['isgroup'] == 1 || $thread['forumstick']} target="_blank"{else}{/if}&$thread[subject]&/a&主题类别前缀【只显示文字】,2个地方需要修改1、打开source\module\forum\forum_forumdisplay.php,查找forum.php?mod=forumdisplay&fid='.$_G['fid'].'&filter=typeid&typeid='.$thread['typeid'].'替换为forumtype-'.$_G['fid'].'-'.$thread['typeid'].'-1.html2、打开模板目录viewthread.htm,查找forum.php?mod=forumdisplay&fid=$_G[fid]&filter=typeid&typeid=$_G[forum_thread][typeid]替换为forumtype-$_G[fid]-{$_G[forum_thread][typeid]}-1.html最后我们要把主题分类的伪静态规则添加到相应文件中,规则如下(因为环境问题,只测试了.htaccess,其它请自行测试):nginx .htaccess 伪静态规则&RewriteCond %{QUERY_STRING} ^(.*)$&RewriteRule ^forumtype-(\w+)-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&filter=typeid&typeid=$2&page=$3&%1httpd.ini 伪静态规则RewriteRule ^(.*)/forumtype-(\w+)-(\w+)-([0-9]+)\.html(\?(.*))*$ $1/forum\.php\?mod=forumdisplay&fid=$2&filter=typeid&typeid=$3&page=$4&$5Apache web.config 伪静态规则&&rule&&&match url="^(.*/)*forumtype-(\w+)-(\w+)-([0-9]+).html\?*(.*)[ DISCUZ_CODE_2 ] /&&&action type="Rewrite" url="{R:1}/forum.php\?mod=forumdisplay&fid={R:2}&filter=typeid&typeid={R:3}&page={R:4}&{R:5}" /&&&/rule&
本文地址:http://itbyc.com/cms/discuz/15162.html
转载请注明出处。
分享是一种快乐,也是一种美德:
与《Discuz教程:主题分类伪静态(亲测)iis/apache/nginx》相关文章
评论列表(网友评论仅供网友表达个人看法,并不表明本站同意其观点或证实其描述)
滇ICP备号-1推荐这篇日记的豆列
&&&&&&&&&&&&

我要回帖

更多关于 dede typeid 的文章

 

随机推荐