Hi, is it possible for mybb to redirect to index.php after myps is sent? Refreshing the page causes myps to send again, so it would be great solution.
edit:
Also, is it possible to change settings that all users could see ban reason and warnings? (postbit and profile)
Open myps.php
Find (make sure you are in this area if($mybb->input['action'] == "send") , cause there are a couple of these instances)
$db->insert_query("mypslogs", $mypslog);
}
Add After
redirect($mybb->settings['bburl']."/index.php", "You Gave ".$db->escape_string($mybb->input['username'])." ".$givemyps." ".$mybb->settings['myps_name']);
Edit:
Showing warnings for all users, can be done by a code change in functions_post.php
Find
if($post_type != 3 && $mybb->settings['enablewarningsystem'] != 0 && ($mybb->usergroup['canwarnusers'] != 0 || ($mybb->user['uid'] == $post['uid'] && $mybb->settings['canviewownwarning'] != 0)))
{
Change into
if($post_type != 3 && $mybb->settings['enablewarningsystem'] != 0 && $usergroup['canreceivewarnings'] != 0)
{
Profile should be something simular, open member.php and take a look.
Thanks for your help
is there any chance that user wil see the reason of warnings? because now they see only the lvl of warnings
hmm, anyone?