• Resolved ricschug

    (@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

    (@specialk)

    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.

    Thread Starter ricschug

    (@ricschug)

    Thanks, perhaps something for the enhancement list.

    Plugin Author Jeff Starr

    (@specialk)

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

    Plugin Author Jeff Starr

    (@specialk)

    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>
    </fieldset>

    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 4 years ago by Jeff Starr. Reason: adds info, formatting
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘enable/disable Comment in USP posts’ is closed to new replies.