• Resolved RetroTorque

    (@retrotorque)


    Hi,

    WP 3.8, BP 1.9.1, EM 5.5.1.1

    It’s my understanding that, re Events > Settings > Pages, it should be possible to disable comments on the Locations pages.

    My Locations are set to display as pages, not posts.
    Enable Comments is set to ‘no’.

    However, I’m still seeing the comments box (when logged in – or the alternative message when not logged in).

    https://retrotorque.com/social-network/classic-car-events/locations/ace-cafe-london/

    Not on the main list of Locations, but on every separate Location page. Checking the ‘edit page’ of my main ‘Locations’ page in the WP backend – that also has comments turned off.

    Does anyone know what’s causing this problem???

    (I’ve tried changing the settings, re-saving, and changing back, by the way.)

    Thanks,

    Mathew

    https://www.ads-software.com/plugins/events-manager/

Viewing 15 replies - 1 through 15 (of 17 total)
  • Thread Starter RetroTorque

    (@retrotorque)

    Extra Information – I don’t think there’s any Theme or Plugin conflict.

    I’ve just tried switching to a WP default theme + removing all plugins apart from BuddyPress & EM. But the comments box was still being displayed.

    Thread Starter RetroTorque

    (@retrotorque)

    Fixed… seems you have to re-save each Location after having set:

    Enable Comments is set to ‘no’

    Using the quick edit function speeds up this re-saving process.

    (I’ve only 100 Locations saved, so it’s OK for me to do this manually like this. I’m guessing there’s a more efficient database method if you had loads of locations.)

    Can you confirm that your page template is the one being used (by adding some test test to the top of the template)? Are your pages set to allow comments?

    Thread Starter RetroTorque

    (@retrotorque)

    Hi – thanks for your reply.

    But it’s okay now. I’m just re-saving the Locations.

    (To answer your questions – yes, it was definitely the locations page template. I checked by placing some test content at the top of the page, and that page was set not to allow comments.

    I think I must have initially created most, or all, of my locations whilst ‘Enable Comments’ was set to ‘yes’.)

    Thread Starter RetroTorque

    (@retrotorque)

    *****Update*****

    WP 3.8.1, BP 1.9.1, EM 5.5.2

    I believe there’s still an issue with this – and that it’s perhaps a small bug within EM???

    When an existing Location is resaved, it’s fine. There’s no comments box.

    However – (I didn’t realise this until now)- when a new Location is created, the comments box appears for that Location, until it is re-saved.

    My settings are such (described as above, in my first post) that I believe that all newly created Locations should not display the comments box. (Indeed, I guess my settings must be correct, as why would a simple re-save work otherwise?)

    When you create a new location, are you doing it through Events > Locations > Add New or while adding an event?

    Thanks

    Thread Starter RetroTorque

    (@retrotorque)

    Hi – thanks for replying.

    Just tested this.

    Adding a Location whilst creating an Event causes the problem. Location has comments box (until the Location is re-saved).

    ‘Events > Locations > Add New’ is fine. Going to the Locations page, no comments box appears.

    I’m not able to replicate this. Is this happening with one specific location, or does it happen with any?

    Thread Starter RetroTorque

    (@retrotorque)

    Thanks for looking at this.

    I’ve investigated further.

    It happens with any new location created + a new event is being created at the same time. (All my testing has been via backend admin. I presume the same thing happens when an event + location is created via the front end.)

    I’ve just tested again (with all extra plugins disabled).

    1. Using Buddypress default theme: No locations “leave a reply” / comments box is displayed.

    2. Using my theme and also Twenty Fourteen: Comments box appears (until location is re-saved).

    3. Also, when a new event is created + a new location, using Buddypress Default theme, no comments box is displayed. But if you then switch to look at the same location using Twenty Fourteen, the ‘leave a reply’ / comments box appears (until location is re-saved).

    This makes me think that there is some value that the BuddyPress Default theme doesn’t pick-up on – but that the other themes use. And that this value is only set properly once the Location is re-saved (or if the Location is originally created via the Locations admin).

    I’m not able to recreate this. By default BuddyPress theme, I’m guessing you mean: https://codex.buddypress.org/themes/the-bp-default-theme/ ?

    That’s being retired, so I’m wondering if there are now some comparability problems between the theme and new versions of WordPress / BuddyPress.

    Thread Starter RetroTorque

    (@retrotorque)

    Hi – yes, that’s the default theme I tried.

    I’ve just tried another theme as well… I keep getting different behavious. Some themes demonstrate the problem, others don’t. (Sadly, ‘my’ theme does.)

    I’ve looked at the database and I think that I might know what’s happening.

    When I add: Events > Locations > Add New (or you re-save a Location that was first created during an Event creation process) an entry gets made in the ‘_posts’ table of the database.

    Amongst the information recorded is: ‘post_type’ as ‘Location’ and ‘Comment Status’ as ‘closed’ (for my current admin settings, anyway).

    However, if a Location is created on the events page (whilst an event is being created), then no ‘_posts’ information is recorded. (The Location is recorded in other database tables – but none of these tables include the ‘Comments Status’.)

    Not sure why the different behaviour for the different themes – I’m guessing some sort of default behaviour on the part of those which don’t demonstrate the problem?????

    Thread Starter RetroTorque

    (@retrotorque)

    PS just to be clear, when I wrote:

    “However, if a Location is created on the events page (whilst an event is being created), then no ‘_posts’ information is recorded.”

    There must be ‘_posts’ information recorded for the ‘Event’ in the database. I was talking about a separate ‘_posts’ Location entry not being created.

    Plugin Support angelo_nwl

    (@angelo_nwl)

    did you try Events > Settings > Pages > Location Pages > Enable Comments? =No and/or edit locations at Events > Locations > edit a location then disable comments.

    Thread Starter RetroTorque

    (@retrotorque)

    Hi – Thanks for your reply.

    Events > Settings > Pages > Location Pages > Enable Comments? = No

    To confirm. That’s set to ‘No’. It has been set to ‘No’ all the time whilst testing.

    Events > Locations > edit a location then disable comments.

    Yes, this works. But this is still a problem. It means that you’d have to ReSave every Location as it is created (when the Location is being created whilst an Event is being created), which won’t work if lots of Locations are being created by users in the Front-End.

    Have you tried this without BP active? As we’re unable to produce this and you’ve taken other steps I would suggest that we may be looking at a conflict with BP so we need to check that off first…

    Thanks

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Comments Box on Locations Pages not disabled’ is closed to new replies.