The easiest way I've found to accomplish this is to write your own function to replace the native tpl_pageinfo()
function. The below snippet hides the "by $username" portion of the last modified (or locked by user) footer text.
Then just call your replacement function instead of the native one in your template's code.
function custom_tpl_pageinfo($ret = false)
{
global $conf;
global $lang;
global $INFO;
global $ID;
// return if we are not allowed to view the page
if (!auth_quickaclcheck($ID)) {
return false;
}
// prepare date and path
$fn = $INFO['filepath'];
if (!$conf['fullpath']) {
if ($INFO['rev']) {
$fn = str_replace($conf['olddir'] . '/', '', $fn);
} else {
$fn = str_replace($conf['datadir'] . '/', '', $fn);
}
}
$fn = utf8_decodeFN($fn);
$date = dformat($INFO['lastmod']);
// print it
if ($INFO['exists']) {
$out = '<bdi>' . $fn . '</bdi>';
$out .= ' · ';
$out .= $lang['lastmod'];
$out .= ' ';
$out .= $date;
// if user is logged in, show last editor details
if (!empty($_SERVER['REMOTE_USER'])) {
if ($INFO['editor']) {
$out .= ' ' . $lang['by'] . ' ';
$out .= '<bdi>' . editorinfo($INFO['editor']) . '</bdi>';
} else {
$out .= ' (' . $lang['external_edit'] . ')';
}
if ($INFO['locked']) {
$out .= ' · ';
$out .= $lang['lockedby'];
$out .= ' ';
$out .= '<bdi>' . editorinfo($INFO['locked']) . '</bdi>';
}
}
if ($ret) {
return $out;
} else {
echo $out;
return true;
}
}
return false;
}