Quote:
Originally Posted by sv1cec
That's easy. Edit your admin_warn.php file and find:
PHP Code:
if ($_GET['act'] == "viewstats2")
{
$get_warns=$DB_site->query("select wt.userid, wt.username, wt.usergroupid from
".TABLE_PREFIX."user wt WHERE (usergroupid=5 OR usergroupid=6 OR usergroupid=7) ORDER BY userid");
Replace that with:
PHP Code:
if ($_GET['act'] == "viewstats2")
{
$get_warns=$DB_site->query("select wt.userid, wt.username, wt.usergroupid from
".TABLE_PREFIX."user wt WHERE (usergroupid=5 OR usergroupid=6 OR usergroupid=7 OR usergroupid=13 OR usergroupid=21 OR usergroupid=20 ) ORDER BY userid");
As for the other changes, what you should do, is make sure that wherever there is a reference to group 6, there is also a reference to the equivalent group. Typically, the two references should be OR-ed and even better put them in a parenthesis like ($bbuserinfo[usergroupidi]==6 OR $bbuserinfo[usergroupid]==13 ). Same with the rest.
Let me know how you are progressing.
Rgds
|
Okay, this is weird. I copied and pasted the code, and got this warning:
Parse error: parse error, unexpected T_VARIABLE in /home/pkrwud/public_html/vbulletin/admincp/admin_warn.php on line 1837
So, I copy and pasted the original code from the same post (quoted above), and got the same error again. In fact, I got that error when I clicked on any of the options in the Warning System portion of the Admin CP. So, I opened the original copy of that file on my hard drive, and copied and pasted from there, and now it's back to normal.
Maybe I'm missing it, but I'm not seeing any real difference between the two.
Why did I get that error? BTW, line 1837 is the one that starts with: $get_warns
And, I have another question (lucky you). In that same file, just below the code mentioned above, it says:
PHP Code:
$cell = array();
$id=$warn['userid'];
if ($warn['usergroupid']==5)
{
$usergrp="Super Moderator";
}
else if ($warn['usergroupid']==6)
{
$usergrp="Administrator";
}
else if ($warn['usergroupid']==7)
{
$usergrp="Moderator";
}
Will I need to make changes here too?