Global Setting to Hide Display Attendee List?

Home Forums Ticket Products Event Tickets Plus Global Setting to Hide Display Attendee List?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1316383
    Jonathan
    Participant

    Just chiming in to say I had the same issue. I run the Make Plus Theme 1.8.7 and Woo Commerce 2.6.14.

    The snippet mentioned upthread worked for me, but I would be interested in discovering a fix.

    Thanks,

    Jonathan

    ========================
    PLEASE LEAVE FOR SUPPORT
    Reporting the same issue as: https://theeventscalendar.com/support/forums/topic/global-setting-to-hide-display-attendee-list/

    #1317133
    Andras
    Keymaster

    Hello Jonathan,

    Thanks for reaching out to us and I’m sorry about this issue.

    I would like to get a clear view on what exactly the issue is so I can give you appropriate support. Can you please give me further explanation?

    Is it this:
    Until now the attendee list was hidden for all events, but after a recent update it is shown for all.

    Or more like this:
    I want the checkbox of “Display attendees list” to be unchecked by default when I create a new event.

    Or a third option?

    Thanks for the clarification.

    Cheers,
    Andras

    #1317410
    Andras
    Keymaster

    Hey Jonathan,

    If the issue is the first (Until now the attendee list was hidden for all events, but after a recent update it is shown for all) then I can propose a manual fix for this.

    You need to run the following query on your database to change the “Hide / Display attendees list” setting for all events:

    UPDATE wp_postmeta
    SET meta_value = '-1'
    WHERE meta_key = '_tribe_hide_attendees_list' AND (meta_value = '' OR meta_value = '0');
    UPDATE wp_postmeta
    SET meta_value = '0'
    WHERE meta_key = '_tribe_hide_attendees_list' AND meta_value = '1';
    UPDATE wp_postmeta
    SET meta_value = '1'
    WHERE meta_key = '_tribe_hide_attendees_list' AND meta_value = '-1';

     

    This will flip the setting on all events.

    Note that if you manually changed the setting on some events already, this will change them again.

    Andras

     

     

    #1319216
    Bruce
    Participant

    Perhaps a better alternative is to hide the Attendees via CSS – that way any future DB updates won;t switch them back on:

    .tribe-attendees-list-container, .tribe-tickets-attendees-list-optout {
    display: none;
    }

    #1319520
    Andras
    Keymaster

    Hey Bruce,

    Thanks for chiming in!

    Yes that is definitely a good solution. Note however that the data can likely be still picked up by search engines / crawlers and the code will still be visible in the code. If you don’t mind that, it is an absolutely valid solution.

    Another note on that, if you had some lists visible, which are now not showing due to that change in setting, that code will not make it visible. 🙂

    We have put this on our known issues page with a more streamlined query.

    Cheers,
    Andras

    #1329519
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Global Setting to Hide Display Attendee List?’ is closed to new replies.