SMF Support > SMF 2.0.x Support
View warnings(Please read)
(1/1)
Britannia360:
Hi,
I wish for my members to see their warning history on their profile. I notice they can only view their history when their warned/watched etc... Is it possible even when their percentage is 0% to see their history? Since at my forum light offences are removed/expired it's good to let them see their history so they can see if their account is in good standing or not.
Thanks!
Arantor:
Edit Sources/Profile.php
--- Code: ---'enabled' => in_array('w', $context['admin_features']) && $modSettings['warning_settings'][0] == 1 && $cur_profile['warning'] && $context['user']['is_owner'] && !empty($modSettings['warning_show']),
--- End code ---
Replace with
--- Code: ---'enabled' => in_array('w', $context['admin_features']) && $modSettings['warning_settings'][0] == 1 && $context['user']['is_owner'] && !empty($modSettings['warning_show']),
--- End code ---
Britannia360:
thanks!
Britannia360:
--- Quote from: Arantor on August 05, 2012, 03:17:30 PM ---Edit Sources/Profile.php
--- Code: ---'enabled' => in_array('w', $context['admin_features']) && $modSettings['warning_settings'][0] == 1 && $cur_profile['warning'] && $context['user']['is_owner'] && !empty($modSettings['warning_show']),
--- End code ---
Replace with
--- Code: ---'enabled' => in_array('w', $context['admin_features']) && $modSettings['warning_settings'][0] == 1 && $context['user']['is_owner'] && !empty($modSettings['warning_show']),
--- End code ---
--- End quote ---
Can this be done to show who done warnings aswell?
Britannia360:
--- Quote from: Mod Mark on August 11, 2012, 10:19:57 AM ---
--- Quote from: Arantor on August 05, 2012, 03:17:30 PM ---Edit Sources/Profile.php
--- Code: ---'enabled' => in_array('w', $context['admin_features']) && $modSettings['warning_settings'][0] == 1 && $cur_profile['warning'] && $context['user']['is_owner'] && !empty($modSettings['warning_show']),
--- End code ---
Replace with
--- Code: ---'enabled' => in_array('w', $context['admin_features']) && $modSettings['warning_settings'][0] == 1 && $context['user']['is_owner'] && !empty($modSettings['warning_show']),
--- End code ---
--- End quote ---
Can this be done to show who done warnings aswell?
--- End quote ---
Hi, can someone say if it's also possible to add also who warned the member with this replace code?
Navigation
[0] Message Index
Go to full version