WordPress.org

Support

Support » Installation » Disable Comments and New Users

Disable Comments and New Users

  • theotheragentm
    Member

    @theotheragentm

    I want to create a blog, where I have two authors/administrators and no one else can register. I can remove the links to register, but is there a way to disable new users completely in case someone knows the default Word Press setup structure? Also, is there a way I can disable comments completely so it doesn’t even show that comments are disabled for a post?

    Thanks in advance for your help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Administration > Options > General and uncheck Anyone can register

    Administration > Options > Discussion and uncheck Allow people to post comments on the article

    ********************
    Welcome to the WordPress Support Forums!

    Please help keep the Forums successful by reading:
    Using the Support Forums

    Also, remember the WordPress Codex and the FAQ pages.

    And, thank you, for letting us know if this information proves useful (or not)!
    ********************

    theotheragentm
    Member

    @theotheragentm

    It still says, “Comments Off” at the bottom. Is there no way around this?

    I just finished doing all that myself!

    Now that you’ve turned them off, you have to edit your theme template.

    Here’s an example, if you’re using Kubrick. Open up single.php and look at the code there and see how it different from mine:

    <?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
    // Neither Comments, nor Pings are open ?>
    <!-- Both comments and pings are currently closed. -->

    <?php } edit_post_link('Edit this entry.','',''); ?>

    </small>

    </div>
    </div>

    <!-- <?php comments_template(); ?> -->

    <?php endwhile; else: ?>

    You’ll see a number of places that I’ve commented out (<!– xxx –>) and at least one place I deleted stuff entirely – I deleted the stuff right in front of “edit this post” but made sure to keep that in for my ease of use. I’m brand new at this, and if I had to do it over again, I wouldn’t have deleted anything – I’d have commented them out too somehow, just in case I ever wanted that functionality back. 🙂

    There are other files in your theme you’ll have to do the same thing for. While editing everything in the theme I had Safari open to edit the code in WP, Firefox open to view the site as a user not logged in, and my ftp program open so I could alter permissions as needed.

    May wish to take a look at:
    How to Comment Out PHP Code

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Disable Comments and New Users’ is closed to new replies.