在DZ6.1F寻找回合并用户/清理短消息/uid选号添加用户功能品[D6功能移植模块]
[b][size=4]已经在本帖6楼提供下载:[url]http://www.freediscuz.net/bbs/viewthread.php?tid=4711&page=1#pid30228[/url][/size][/b]=======================================
容许我卖个关子:$
这次的就直接集成在后台了,但因为涉及改动较多文件,因此待测试正常后再放出。
功能标题已经说了。发现1个多月没接触dz、搞面向对象的php编程后,重新看回突然觉得dz的代码确实写得很乱:L
[[i] 本帖最后由 horseluke 于 2009-6-10 15:23 编辑 [/i]] 再加一个模块,清理短消息功能。
睡觉先,明天接着干。
下一个模块,可能恢复后台uid选号注册功能。
==============================
有意尝鲜的用户可通过svn下载这些文件(包括修改的系统文件,请用Beyond Compare自行对照)进行试用:
[url]http://discuzplugin-hl.googlecode.com/svn/trunk/d6functodz61f/[/url]
最后更新:
[url]http://code.google.com/p/discuzplugin-hl/source/detail?r=39[/url]
本人不承担试用的任何后果
[[i] 本帖最后由 horseluke 于 2009-3-3 22:50 编辑 [/i]] 没有手动改动的记录吗? [quote]原帖由 [i]renothing[/i] 于 2009-3-3 12:51 发表 [url=http://www.freediscuz.net/bbs/redirect.php?goto=findpost&pid=30216&ptid=4711][img]http://www.freediscuz.net/bbs/images/common/back.gif[/img][/url]
没有手动改动的记录吗? [/quote]
svn下载后可自行对照查看,我都有明显的注释
待全部完工了就会放出来的~
PS:发现短消息部分(包括短消息容量及短消息公告)特难处理,修改文件太多,可能放弃:Q
老师很偷懒,我也很无奈:L
[[i] 本帖最后由 horseluke 于 2009-3-3 13:35 编辑 [/i]]
uid选号添加用户功能修复完毕
........................附件下载及修改方法
1,下载附件并上传upload下面的所有文件。[b]2,打开admincp.php,查找[/b][code]if(in_array($action, array('home', 'settings', 'members', 'groups', 'forums', 'threadtypes', 'threads', 'moderate', 'attachments', 'smilies', 'recyclebin', 'prune', 'styles', 'plugins', 'magics', 'medals', 'google', 'qihoo', 'video', 'announcements', 'faq', 'ecommerce', 'tradelog', 'creditwizard', 'jswizard', 'project', 'counter', 'misc', 'advertisements', 'insenz', 'logs', 'tools', 'checktools', 'upgrade')) || ($isfounder && in_array($action, array('runwizard', 'templates', 'database')))) {[/code]修改为[code] if(in_array($action, array('d6func','home', 'settings', 'members', 'groups', 'forums', 'threadtypes', 'threads', 'moderate', 'attachments', 'smilies', 'recyclebin', 'prune', 'styles', 'plugins', 'magics', 'medals', 'google', 'qihoo', 'video', 'announcements', 'faq', 'ecommerce', 'tradelog', 'creditwizard', 'jswizard', 'project', 'counter', 'misc', 'advertisements', 'insenz', 'logs', 'tools', 'checktools', 'upgrade')) || ($isfounder && in_array($action, array('runwizard', 'templates', 'database')))) {[/code][b]3,打开admin\main.inc.php[/b]
查找[code]showheader('tools', $isfounder && checkpermission('dbimport', 0) ? 'database&operation=export' : 'counter');[/code]在下面添加[code]//D6功能移植to6.1f by horseluke
$lang['header_d6func']='D6功能移植';
showheader('d6func', 'd6func&operation=intro');
//D6功能移植to6.1f by horseluke [/code]继续查找[code]var headers = new Array('index', 'global', 'forum', 'user', 'topic', 'extended', 'misc', 'tools', 'adv');[/code]改为[code]var headers = new Array('index', 'global', 'forum', 'user', 'topic', 'extended', 'misc', 'tools', 'adv','d6func');[/code][b]4,打开admin\menu.inc.php[/b]
查找[code]if(count($historymenus) > 1) {
$historymenus[] = array('menu_home_clearhistorymenus', 'misc&operation=custommenu&do=clean', 'main', 'class="menulink"');
}[/code]在下面添加[code]//D6功能移植to6.1f by horseluke
$lang['menu_intro']='模块简介';
$lang['menu_membersmerge']='合并用户';
$lang['menu_pmprune']='清理短消息';
$lang['menu_adduserwithuid']='添加用户[uid选号]';
showmenu('d6func', array(
array('menu_intro', 'd6func&operation=intro'),
array('menu_membersmerge', 'd6func&operation=membersmerge'),
array('menu_pmprune', 'd6func&operation=pmprune'),
array('menu_adduserwithuid', 'd6func&operation=adduserwithuid'),
));
//D6功能移植to6.1f by horseluke[/code][b]完成![/b]
[[i] 本帖最后由 horseluke 于 2009-3-25 11:38 编辑 [/i]]
小更新(上面附件已经更新)
D6功能移植到DZ6.1F:v0.0.2 build 20090304 fix1 byhorseluke。更改:清除短消息部分,取消”删除多少天以前的短消息“处默认填写的0,改为必须用户手动填写一个数值,防止用户错删除。
更新日志详请:[url]http://code.google.com/p/discuzplugin-hl/source/detail?r=41[/url] 超强的说~~
在官网没发现,只有这里有!!
哈哈~~~谢谢了!
回复 8# 黑色契约 的帖子
注意,仅能用于discuz 6.1F 支持正東西..` 支持支持~!谢过谢过 只要清理短消息的功能,,,页:
[1]