有些会员喜欢看其他会员的个性签名,有些会员则为了浏览速度选择不浏览。
适用4.0 正式版
修改文件:memcp.php, include/common.inc.php
修改模板:viewthread.htm, memcp_profile.htm
1. 升级数据库
- ALTER TABLE `cdb_members` ADD `showsignature` smallint(2) DEFAULT '1' NOT NULL;
复制代码
2. include/common.inc.php
找到(有2处)
在第一处后面加
- , m.showsignature AS showsignature
复制代码
3. 打开memcp.php
找到
在上面加入
- if ($member['showsignature'] == 0)
- {
- $checkhidesignature = 'checked';
- }
- else
- {
- $checkshowsignature = 'checked';
- }
复制代码
找到
在前面加入
- showsignature='$showsignaturenew',
复制代码
4. 打开viewthread.htm
找到
- <!--{if $post['signature']
复制代码
在后面加入
5. 打开memcp_profile.htm
找到
- <tr>
- <td class="altbg1" valign="top">{lang signature}<!--{if $maxsigsize}--> ($maxsigsize {lang bytes_limited})<!--{/if}-->:<br><br>
- <span class="smalltxt">
复制代码
在上面加入
- <tr>
- <td class="altbg1" valign="top">浏览主题时是否显示用户签名(包括自己):</td>
- <td class="altbg2">
- <input type="radio" value="1" name="showsignaturenew" $checkshowsignature>显示
- <input type="radio" value="0" name="showsignaturenew" $checkhidesignature>不显示 (选择不显示,可提高浏览速度)</td>
- </tr>
复制代码
搞掂。
[ 本帖最后由 秋舞叶 于 2005-12-24 16:46 编辑 ] |