Page 1 of 1

create admin user who does not show up in authors list

Posted: Tue Jan 31, 2006 9:06 pm
by aregularjoe
Hi,

I would like to have the administrator user not show up as an author in the authors plugin.

Is this possible?


Chris

Re: create admin user who does not show up in authors list

Posted: Tue Jan 31, 2006 9:33 pm
by garvinhicking
No, this is not possible without patching the plugin.

Edit your include/plugins_internal.inc.php file and search for "serendipity_authors_plugin".

Then loook for this line:

Code: Select all

      if (is_array($authors) && count($authors)) {
            foreach ($authors as $auth) {
change it to:

Code: Select all

      if (is_array($authors) && count($authors)) {
            foreach ($authors as $auth) {
                if ($auth['realname'] == 'ADMINISTRATOR') continue;
Replace "ADMINISTRATOR" with the name of the author you want to hide.

Regards,
Garvin