Oke folks, here's me first addition for ya to try, not a new mod just an edit of an old one ;)
All it does is add the ability for your staff to forum ban people via their profile rather than having to go through the staff menu ;)
First open viewuser.php and look for:
if($ir['user_level'] == 2 || $ir['user_level'] == 3 || $ir['user_level'] == 5)
{
print "<center>
[[url='jailuser.php?userid={$r[']Fed Jail[/url]]     
[[url='mailban.php?userid={$r[']Mail Ban[/url]]     
Below this add:
[[url='forumban.php?userid={$r[']Forum Ban[/url]]
Close and save.
Next copy this to a fresh file and call it forumban.php
<?php
include "globals.php";
if($ir['user_level'] != 2 && $ir['user_level'] != 3 && $ir['user_level'] != 5)
{
die("You cannot forum ban users.");
}
if($_POST['user'])
{
global $db,$ir,$c,$h,$userid;
$q=$db->query("SELECT * FROM users WHERE userid={$_POST['user']}");
$them=$db->fetch_row($q);
if($them['user_level'] == 2 || $them['user_level'] == 3 || $them['user_level'] == 5)
{
die("You cannot forum ban fellow staff.");
}
$re=$db->query("UPDATE users SET forumban={$_POST['days']},fb_reason='{$_POST['reason']}'
WHERE userid={$_POST['user']}");
event_add($_POST['user'],"You were banned from the forums for
{$_POST['days']} day(s) for the following reason:
{$_POST['reason']}",$c);
}
else
{
print "<h3>Forum Ban User</h3>
This user wont be able to access the forums for days. Do not abuse !
<form action='forumban.php' method='post'>
User: ".user_dropdown($c,'user',$_GET['userid'])."
Days: <input type='text' name='days' />
Reason: <input type='text' name='reason' />
<input type='submit' value='Forum Ban User' /></form>";
}
$h->endpage();
?>
Upload to your server and thats it.
I know its very basic stuff, but hay I'm still learning and I've used alot of mods from here and thought I'd contribute something back ;)
Also I have tested it on my server and it works fine :)