Hi,
I would like to have the administrator user not show up as an author in the authors plugin.
Is this possible?
Chris
create admin user who does not show up in authors list
-
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
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:
change it to:
Replace "ADMINISTRATOR" with the name of the author you want to hide.
Regards,
Garvin
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) {
Code: Select all
if (is_array($authors) && count($authors)) {
foreach ($authors as $auth) {
if ($auth['realname'] == 'ADMINISTRATOR') continue;
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/
# 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/