Davidcopperfield Posted June 10, 2005 Posted June 10, 2005 Is it possible to protect admins' posts against being deleted by moderators? In phpBB it is named as "Admin posts' protection" It means that onl;y admin himself/herself can edit or delete his/her posts.
Dlf Posted June 10, 2005 Posted June 10, 2005 if you mean ID 1. Here is a code: Find:function edit_button($post_id, $poster, $post_date) { global $ibforums; if ($ibforums->member['id'] == "" or $ibforums->member['id'] == 0) { return ""; } add after: if ($poster['id'] == '1') { if ($ibforums->member['id'] == '1') { return "<a href="{$this->base_url}act=Post&CODE=08&f={$this->forum['id']}&t={$this->topic['tid']}&p={$post_id}&st={$ibforums->input[st]}"><{P_EDIT}></a>"; } else { return "<a href="javascript:alert('You cannot edit this post.');"><{P_EDIT}></a>"; } } Above is 'no edit'. this is 'no delete' find: function delete_button($post_id, $poster) { global $ibforums, $std; if ($ibforums->member['id'] == "" or $ibforums->member['id'] == 0) { return ""; } add after: if ($poster['id'] == '1') { if ($ibforums->member['id'] == '1') { return "<a href="javascript:delete_post('{$this->base_url}act=Mod&CODE=04&f={$this->forum['id']}&t={$this->topic['tid']}&p={$post_id}&st={$ibforums->input[st]}&auth_key=".$this->md5_check."')"><{P_DELETE}></a>"; } else { return "<a href="javascript:alert('You cannot delete this post.');"><{P_DELETE}></a>"; } That's found in sources/Topics.php Someone requested this on IF, and posted the above code. Just copied it.
Davidcopperfield Posted June 10, 2005 Posted June 10, 2005 Thank you I am looking forward to seeing it as a standard option like in phpBB. Is it possible to change in Trial version that I am using? Or for full version only?
Dlf Posted June 10, 2005 Posted June 10, 2005 full only. If I have read right the trail is encodded and can't be moddifed so you'd have to buy a year or perp lience to get the full version.
Davidcopperfield Posted June 11, 2005 Posted June 11, 2005 Can I carry out a function about closing and opening topics- once closed/reopened by an admin cannot be reopened/closed ? All activities carried out by an admin ought to be irreversible unless another admin gets up to it.
Dlf Posted June 11, 2005 Posted June 11, 2005 I know about like no PHP (which is what the above code is). All I can do is 'hello world' and probley some other basic basic basic basic basic things
Rοb Posted June 13, 2005 Posted June 13, 2005 I think this idea should be implemented and made an option in the User Groups section of the ACP (Protected Posts - Topics/posts by members of this group are immune from moderation). That way, other users in the same group (e.g fellow admins) could moderate each others posts but never the root admins.+1
Davidcopperfield Posted June 16, 2005 Posted June 16, 2005 There is an option in phpBB by Przemo version in which you can choose/mark the field in ACP to bodyguard your topics and posts, I would like to have this same in IPB, moreover to have an option of Level moderation- this means that f.example being an admin you close the topic and it can;t be re-opened by the moderator and this same with re-opening- you open it for eternity. ;)
Davidcopperfield Posted October 16, 2005 Posted October 16, 2005 This feature ought to be built in , more overe there ought to be protection against removing either admin priviledges by mowing to different group or erasing the account even by herself/himself.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.