Jot Down

Drop your notes here


Hide Editor Username In Dokuwiki

See Dokuwiki Config documentation.

What worked for me was:
In inc/template.php, search for the function tpl_pageinfo($ret=false) . Under that look for the following code.

   if($INFO['editor']){
     $out .= ' '.$lang['by'].' ';
     $out .= editorinfo($INFO['editor']);
   }else{
     $out .= ' ('.$lang['external_edit'].')';
   }

Delete or comment it out by adding the PHP comment code /* */ shown below

 /*    if($INFO['editor']){
         $out .= ' '.$lang['by'].' ';
         $out .= editorinfo($INFO['editor']);
       }else{
         $out .= ' ('.$lang['external_edit'].')';
       } */

But I opted to change the showuseras settings in the config to show full name, but change my full name completely. That way, visitors may not instantly know my username, which they can actually use together with guessing my password as they try to enter my Dokuwiki install.


note/hide-editor-username-in-dokuwiki.txt · Last modified: 02/08/22 9:50 pm by Jotter