create admin user who does not show up in authors list

Having trouble installing serendipity?
Post Reply
aregularjoe

create admin user who does not show up in authors list

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

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

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply