Quote:
Originally Posted by Andy R
Can you provide any insight on what this conditional should look like? i.e. how to write it (I know we will have to wrap it around the current template edits on the postbit and memberprofile) but don't know how to write the conditional statement to look at the warning level value.
|
Modify your
Warn Display [Post Bit] hook plugin, and replace with the following code:
PHP Code:
global $vbulletin;
if ($post['postid'] && (can_moderate($forum['forumid']) || ($vbulletin->userinfo['userid'] == $post['userid'] && $vbulletin->options['warn_allow_view'] && $post['inferno_warn_level'])))
{
require_once(DIR . '/includes/functions_warning.php');
$show['warning'] = true;
$post['warning'] = construct_warning_display($post, can_moderate($forum['forumid']));
}
Basically the only addition is the
&& $post['inferno_warn_level'] check. So all your moderators and such will still see them for everyone.