Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Comments, trackbacks & pings (http://forum.bytesforall.com/forumdisplay.php?f=19)
-   -   [SOLVED] How do I remove the comment box, but ......... (http://forum.bytesforall.com/showthread.php?t=12109)

dazedangels Jan 8, 2011 07:30 PM

[SOLVED] How do I remove the comment box, but .........
 
I want visiters to be able to leave a name, email address and weblink, but not a comment.
I want to remove the comment box itself but still allow "Submit" to be clicked and ONLY the Name and Weblink to be posted to the bottom of the post.

Any hacks for that one?

Using Atahualpa 3.6 - Latest WordPress

dazedangels Jan 9, 2011 09:13 AM

In case anyone looks for this in the future, the file you need is in WordPress not the template.
wordpress\wp-includes\category-template.php
Starting around line 1532 (yeah it's near the bottom)
Code:

        $required_text = sprintf( ' ' . __('Required fields are marked %s'), '<span class="required">*</span>' );
        $defaults = array(
                'fields'              => apply_filters( 'comment_form_default_fields', $fields ),
//I removed this line
                'must_log_in'          => '<p class="must-log-in">' .  sprintf( __( 'You must be <a href="%s">logged in</a> to post a comment.' ), wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>',
//I removed this line
                'logged_in_as'        => '<p class="logged-in-as">' . sprintf( __( 'Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out?</a>' ), admin_url( 'profile.php' ), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>',
                'comment_notes_before' => '<p class="comment-notes">' . __( '' ) . ( $req ? $required_text : '' ) . '</p>',
//Think I removed a line here too               
                'id_form'              => 'commentform',
                'id_submit'            => 'submit',
                'title_reply'          => __( 'Leave a Link' ),
                'title_reply_to'      => __( 'Leave a Link to %s' ),
                'cancel_reply_link'    => __( 'Cancel reply' ),
                'label_submit'        => __( 'Post Your Link' ),



All times are GMT -6. The time now is 06:07 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.