I don't know about you, but I used to like
this modification that allowed you to display the current user when you logged in.
So, I tried what they said again for 0.1 stable (I'd previously been using SVN releases) and noticed it didn't work properly. First of all the CSS wasn't working, and secondly some buttons that shouldn't be greyed-out were, javascript functionality was broken, etc.
So I played around with the code for a bit. And got it working again... here's what you need to do.
1. Open
program/include/main.inc and search for
'username' => 'rcmail_current_username',You should see:
// register common UI objects
$OUTPUT->add_handlers(array(
'loginform' => 'rcmail_login_form',
'username' => 'rcmail_current_username',
'message' => 'rcmail_message_container',
'charsetselector' => 'rcmail_charset_selector',
));
Change it to this:
// register common UI objects
$OUTPUT->add_handlers(array(
'loginform' => 'rcmail_login_form',
'username' => 'rcmail_current_username',
'userdisplay' => 'rcmail_user_display',
'message' => 'rcmail_message_container',
'charsetselector' => 'rcmail_charset_selector',
));
2. Scroll to the bottom of the
same file and find
?>Above it add:
/***** display user information *****/
function rcmail_user_display($attrib)
{
if (!$attrib['id'])
$attrib['id'] = 'rcmuserdisplay';
// allow the following attributes to be added to the tag
$attrib_str = create_attrib_string($attrib, array('style', 'class', 'id'));
$out = '';
$out .= 'User: ';
$out .= $_SESSION['username'];
$out .= '';
return $out;
}
3. Edit
skins/default/common.css, search for
#taskbarAbove it, add:
.mailuser
{
position: absolute;
top: 12px;
left: 200px;
height: 8px;
width: 120px;
color: #333333;
text-decoration: none;
font-size: 10px;
font-family: "Lucida Grande", Verdana, Arial, Helvetica, sans-serif;
z-index: 10;
}
4. Open
skins/default/includes/taskbar.html, and add at the top of the file:
That's all folks.
Enjoy,
BTCentral