Disable Post Report Link for a forum
by
21 May 2009
If you want to NOT show the Post Report Link in one forum, forumid 'x', then you can write a simple plugin (change 'x' to be the forumid):
hook_location: postbit_display_complete
PHP Code:
if ($this->forum['forumid'] == 'x') { $show['reportlink'] = false; }
That code will simply not show the link. However, if your users are smart enough to figure out the url to the report.php page and add in the post id, they will still be able to report it. So, to completely disable reporting in that forum, you may also add another plugin (change 'x' to be the forumid):
hook_location: report_start
PHP Code:
if ($threadinfo['forumid'] == 'x') { print_no_permission(); }
You could actually only add the second plugin and then the link to report the post will be there, but the user will get the No Permission message upon clicking it.
|