AL8 Forum » Discuz 5.0 及 5.5 插件發佈 » 後台設置用戶組作者刪帖權限


2007-4-21 06:33 阿狗狗
後台設置用戶組作者刪帖權限

作者:BBS2ME-貓仔(阿狗狗)

是否常常遇到 會員隨便發帖或回帖 馬上刪帖規避管理或是[潛水員隨意發帖解禁]的狀況
後台加上刪帖權限就可以避免了
如有安裝潛水員插件 務必安裝此插件




升級數據庫
[code]ALTER TABLE `cdb_usergroups` ADD `allowdelpostgroups` TINYINT( 1 ) NOT NULL DEFAULT '0';[/code]


修改
groups.inc.php


[code]
showsetting('usergroups_edit_vote', 'allowvotenew', $group['allowvote'], 'radio');
[/code]
下面插入

[code]
showsetting('允許刪除帖子', 'allowsdelpostgroups', $group['allowdelpostgroups'], 'radio');
[/code]

再找
[code]allowreply='$allowreplynew',[/code]
後面插入
[code]allowdelpostgroups='$allowsdelpostgroups',[/code]


修改
post_editpost.htm
找(2處)
[code]
$isorigauthor
[/code]
改為
[code]
($isorigauthor && $allowdelpostgroups)
[/code]


editpost.inc.php

[code]
if(empty($delete)) {
[/code]
上面加上

[code]
//刪帖權限
if(!$allowdelpostgroups && $delete) {
showmessage('您所屬的用戶組禁止刪除帖子,請返回');
}
//刪帖權限
[/code]



完成

[[i] 本帖最後由 阿狗狗 於 2007-4-21 06:34 編輯 [/i]]

2007-4-21 06:37 044003
sofa=]

2007-4-21 10:34 Eric03
這個唔錯

2007-4-26 13:21 ppm
i alreday add it..
but where should I go into and make a detailed edit??thx

2007-4-26 14:03 Tsuki-月
大力支持

討厭那種逃避的人

:titter:

2007-4-27 01:41 ppm
i alreday add it..
but where should I go into and make a detailed edit??thx

2007-4-27 10:18 ppm
no one knows??where should I go into and make a detailed edit??thx

2007-4-27 22:36 ppm
help.......

2007-4-28 23:14 ppm
why no one tell me??

2007-4-29 15:18 wc10116
測試先:em47:

2007-4-29 15:56 mmmaaaxxx
已經安裝左
可防止珓芛戲

2007-4-29 21:30 ppm
後台設置??where???

2007-4-29 21:32 mmmaaaxxx
[quote]原帖由 [i]ppm[/i] 於 2007-4-29 21:30 發表 [url=http://www.alan888.com/Discuz/redirect.php?goto=findpost&pid=924143&ptid=109416][img=13,13]http://www.alan888.com/Discuz/images/common/back.gif[/img][/url]
後台設置??where??? [/quote]


編輯用戶組o個度

2007-4-30 23:59 ppm
[quote]原帖由 [i]mmmaaaxxx[/i] 於 2007-4-29 21:32 發表 [url=http://www.alan888.com/Discuz/redirect.php?goto=findpost&pid=924147&ptid=109416][img=13,13]http://www.alan888.com/Discuz/images/common/back.gif[/img][/url]



編輯用戶組o個度 [/quote]

i can not find..><

2007-5-1 00:05 ppm
編輯用戶組 >>can not find 刪帖權限

2007-5-1 12:16 ppm
編輯用戶組 >>can not find 刪帖權限
who can help?

2007-5-1 23:21 ppm
編輯用戶組 >>can not find 刪帖權限
who can help?

2007-5-3 00:49 阿狗狗
[quote]原帖由 [i]ppm[/i] 於 2007-5-1 23:21 發表 [url=http://www.alan888.com/Discuz/redirect.php?goto=findpost&pid=925965&ptid=109416][img=13,13]http://www.alan888.com/Discuz/images/common/back.gif[/img][/url]
編輯用戶組 >>can not find 刪帖權限
who can help? [/quote]
還是沒看到的話 就檢查一下groups.inc.php是否修改正確

2007-5-17 00:37 yeeh
升級錯誤,MySQL 提示: Duplicate column name 'allowdelpostgroups' ,請返回。


[ 點擊這裡返回上一頁 ]

2007-9-13 01:07 wboys
THANK YOU..成功安裝..

2007-10-27 14:34 丫偉
裝了, 謝謝

2008-6-30 20:04 f00139
有問題~!!!
如果用道具卡--悔悟卡(刪除帖)~
即有error~!
Discuz! info: MySQL Query Error

User: admin
Time: 2008-6-30 8:03pm
Script: /dz5/magic.php

SQL: SELECT uid, attachment, dateline, thumb, remote FROM [Table]attachments WHERE tid='3
Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''3' at line 1
Errno.: 1064

Similar error report has beed dispatched to administrator before.

頁: [1]


Powered by Discuz! Archiver 5.5.0  © 2001-2006 Comsenz Inc.