# NOTE: This code has been added to the download file. If you have a copy of the file without the User Profile mods, these instructions are for you. Otherwise, use what's in the file.
If you want to add the new custom user status to the users profile here's the edits to do so (These should be all one line and are broken up here to keep the screen from scrolling):
Edit admin/functions.php
find:
PHP Code:
if (!isset($usercache[$userid])) {
$usercache["$userid"]=$DB_site->query_first("
SELECT user.*,userfield.*
FROM user
LEFT JOIN userfield ON userfield.userid=user.userid WHERE user.userid='$userid'");
replace with:
PHP Code:
if (!isset($usercache[$userid])) {
$usercache["$userid"]=$DB_site->query_first("
SELECT user.*,userfield.*, usergroup.groupcustomstats
FROM user
LEFT JOIN usergroup ON usergroup.usergroupid=user.usergroupid
LEFT JOIN userfield ON userfield.userid=user.userid WHERE user.userid='$userid'");
Then just add the following variable to your getinfo template as you want it to display.
PHP Code:
$userinfo[groupcustomstatus]