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:
@@ -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.'&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 ' <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.'&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 ' ('.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.'&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">';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user