Discuz伪静态.htaccess规则和贴内右侧广告环绕
11 八, 2010实在无聊,继续打造我的社区计划。。。真累。Discuz还从来没有系统的折腾过呢,修改个模板都得先在google搜。。。
麻烦。不过从头开始好了。。玩wordpress开始时也是什么都不会呢。。。
Discuz伪静态.htaccess规则
1 2 3 4 5 6 7 | RewriteEngine On RewriteBase / RewriteRule ^archiver/((fid|tid)-[\w\-]+\.html)$ archiver/index.php?$1 RewriteRule ^forum-([0-9]+)-([0-9]+)\.html$ forumdisplay.php?fid=$1&page=$2 RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ viewthread.php?tid=$1&extra=page\%3D$3&page=$2 RewriteRule ^space-(username|uid)-(.+)\.html$ space.php?$1=$2 RewriteRule ^tag-(.+)\.html$ tag.php?name=$1 |
Discuz贴内右侧广告环绕
找到viewthread_node.htm 模板文件做以下修改,把贴内右侧广告改成环绕方式。
找到以下代码并删除
<!--{if $admode && empty($insenz['hardadstatus']) && !empty($advlist['thread3'][$post['count']])}--><div class="ad_pip" id="ad_thread3_$post[count]">$advlist[thread3][$post[count]]</div><!--{else}--><div id="ad_thread3_$post[count]"></div><!--{/if}--><div id="ad_thread4_$post[count]"></div>
在查找这段代码
<td class="t_msgfont" id="postmessage_$post[pid]">$post[message]</td>
并替换为
<td class="t_msgfont" id="postmessage_$post[pid]"><!--{if $admode && empty($insenz['hardadstatus']) && !empty($advlist['thread3'][$post['count']])}--><div class="ad_pip" id="ad_thread3_$post[count]">$advlist[thread3][$post[count]]</div><!--{else}--><div id="ad_thread3_$post[count]"></div><!--{/if}--><div id="ad_thread4_$post[count]"></div>$post[message]</td>
-
@Bee君 , 是啊 。。真麻烦人,我是极其讨厌采集的。。我一般都是自己来的。。但是我一直有个梦想,想管理好一个社区,有很多人。。- -
-
@openboy , 我开博客之前是玩论坛的….,唉,论坛超累,当时我们是几个同学一起建立的,后来大家毕业了,就没弄了~~我当时也这样…但是遥不可及..唉..事与愿违
-
Leave a Reply
Using Gravatars in the comments - get your own and be recognized!
XHTML: These are some of the tags you can use: <a href=""> <b> <blockquote> <code> <em> <i> <strike> <strong>
一个人搞论坛绝对是超辛苦…无比低的回报………