Home › Forums › Ticket Products › Event Tickets Plus › Taking off
- This topic has 23 replies, 5 voices, and was last updated 8 years ago by Support Droid.
-
AuthorPosts
-
April 19, 2016 at 8:15 am #1104248acquaParticipant
How do I get rid of these words in events. ….
Don’t list me on the public attendee list
April 19, 2016 at 8:30 am #1104263GeoffMemberHi @acqua and welcome to the forums!
Good question. You can remove those words by deactivating the public attendee list option for the event (screenshot).
Or, if you’d prefer, you can add the following CSS to your theme’s style.css file or by using the Simple Custom CSS plugin:
.tribe-tickets-attendees-list-optout { display: none; }
Will this work for you? Please let me know. 🙂
Cheers,
GeoffApril 19, 2016 at 8:43 am #1104284acquaParticipantThis reply is private.
April 19, 2016 at 8:46 am #1104290acquaParticipantThis reply is private.
April 19, 2016 at 10:04 am #1104403GeoffMemberThanks for following up!
Did the CSS help remove those words?
You can hide related events events by heading to Events > Settings > Display, select the option to “Hide Related Events” (screenshot) and then save your settings.
Cheers!
GeoffApril 19, 2016 at 10:50 am #1104435acquaParticipantThis reply is private.
April 20, 2016 at 5:06 am #1104758acquaParticipantThis reply is private.
April 20, 2016 at 5:19 am #1104767acquaParticipantThis reply is private.
April 20, 2016 at 7:43 am #1104843GeoffMemberHi @acqua,
It appears the screenshot of your Events > Settings > Display settings didn’t come through. Would you be willing to try re-sharing it again or perhaps linking to it?
If that setting is somehow not there (which be really odd!) then we could use CSS to hide the related events like we did for the public attendee list:
h3.tribe-events-related-events-title, ul.tribe-related-events { display: none; }
Thanks,
GeoffApril 20, 2016 at 7:55 am #1104852acquaParticipanthere is the admin event area.
Also, if I need to use the CSS, where do I put it?
April 20, 2016 at 8:52 am #1104876acquaParticipantI just tried the code you gave me in the style sheet and it did NOT work.
April 20, 2016 at 9:18 am #1104882QuentinParticipantThe CSS solution offered in this, and other threads, is a poor solution to the problem. It may hide the field, but it doesn’t actually change the option, so, now the user unknowingly gives permission to have their information listed on the front end if the attendee list option in the backend is set incorrectly.
Honestly, this whole front-end attendee list “feature” has been embarrassingly poorly rolled out. It should have NEVER been on by default, and if the option is not checked in the event editor, the checkbox shouldn’t even be on the page. Hiding it by CSS is a really embarrassing solution to continue to put out as well.
The real solution requires adding a filter, and editing a template file.
To hide the attendee list on all events, add the following line to your functions.php file:
add_filter('tribe_tickets_plus_hide_attendees_list', '__return_true');
To hide the checkbox on the tickets form, you will need to copy the relevant template files to your theme, depending on which ecommerce plugin you use (eddtickets, shopptickets, wootickets, wpectickets):
Copy from: wp-content/plugins/events-tickets-plus/src/views/{your_ecommerce_plugin}/tickets.php
Copy to: wp-content/themes/{your_theme}/tribe-events/{your_ecommerce_plugin}/tickets.phpThen edit the following block (line numbers vary, depending on your plugin)
Remove the following lines:
echo '<tr class="tribe-tickets-attendees-list-optout">' . '<td colspan="4">' . '<input type="checkbox" name="optout_' . esc_attr( $ticket->ID ) . '" id="tribe-tickets-attendees-list-optout-edd">' . '<label for="tribe-tickets-attendees-list-optout-edd">' . esc_html__( 'Don\'t list me on the public attendee list', 'event-tickets' ) . '</label>' . '</td>' . '</tr>'; include dirname( __FILE__ ) . '/../meta.php';
If you are using the option to collect user information at registration, you will need to change the following line:
include dirname( __FILE__ ) . '/../meta.php';
to
include get_template_directory() . '/tribe-events/meta.php';
if you use a child theme, it will be:
include get_stylesheet_directory() . '/tribe-events/meta.php';
You will also need to copy the wp-content/plugins/events-tickets-plus/src/views/meta.php file to wp-content/themes/{your_theme}/tribe-events/meta.php to load the event attendee fields. Alternatively, you could remove the include line altogether, and just copy/paste the contents of meta.php into that place in the tickets.php template file.
I think the very best solution is to offer a global “Enable/Disable front-end attendee list” not only a per event option.
I hate to be harsh, but The Events Calendar team should really be embarrassed for how they have handled this, and how many site owners were unexpectedly exposing their users publicly for event registrations.
April 20, 2016 at 11:50 am #1104995RiccardoParticipantHi,
but if they update the plugin is best, in my case, the CSS solution!
thanksApril 20, 2016 at 12:51 pm #1105035acquaParticipantThis reply is private.
April 20, 2016 at 4:10 pm #1105127GeoffMemberHi @acqua,
I see what you mean! You;re actually missing quite a few setting in the admin. Would you be willing to share your system information with me so I can check to see what that is? You can grab that by heading to Events > Settings > Help, copying the System Information at the bottom of the screen and pasting it here as a private reply.
I just tried the CSS one more time and it appears to remove the Related Events when I do. Perhaps try using the Simple Custom CSS plugin as another means of adding in those styles.
==
@Quentin — I appreciate you chiming in here but want to clarify my earlier reply because I believe you may have misunderstood. There is indeed a setting in the plugin to disable Related Events in the plugin. However, @acqua is not seeing that option and needed a solution immediately and the CSS was a fallback to help in the meantime.
Your point about the public attendee list option is certainly well taken and appreciated but quite out of scope for the topic of this question. I know you have chimed into other threads here voicing the same concerns, but I would encourage you to voice those in a productive way rather than jumping into unrelated threads where we are trying to support other people.
To your specific point about a global option for the setting, that is indeed something we are looking into and hoping to implement. I realize you are disappointed and frustrated by our initial implementation of the public attendee option, but I do hope that our quick efforts add configurable settings is providing some relief on the road to us doing more in future updates.
==
I am going to keep this thread open but only to directly address the original author of the thread, if needed. If anyone has additional issues or questions, then I would encourage you to open a new thread so we can provide you direct support there.
Thanks,
Geoff -
AuthorPosts
- The topic ‘Taking off’ is closed to new replies.