Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted June 10, 200519 yr 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.
June 10, 200519 yr 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.
June 10, 200519 yr 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?
June 10, 200519 yr 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.
June 11, 200519 yr 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.
June 11, 200519 yr 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
June 13, 200519 yr 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
June 16, 200519 yr 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. ;)
October 16, 200519 yr 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.
Archived
This topic is now archived and is closed to further replies.