Event-Organiser icon indicating copy to clipboard operation
Event-Organiser copied to clipboard

Turning off comments or discussion - Leave A Reply still active/visible

Open jnewman67 opened this issue 11 years ago • 5 comments

Under Settings -> Event Organizer, under the "Select which features events should support", unchecking the Comments does not remove the Leave A Reply section of the event post - it remains visible and usable.

And turning off Discussions in the general settings doesn't affect this either.

Am I correct in thinking the either of those settings shoudl affect this section of the event post?

jnewman67 avatar Apr 19 '13 14:04 jnewman67

Hi @jnewman67

Your theme decides whether or not to display that section. If you are using a custom template then you can remove the comment section. If not you can either create one, or edit single.php to display the comment section only when it is not an event:

  if( !is_singular( 'event' ) ){
       //Comment section
  }

stephenharris avatar Apr 19 '13 14:04 stephenharris

Thanks for the info.

Just to clarify - are you saying that the "Select which features events should support" EO setting doesn't actually control what it indicates it controls, or that the template I'm using is supposed to recognize these event settings and deal with them?

That make sense?

-----Original Message----- From: Stephen Harris [mailto:[email protected]] Sent: Friday, April 19, 2013 10:52 AM To: stephenharris/Event-Organiser Cc: jnewman67 Subject: Re: [Event-Organiser] Turning off comments or discussion - Leave A Reply still active/visible (#82)

Hi @jnewman67 https://github.com/jnewman67

Your theme decides whether or not to display that section. If you are using a custom template then you can remove the comment section. If not you can either create one, or edit single.php to display the comment section only when it is not an event:

if( !is_singular( 'event' ) ){ //Comment section }

Reply to this email directly or view it on GitHub <https://github.com/stephenharris/Event-Organiser/issues/82#issuecomment-166 57437> . <https://github.com/notifications/beacon/_yclB2_Xx4_aAyf77Z-WvchwvLzcwV2UxMU S9OYYnYy1kigfetLE9GpR7mggD7li.gif>

jnewman67 avatar Apr 19 '13 15:04 jnewman67

The option in the setting just registers with WordPress whether that post type (event) should support comments or not. The actual mark-up on your site will be due to the theme.

stephenharris avatar Apr 19 '13 16:04 stephenharris

So unchecking that option "should" remove them from being display, IF the single.php file actually checks for that, correct?

-----Original Message----- From: Stephen Harris [mailto:[email protected]] Sent: Friday, April 19, 2013 12:34 PM To: stephenharris/Event-Organiser Cc: jnewman67 Subject: Re: [Event-Organiser] Turning off comments or discussion - Leave A Reply still active/visible (#82)

The option in the setting just registers with WordPress whether that post type (event) should support comments or not. The actual mark-up on your site will be due to the theme.

Reply to this email directly or view it on GitHub <https://github.com/stephenharris/Event-Organiser/issues/82#issuecomment-166 63559> . <https://github.com/notifications/beacon/_yclB2_Xx4_aAyf77Z-WvchwvLzcwV2UxMU S9OYYnYy1kigfetLE9GpR7mggD7li.gif>

jnewman67 avatar Apr 19 '13 18:04 jnewman67

On looking at this a bit more closely - the comments options appears to only toggle the discussion options for an event (i.e. if the event should support comments). So it appears that if you want to disable comments, you must first (via quick/bulk edit) turn off the comments for the events before disabling the comments option.

Not sure if this is intended behaviour for WordPress...

stephenharris avatar May 10 '13 11:05 stephenharris