Add Comments' ); return array_merge( $links, $newlinks ); // merge new links into existing $links } return $links; } function addComments_options_init() { // adds plugin's options to white list register_setting( 'addComments-group', 'addComments-options', 'addComments_validate_input' ); } function addComments_validate_input( $input ) { return $input; } function addComments_options_link() { // adds link to plugin's settings page under 'settings' on the admin menu add_options_page( 'Add Comments', 'Add Comments', 'manage_options', 'addComments', 'addComments_options_page' ); } function addComment_select_box( $posttype = 'post' ) { if( $posttype == 'page' ) $args = array( 'number' => '', 'post_type' => 'page', 'post_status' => 'all' ); else $args = array( 'numberposts' => '9001', 'post_type' => 'post', 'post_status' => 'all' ); $items = get_posts( $args ); echo ' $id, 'comment_author' => $author, 'comment_author_email' => $email, 'comment_author_url' => $url, 'comment_content' => $comment, 'comment_type' => '', 'comment_parent' => 0, 'user_id' => '', 'comment_author_IP' => $ip, 'comment_agent' => 'Add Comments Plugin - http://shinraholdings.com/plugins/add-comments', 'comment_date' => current_time( 'mysql' ), 'comment_approved' => 1 ) ); return count( $explodes ); } function addComments_options_page() { if( $_POST['action'] == 'addcomments' ) { echo '
'; $id = ( $_POST['post_or_page'] == 'page' ? $_POST['pages_list'] : $_POST['posts_list'] ); $author = ( isset( $_POST['author_name'] ) ? $_POST['author_name'] : 'annonymous' ); $email = ( isset( $_POST['author_email'] ) ? $_POST['author_email'] : get_bloginfo('admin_email' ) ); $url = ( isset( $_POST['author_url'] ) ? $_POST['author_url'] : '' ); $ip = ( isset( $_POST['author_ip'] ) ? $_POST['author_ip'] : '127.0.0.1' ); echo addComments_add_comments( $id, $author, $email, $url, $ip, $_POST['comment'] ) . ' comments added to ' . get_the_title( $id ) . '
'; } ?>

Add Comments

'author_name', 'label' => 'Author Name', 'default' => 'rss feed comments' ), array( 'name' => 'author_email', 'label' => 'Author Email', 'default' => get_bloginfo('admin_email' ) ), array( 'name' => 'author_url', 'label' => 'Author URL', 'default' => '' ), array( 'name' => 'author_ip', 'label' => 'Author IP', 'default' => '127.0.0.1' ) ); foreach( $authors as $author ) addComment_text_box( $author['label'], $author['name'], $author['default'] ); ?>
Add where?
Post
Page
Comment author information?
Comments (seperate comments with %*%)