Now the name of the authors is a link to the user page.

To be a bit more like forum posts Bug 2809.
(http://moodle.org/bugs/bug.php?op=show&bugid=2809)
This commit is contained in:
stronk7
2005-06-19 15:23:54 +00:00
parent c5d569c6af
commit 39952eee06
3 changed files with 15 additions and 7 deletions
@@ -23,7 +23,10 @@ function glossary_show_entry_TEMPLATE($course, $cm, $glossary, $entry, $mode='',
//Use this code to show author's name
//Comments: Configuration not supported
echo '<span class="author">'.$strby.' '.fullname($user, isteacher($course->id)) . '<br />';
$fullname = fullname($user, isteacher($course->id));
$by->name = '<a href="'.$CFG->wwwroot.'/user/view.php?id='.$user->id.'&amp;course='.$course->id.'">'.$fullname.'</a>';
$by->date = userdate($entry->timemodified);
echo '<span class="author">'.get_string('bynameondate', 'forum', $by).'</span>' . '<br />';
//Use this code to show modification date
//Comments: Configuration not supported
@@ -20,9 +20,12 @@ function glossary_show_entry_encyclopedia($course, $cm, $glossary, $entry, $mode
echo '<span class="concept">';
glossary_print_entry_concept($entry);
echo '</span><br />';
echo '<span class="author">'.$strby.' '.fullname($user, isteacher($course->id)).'</span>';
echo '&nbsp;&nbsp;<span class="time">('.get_string('lastedited').': '.
userdate($entry->timemodified).')</span>';
$fullname = fullname($user, isteacher($course->id));
$by->name = '<a href="'.$CFG->wwwroot.'/user/view.php?id='.$user->id.'&amp;course='.$course->id.'">'.$fullname.'</a>';
$by->date = userdate($entry->timemodified);
echo '<span class="author">'.get_string('bynameondate', 'forum', $by).'</span>';
echo '</td>';
echo '<td class="entryapproval">';
@@ -22,9 +22,11 @@ function glossary_show_entry_fullwithauthor($course, $cm, $glossary, $entry, $mo
glossary_print_entry_concept($entry);
echo '</span><br />';
echo '<span class="author">'.$strby.' '.fullname($user, isteacher($course->id));
echo '&nbsp;&nbsp;('.get_string('lastedited').': '.
userdate($entry->timemodified).')</span>';
$fullname = fullname($user, isteacher($course->id));
$by->name = '<a href="'.$CFG->wwwroot.'/user/view.php?id='.$user->id.'&amp;course='.$course->id.'">'.$fullname.'</a>';
$by->date = userdate($entry->timemodified);
echo '<span class="author">'.get_string('bynameondate', 'forum', $by).'</span>';
echo '</td>';
echo '<td class="entryattachment">';