Here is one that was posted in the Boonex Unity forums and is floating around Expertzzz too. It simply adds the little online/offline icon to a members profile picture in the top right corner of a member's profile picture.
This is for Dolphin 6.1x.
This one is fast and simple too. You can also play around with the placement of where you want it to show up by editing the top: 35px; right: 5px; part of the code.
Backup the original file before editing:
/templates/base/scripts/BxBaseProfileView.php
Then find the function area for showBlockPhoto:
function showBlockPhoto( $iCol, $bNoDB = false )
Once you find that general area scroll down a little further and a few lines above the showBlockRSS function find:
if ($bNoDB) {
return DesignBoxContent( _t( '_PROFILE Photos', $sNickName ), $ret, 1 );
} else {
echo DesignBoxContent( _t( '_PROFILE Photos', $sNickName ), $ret, 1 );
}
}
}
function showBlockRSS( $sCaption, $sContent, $bNoDB = false )
Insert the following code right before it:
global $tmpl;
$sStatusImg = get_user_online_status($iPID) ? 'online.gif' : 'offline.gif';
$sStatusCode = '<img src="templates/tmpl_' . $tmpl . '/images/icons/' . $sStatusImg . '" style="position: absolute; top: 35px; right: 5px;" />';
$ret .= $sStatusCode;
So it will look like so:
//####gameutopia profile icon online modification start####
global $tmpl;
$sStatusImg = get_user_online_status($iPID) ? 'online.gif' : 'offline.gif';
$sStatusCode = '<img src="templates/tmpl_' . $tmpl . '/images/icons/' . $sStatusImg . '" style="position: absolute; top: 35px; right: 5px;" />';
$ret .= $sStatusCode;
//####gameutopia profile icon online modification end####
if ($bNoDB) {
return DesignBoxContent( _t( '_PROFILE Photos', $sNickName ), $ret, 1 );
} else {
echo DesignBoxContent( _t( '_PROFILE Photos', $sNickName ), $ret, 1 );
}
}
}
function showBlockRSS( $sCaption, $sContent, $bNoDB = false )
Save the changes to BxBaseProfileView.php and re-upload the changes overwriting the original.
Refresh a member's profile page to see the changes.
If you don't like it or wish to remove it, restore the original BxBaseProfileView.php you backed up prior to making the changes.
Screen Shot Original before mod:
Screen Shot After with mod:
Good Luck!!