Here's the code that is printing the user picture and name if it helps:
print_header('','','','','',false,'','',false,'leftmargin="2" topmargin="2" marginwidth="2" marginheight="2"');
echo '<table width="100%" cellpadding="0" cellspacing="0"><tr>';
echo '<td width="100">';
echo print_user_picture($user->id, SITEID, $user->picture, true, true, true, 'userwindow').'</td>';
echo '<td valign="middle" align="center">';
echo '<div class="name">'.fullname($user).'</div>';
See screenshot.
Then having a global size for the table set, and for the chat window have an !important size overide.
Does this make sense? Am I rambling?
I don't think (not sure) the header is the problem, since it isn't printed for this window.
body#message-user {
margin-left:10px;
margin-right:10px;
width: 100%;
}
body#message-messages {
padding:10px;
width: 100%;
}
But so far no luck. Anybody have any ideas? Thanks
Chardelle, in my themes I hide the header part of the messages and position the content with this CSS in the "Message" part of "styles_layout.css"
/*** *** Message ***/ #message-user #header { display: none; } #message-user #content { margin-top: 0; }
Does it work for you too?
Urs
No, that didn't work. But if I comment out print_header in message/user.php then it works (see screenshot), the only problem is there is no text styles, but I think that's better than not having the frame fit in the window.
I don't know why CSS won't work on this particular frame.
Chardelle, the changes I posted do not work with Kubrick because here the body
and the page
width are set.
I added the following CSS at the end of kubrick.css and on my Moodle installation it worked.
body.message, body.message #page { width: auto; margin: 0; padding: 0; } #message-user, #message-user #page, #message-user #content { padding: 0; background: #FFF; }
This is a patch to avoid the too wide content in the message window. It is not a true solution in the sense of the Kubrick theme. So David or Julian who are more involved in working with the Kubrick theme for Moodle could work out a fitting solution.
Does it work for you now?
Urs
Yes, that worked!!--finally (this little problem was quite painful).
Anyone using a fixed page/body width will have this problem with the messaging discussion page and should use this fix to CSS.
Chardelle, I am glad that it works for you now.
"Yes, that worked!!--finally (this little problem was quite painful)."
I investigated because I know how anoying those flaws can become
Urs