Different styles for me and the other person

This commit is contained in:
moodler 2005-05-04 08:22:46 +00:00
parent 106558b314
commit da6d982dfd
2 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@
$printmessage = format_text($message->message, $message->format, $options, 0);
$printmessage = str_replace("\r", ' ', $printmessage);
$printmessage = str_replace("\n", ' ', $printmessage);
$printmessage = '<div class="message"><span class="author">'.s($userfullname).'</span> '.
$printmessage = '<div class="message other"><span class="author">'.s($userfullname).'</span> '.
'<span class="time">['.$time.']</span>: '.
'<span class="content">'.$printmessage.'</span></div>';
$printmessage = addslashes($printmessage); // So Javascript can write it

View File

@ -60,7 +60,7 @@
$message = str_replace("\r", ' ', $message);
$message = str_replace("\n", ' ', $message);
$time = userdate(time(), get_string('strftimedaytime'));
$message = '<div class="message"><span class="author">'.fullname($USER).'</span> '.
$message = '<div class="message me"><span class="author">'.fullname($USER).'</span> '.
'<span class="time">['.$time.']</span>: '.
'<span class="content">'.$message.'</span></div>';
$message = addslashes($message); // So Javascript can write it