OK - here's how to restrict the Search function to a certain usergroup:
code:
#
# In search.php find this:
#
// -----------------
// Get the user info
$userob = new user;
$user = $userob -> authenticate("U_Groups");
if (!$user['U_Groups']) {
$user['U_Groups'] = "-4-";
}
#
# Change to this
#
// -----------------
// Get the user info
$userob = new user;
$user = $userob -> authenticate("U_Groups");
if (!$user['U_Groups']) {
$user['U_Groups'] = "-4-";
}
if (preg_match("/-5-/",$user['U_Groups'])) {
// change the -5- above to the number of the usergroup that is allowed to use search
#
# Find this:
#
if (!$debug) {
include("$thispath/templates/$tempstyle/search.tmpl");
}
$html -> send_footer();
#
# Change to:
#
if (!$debug) {
include("$thispath/templates/$tempstyle/search.tmpl");
}
}
else {
$html = new html;
$html -> not_right("Only Group XXXX can use the Search Feature.",$Cat);
}
$html -> send_footer();
You need to change the -5- to the usergroup number that is allowed to search. You also need to customize the 'not_right' message to whatever you like and/or move it to the language files if needed.
Could do something like that to restrict the sending of private messages.....
It would be more difficult to restrict the receiving of Private message.
But you could easily restrict the viewing of Private Messages.
How do you think that should be handled?