ok this was a very odd request from one of my users, but nonetheless, i'm sure someone out there might have a use for this as well (especially if they are ashamed of the ammount of time the spend on your message board)
this add-on to Josh's modification makes it so users in a specific group don't have any details show up in showflat or threaded or showprofile.php... by details i mean, registered date, # of posts, it just has their name... stealth mode!
to prepare, you will need to create a group that is a Private Group, and get that group number, in my example, that group number is -5- you will have to replace with your number in order for this to work.
As always, backup your files kids!
//showflat.php//
around line 794 find:
elseif (preg_match("/-6-/",$postergroup)) {
$postrow[$i]['UserStatus'] = "<img src="{$config['images']}/specialflag.gif" alt="SPECIAL" border="0" />";
}
replace with:
elseif (preg_match("/-6-/",$postergroup)) {
$postrow[$i]['UserStatus'] = "<img src="{$config['images']}/specialflag.gif" alt="SPECIAL" border="0" />";
}
elseif (preg_match("/-5-/",$postergroup)) {
$postrow[$i]['TotalPosts'] = "";
$postrow[$i]['Location'] = "";
$postrow[$i]['Registered'] = "";
}
**where "/-5-/" is a new group for "stealth members" change to your group number
close and save, open
showthreaded.php
around line 744 find:
$Registered = "{$ubbt_lang['REGED_ON']} $Registered";
replace with:
$Registered = "{$ubbt_lang['REGED_ON']} $Registered";
//stealth mode
if (preg_match("/-5-/",$postergroup)) {
$Registered = "";
}
and below that find:
$TotalPosts = "{$ubbt_lang['POSTS_TEXT']}: $TotalPosts";
replace with
$TotalPosts = "{$ubbt_lang['POSTS_TEXT']}: $TotalPosts";
//stealth mode
if (preg_match("/-5-/",$postergroup)) {
$TotalPosts = "";
}
showprofile.php
first off you need to add in some variables for user groups:
around line 90 find:
SELECT U_Username,U_Fakeemail,U_Name,U_Totalposts,U_Homepage,U_Occupation,
U_Hobbies,U_Location,U_Bio,U_Extra1,U_Extra2,U_Extra3,U_Extra4,U_Extra5,
U_Registered,U_Picture,U_Title,U_Status,U_Number,U_Rating,U_Rates,U_Picwidth,U_Picheight
change to:
SELECT U_Username,U_Fakeemail,U_Name,U_Totalposts,U_Homepage,U_Occupation,
U_Hobbies,U_Location,U_Bio,U_Extra1,U_Extra2,U_Extra3,U_Extra4,U_Extra5,
U_Registered,U_Picture,U_Title,U_Status,U_Number,U_Rating,U_Rates,U_Picwidth,U_Picheight,U_Groups
and find:
list ($CheckUser,$Fakeemail,$Name,$Totalposts,$Homepage,$Occupation,
$Hobbies,$Location,$Bio,$ICQ,$Extra2,$Extra3,$Extra4,$Extra5,
$Registered,$Picture,$Title,$Userstatus,$UNumber,$Rating,$Rates,
$width,$height) = $dbh -> fetch_array($sth);
and change to:
list ($CheckUser,$Fakeemail,$Name,$Totalposts,$Homepage,$Occupation,
$Hobbies,$Location,$Bio,$ICQ,$Extra2,$Extra3,$Extra4,$Extra5,
$Registered,$Picture,$Title,$Userstatus,$UNumber,$Rating,$Rates,
$width,$height,$postergroup) = $dbh -> fetch_array($sth);
and find:
if ($thisuser['U_Status'] == "Moderator") {
if ( ($config['modedit']) && ($Userstatus == "User") ) {
$useredit = "<img src="{$config['images']}/editicon.gif" align="top" alt="" /> ";
$useredit .= "<a href="{$config['phpurl']}/admin/login.php?Cat=$Cat&User=$User&option=oneuser">{$ubbt_lang['EDIT_T_U']}</a> | ";
}
}
and replace with
if ($thisuser['U_Status'] == "Moderator") {
if ( ($config['modedit']) && ($Userstatus == "User") ) {
$useredit = "<img src="{$config['images']}/editicon.gif" align="top" alt="" /> ";
$useredit .= "<a href="{$config['phpurl']}/admin/login.php?Cat=$Cat&User=$User&option=oneuser">{$ubbt_lang['EDIT_T_U']}</a> | ";
}
}
if (preg_match("/-5-/",$postergroup)) {
$Totalposts = '';
$Registered = '';
$date = '';
}
and your done, you now have STEALTH MODE