Support » Plugin: User Submitted Posts » enable/disable Comment in USP posts

  • Resolved ricschug


    Can I use the checkbox in the USP settings to enable the users to turn off or on comments for their post. If so how or is there a better way?

    Thanks for any help provided.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jeff Starr


    Thank you for your interest but it’s not a current feature of the plugin. Let me know if any further questions, feedback, etc. Glad to help anytime.

    Thanks, perhaps something for the enhancement list.

    Plugin Author Jeff Starr


    It’s an interesting idea, I will look into it. Thanks.

    Plugin Author Jeff Starr


    Just to follow up with this. The next version of the plugin includes support for a “disable comments” checkbox that can be added to the custom USP form. Here are the steps:

    Add a Disable Comments checkbox

    1) Choose “Custom Form” for the option “Form Style”. Save changes.

    2) Follow the instructions to implement the custom form.

    3) Locate the following line in the custom form template:

    <?php echo usp_display_custom_checkbox(); ?>

    4) Just before that line, add the following code:

    <fieldset class="usp-checkbox">
    	<input id="user-submitted-comments" name="user-submitted-comments" type="checkbox"> 
    	<label for="user-submitted-comments">Disable comments on this post?</label>

    Save changes, upload and done.

    New version of USP should be available this weekend sometime.

    Thanks again for the idea, @ricschug.

    • This reply was modified 2 weeks ago by Jeff Starr. Reason: adds info, formatting
Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.