
引用内容
目前修改了以下文件:
会员列表:memberlist.htm
积分页面:memcp_credits.htm
注册页面:register.htm
打印页面:viewthread_printable.htm
archiver页面:archiver/index.php
内容页面:viewthread_node.htm
首页板块:discuz.htm
主题列表页面:templates/defaul/forumdisplay.htm
主题内容页面:templates/defaul/viewthread_node.htm
主题内容页面code:templates/default/discuzcode.htm
discuzcode代码实行页面:include/discuzcode.func.php
会员列表:memberlist.htm
增加头像显示http://ry168.net/bbs/thread-73-1-1.html
积分页面:memcp_credits.htm
移动访问推广位置在上面显示。
注册页面:register.htm
去掉【注册超大 Hotmail 邮箱】提示,搜索下面的代码,删除掉 <label><em> </em><a href="https://domains.live.com/members/signup.aspx?domain=$msn[domain]" target="_blank" style="float: left; overflow: hidden; width: 223px; white-space: nowrap;"><!--{if $msn['on']}-->{lang msn_email_reglink}<!--{else}-->{lang msn_email_reglink_default}<!--{/if}--></a></label>
复制代码个人中心:memcp_profile.htm
打印页面:viewthread_printable.htm
修改底部信息。
内容页面:viewthread_node.htm
移动报告帖子位置;修改方法:
打开templates/default/css_viewthread.htm在末尾添加 .policepost { color: {NOTICETEXT}; background: url({IMGDIR}/policepost.gif) no-repeat 0 50%; }
复制代码保存覆盖。
打开templates/default/viewthread_node.htm
搜索 <a class="editpost" href="post.php?action=edit&fid=$fid&tid=$tid&pid=$post[pid]"{if !$post['first'] || !$threadsort && !$thread['special']} onclick="floatwin('open_edit', this.href, 600, 410, '600,0');return false;"{/if}>{lang edit}</a>
<!--{/if}-->
复制代码在下面添加 <!--{if !$forum['ismoderator'] && $discuz_uid && $reportpost && $discuz_uid != $post['authorid']}-->
<a class="policepost" href="misc.php?action=report&fid=$fid&tid=$tid&pid=$post[pid]" onclick="floatwin('open_report', this.href, 250, 215);doane(event);">{lang reportpost}</a>
<!--{/if}-->
复制代码再搜索 <!--{if !$forum['ismoderator'] && $discuz_uid && $reportpost && $discuz_uid != $post['authorid']}-->
<a href="misc.php?action=report&fid=$fid&tid=$tid&pid=$post[pid]" onclick="floatwin('open_report', this.href, 250, 215);doane(event);">{lang reportpost}</a>
<!--{/if}-->
复制代码删除掉,保存覆盖,下载下面的图片到images/default里面,最后更新下CSS和模板缓存即可。
演示图
首页板块:discuz.htm
去掉其中的<div class="left">和</div>。
archiver页面:archiver/index.php
修改底部信息。
以上页面本人有小改动,在此记录一下!
所有风格统一css_append.htm的定义 #ann li { padding-left: 0px; }
.list th { background-image: none; padding-left: 5px !important; }
.list th.new { background-image: none; }
.forumnums { text-align: center; padding-right: 0px !important; }
.nums { text-align: center; }
.headermenu_popup li { width: 100%; }
.forumaction .digest { padding-left: 25px; }
.content { padding: 15px 20px 0; }

引用内容
纯字母标题不能换行的临时解决办法!
打开css_append.htm在末尾添加.threadlist table th { table-layout:fixed; word-break: break-all; overflow:hidden; }
复制代码保存覆盖,后台更新CSS缓存即可。
在线列表每行显示几位调整,本社区调整为12%,就是一行显示8位,默认一行显示4位,并修正了不对齐的问题。
打开css_append.htm在末尾添加#onlinelist dd ul li { width: 12%; margin: 0px; height: 20px; line-height: 20px; }
复制代码保存覆盖,更新下CSS缓存即可。

引用内容
贴内个人信息直接显示昵称!
打开templates/defaul/viewthread_node.htm
搜索<!--{if $post['nickname']}--><em>($post[nickname])</em><!--{/if}-->
复制代码删除掉,
搜索<p><em>$post[authortitle]</em></p>
复制代码换成<p><!--{if $post['nickname']}-->{lang nickname}: <em>$post[nickname]</em><br /><!--{/if}-->{lang index_status}: <em>$post[authortitle]</em></p>
复制代码保存覆盖,后台更新模板缓存即可。

引用内容
简单修改优先显示【本版规则】
今天晚上想了想就来心思去改了下,现在把方法提供给需要的朋友!
说明:板块内同时开了推荐主题和本版规则后,默认会优先显示推荐主题,以下修改方法,就是把本版规则设置为优先显示。
演示:http://www.ry168.net/bbs/forum-5-1.html
打开templates/defaul/forumdisplay.htm
搜索<!--{if $forum['recommendlist']}--><a href="javascript:;" id="tab_1" class="current" {if $forum['rules']} onclick="switchtab(2, 1)"{/if}>{lang forum_recommend}</a><!--{/if}--><!--{if $forum['recommendlist'] && $forum['rules']}--><span class="pipe">|</span><!--{/if}--><!--{if $forum['rules']}--><a href="javascript:;" id="tab_2"{if !$forum['recommendlist']} class="current"{/if} {if $forum['recommendlist']} onclick="switchtab(2, 2)"{/if}>{lang forum_rules}</a><!--{/if}-->
复制代码换成<!--{if $forum['rules']}--><a href="javascript:;" id="tab_2" class="current" {if $forum['recommendlist']} onclick="switchtab(2, 2)"{/if}>{lang forum_rules}</a><!--{/if}--><!--{if $forum['rules'] && $forum['recommendlist']}--><span class="pipe">|</span><!--{/if}--><!--{if $forum['recommendlist']}--><a href="javascript:;" id="tab_1"{if !$forum['rules']} class="current"{/if} {if $forum['rules']} onclick="switchtab(2, 1)"{/if}>{lang forum_recommend}</a><!--{/if}-->
复制代码搜索<div id="tabc_1"
复制代码在后面添加{if $forum['rules']} style="display:none"{/if}
复制代码搜索{if $forum['recommendlist']} style="display:none"{/if}
复制代码删除掉,然后保存覆盖,后台更新下模板缓存即可!

引用内容
mp3、wma音频附件上传后增加播放器!
演示地址:http://www.ry168.net/bbs/thread-103-1-2.html
打开templates/default/discuzcode.htm
搜索<dl class="t_attachlist">
复制代码在上面添加播放代码 <!--{if fileext($attach['filename']) == 'mp3'||fileext($attach['filename']) == 'wma'}-->
<p style="clear:both;"><object classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6" width="260" height="64"><param name="autostart" value="0" /><param name="url" value="attachment.php?aid=$attach[aid]&k=$k&t=$timestamp" /><param name="PlayCount" value="100" /><embed src="attachment.php?aid=$attach[aid]&k=$k&t=$timestamp" autostart="0" type="audio/x-ms-wma" width="260" height="64"></embed></object></p>
<!--{/if}-->
复制代码搜索$attach[attachicon] <span style="white-space: nowrap"
复制代码在上面添加上面播放代码,保存,覆盖更新即可。
其中<param name="PlayCount" value="100" />是循环播放次数,如果不想循环播放,那去掉这段即可,其中的100就是循环播放100次。

引用内容
内置多媒体mp3、wma增加循环播放次数
打开include/discuzcode.func.php
分别搜索第一个和第三个<param name="url" value="'.$url.'" />
复制代码分别在后面添加<param name="PlayCount" value="100" />
复制代码保存,覆盖即可,其中100就是循环播放100次。

引用内容
贴内右侧广告环绕
转自http://www.discuz.net/thread-1198117-1-1.html
打开 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>
复制代码

引用内容
第1种:主题列表字体大号统一定义
打开风格包css_append.htm添加
.threadlist th a { font-size: 14px; }即可。
第2种:只定义高亮主题字体大号
打开forumdisplay.php
搜索style="'
复制代码换成style="font-size: 14px;'
复制代码保存覆盖即可!
只能选择其中一种来定义,本站选择的是第2种定义,可看演示图:


引用内容
贴内个人信息直接显示当前是否在线
打开templates/defaul/viewthread_node.htm
搜索 <!--{if $vtonlinestatus && $post['authorid']}-->
<!--{if ($vtonlinestatus == 2 && $onlineauthors[$post[authorid]]) || ($vtonlinestatus == 1 && ($timestamp - $post['lastactivity'] <= 10800) && !$post['invisible'])}-->
<em>{lang online}
<!--{else}-->
<em>{lang offline}
<!--{/if}-->
</em>
<!--{/if}-->
复制代码删除掉,搜索<p><em>$post[authortitle]</em></p>
复制代码换成 <p><!--{if $vtonlinestatus && $post['authorid']}-->
{lang online_status}:
<!--{if ($vtonlinestatus == 2 && $onlineauthors[$post[authorid]]) || ($vtonlinestatus == 1 && ($timestamp - $post['lastactivity'] <= 10800) && !$post['invisible'])}-->
<em>{lang online}</em>
<!--{else}-->
{lang offline}
<!--{/if}-->
<br />
<!--{/if}-->
{lang index_status}: <em>$post[authortitle]</em></p>
复制代码保存覆盖即可。