Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[插件] 社区测试员 for 4.1 (最后更新: 06.04.06 19:11)

[复制链接]
泡哥 发表于 2006-4-6 15:44:52 | 显示全部楼层 |阅读模式
插件功能:
给社区增加一个测试用户,使之不能修改密码!

插件演示:
bbs.dpwin.net      用户名:test    密码:test

插件安装:
1.修改./templates/default/memcp_profile.htm

1-1 找到
  1.         <td class="altbg2"><input type="password" name="newpassword" size="25"> <span class="smalltxt">{lang memcp_profile_passwd_comment}</span></td>
复制代码

替换成
  1.         <td class="altbg2"><!--{if $discuz_user != 'test'}--><input type="password" name="newpassword" size="25"> <span class="smalltxt">{lang memcp_profile_passwd_comment}</span><!--{else}-->{lang memcp_profile_test}<!--{/if}--></td>
复制代码


1-2 找到
  1.         <td class="altbg2"><input type="password" name="newpassword2" size="25"> <span class="smalltxt">{lang memcp_profile_passwd_comment}</span></td>
复制代码

替换成
  1.         <td class="altbg2"><!--{if $discuz_user != 'test'}--><input type="password" name="newpassword2" size="25"> <span class="smalltxt">{lang memcp_profile_passwd_comment}</span><!--{else}-->{lang memcp_profile_test}<!--{/if}--></td>
复制代码


2.修改./templates/default/templates.lang.php
找到
  1.         'memcp_profile_passwd_comment' => '如不需要更改密码,此处请留空',
复制代码

上面加
  1.         'memcp_profile_test' => '测试用户无法使用该功能',
复制代码


3.修改 ./memcp.php
找到
  1.                 if($newpassword || $secquesnew != $discuz_secques) {
复制代码

下面加
  1.                         if($discuz_user == 'test')showmessage('profile_test_wrong', NULL, 'HALTED');
复制代码


4.修改 ./templates/default/messages.lang.php
找到
  1.         'profile_passwd_wrong' => '原密码不正确,您不能修改密码或安全提问,请返回。',
复制代码

上面加
  1.         'profile_test_wrong' => '测试用户无法使用该功能,请返回。',
复制代码


5.后台增加新会员   会员名:test  密码:test  赋予相应的测试权限!

6.更新缓存ok!

补丁更新:请安装3~4步插件代码

[ 本帖最后由 泡哥 于 2006-4-6 19:16 编辑 ]

评分

1

查看全部评分

月无痕 发表于 2006-4-6 15:47:40 | 显示全部楼层
难得坐泡哥沙发,哈哈,支持泡哥,先测试一下看看
回复

使用道具 举报

tiger21 发表于 2006-4-6 15:51:21 | 显示全部楼层
还没看就回帖了。。。。。。。。
支持板凳。。。
回复

使用道具 举报

linsie 发表于 2006-4-6 15:58:49 | 显示全部楼层
UP
回复

使用道具 举报

红色公牛 发表于 2006-4-6 17:01:30 | 显示全部楼层
这个要支持。~up
回复

使用道具 举报

hao123123 发表于 2006-4-6 17:05:16 | 显示全部楼层
这位不占就没了
回复

使用道具 举报

泡海椒 发表于 2006-4-6 17:08:12 | 显示全部楼层
占个位ing。。。。。。。。
回复

使用道具 举报

我飘过 发表于 2006-4-6 17:10:25 | 显示全部楼层
有BUG.
可修改密码.
回复

使用道具 举报

hkkit 发表于 2006-4-6 17:21:01 | 显示全部楼层
原帖由 我飘过 于 2006-4-6 17:10 发表
有BUG.
可修改密码.

请列明出現BUG的情況
回复

使用道具 举报

hkkit 发表于 2006-4-6 17:21:39 | 显示全部楼层
建議在發帖回帖編帖加入if判斷

不允許測試員使用
回复

使用道具 举报

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

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-5-19 02:41 , Processed in 0.146971 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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