"This message will be displayed on all pages written by the author with the chosen nickname", 'message_location' => 'before_post', 'authornick' => 'admin' ); add_option('an_settings', $defaultdata, 'Options for Author Notify'); $an_settings = get_option('an_settings'); $an_settings['message'] = stripslashes($an_settings['message']); add_action('admin_menu', 'add_an_options_page'); add_filter('the_content', 'an_message_filter'); function add_an_options_page() { if (function_exists('add_options_page')) { add_options_page('Author Notify', 'Author Notify', 8, basename(__FILE__), 'an_options_subpanel'); } } function an_options_subpanel() { global $an_settings, $_POST; if (isset($_POST['submit'])) { ?>

Author Notify

Setup a text to be displayed on every post written by an author associated with a particular nickname.

" method="post">

Author:

Fill in the desired author's nickname.

Message:

Location of Message

/> Before Post

/> After Post

" . $an_settings['message'] . "

"; $an_messagedisplayed = true; } if ($an_settings['message_location'] == 'before_post') { return $an_settings['message'] . $content ; } else { return $content . $an_settings['message'] ; } } else { return $content; } } ?>