roundupwp
Forum Replies Created
-
Hey Chris,
We don’t have any integrations with Sendinblue email lists currently but it would be possible to create something using a PHP hook. This one is going to be the most useful:
https://roundupwp.com/codex/action-rtec_after_registration_submit/
Let me know if you have more questions!
– Craig
Hey vinchoz,
You would need some custom PHP for this currently. I was able to create some though. You would put the following in your theme’s functions.php file to get it to work. Be careful as an error can crash your site:
function ru_custom_attendance_class() { if ( ! function_exists( 'RTEC' ) ) { return; } $event_meta = rtec_get_event_meta( get_the_ID() ); if ( $event_meta['registrations_left'] === 0 ) { echo '<div class="ru-full">'; } else { echo '<div class="ru-open">'; } } add_action( 'tribe_template_before_include:events/v2/list/event', 'ru_custom_attendance_class' ); add_action( 'tribe_template_before_include:events/v2/month/calendar-body/day/calendar-events/calendar-event', 'ru_custom_attendance_class' ); add_action( 'tribe_template_before_include:events/v2/month/mobile-events/mobile-day/mobile-event', 'ru_custom_attendance_class' ); function ru_custom_attendance_class_after() { if ( ! function_exists( 'RTEC' ) ) { return; } echo '</div>'; } add_action( 'tribe_template_after_include:events/v2/list/event', 'ru_custom_attendance_class_after' ); add_action( 'tribe_template_after_include:events/v2/month/calendar-body/day/calendar-events/calendar-event', 'ru_custom_attendance_class_after' ); add_action( 'tribe_template_after_include:events/v2/month/mobile-events/mobile-day/mobile-event', 'ru_custom_attendance_class_after' );This will add a wrapping “div” element with the class “ru-open” or “ru-full” if the registration limit is reached.
Let me know if you have more questions!
– Craig
Hey Chris,
I’m glad you like the plugin!
We do have plans to update this soon. We just had someone volunteer translations for the pro plugin which will also fill some gaps in the free version. Look for this in the next update!
– Craig
Yes both our free and pro version will work just fine with Event Tickets. The two plugins will not know about each other, however, so you will need to manage registration and ticketing completely independently.
If you end up with any more questions about our “Pro” plugin, please contact us on our website here:
https://roundupwp.com/support/Thanks!
Hi Josh,
If you need details about the additional guests, we have a feature for this described here:
https://roundupwp.com/faq/can-attendees-register-one-person/Hopefully that helps!
– Craig
rybarova ended up contacting us on our website so I’ll mark this as resolved for now!
Our paid pro version has feature to support links for virtual events. We might add related features to the free registration plugin sometime as well.
– Craig
This ended up being resolved through our support system and if anyone is interested in the solution, please use the support form mentioned above.
Hi Luca,
I’m thinking that you are hoping to restrict registration by membership level. Is that correct? If so, I have two ideas:
1) If you switch your “Form Location” setting to “Shortcode or Gutenberg Block” and then add the shortcode to the event description.
2) I have a plugin I made for our Pro version to allow you to choose which membership levels can register for an event (which will allow this to work like you were hoping). I think it will work for the free version too. Can you contact me on our support page to get a download link?
Thanks!
– Craig
Ahh OK sounds good! Let me know if you need anything else.
– Craig
Hey BestRanger,
This is possible though it will require a PHP snippet. You could add the following to your theme’s functions.php file (you will want to be careful with this as it can cause an error for your site).
In this example I found the “slug” for the category and used it in the first line of code inside the function. Notice how the “one” part in the code matches the slug in this screenshot: https://snipboard.io/YqdRVo.jpg
Code:
function ru_registration_category( $event_meta ) { $category_slug = 'one'; // this should match the category slug if ( is_admin() ) { return $event_meta; } $tax = 'tribe_events_cat'; $terms = get_the_terms( $event_meta['post_id'], $tax ); if ( empty( $terms ) ) { return $event_meta; } $ids = array(); $slugs = array(); foreach( $terms as $term ) { $ids[] = $term->term_id; $slugs[] = $term->slug; } if ( ! in_array( $category_slug, $slugs, true ) ) { $event_meta['registrations_disabled'] = true; } return $event_meta; } add_filter( 'rtec_event_meta', 'ru_registration_category' );For this question:
It is also possible to turn off registration information for closed events (except CSS display: none)Can you explain this a bit more? Do you mean if an event has filled you want to remove all messages relating to registration?
– Craig
This thread has been quiet for awhile so I’ll mark it as resolved. Let me know if you end up with any questions though!
– Craig
Hello again Kevin,
This ended up being more complex than I thought but I have something that should work!
function ru_one_per_category( $event_meta ) { if ( is_admin() ) { return $event_meta; } if ( is_user_logged_in() ) { $tax = 'tribe_events_cat'; $terms = get_the_terms( $event_meta['post_id'], $tax ); if ( empty( $terms ) ) { return $event_meta; } $post_type = defined('Tribe__Events__Main::POSTTYPE') ? Tribe__Events__Main::POSTTYPE : 'tribe_events'; $args = array( 'post_type' => $post_type, 'post_status' => 'publish', 'posts_per_page' => 50, 'order' => 'ASC' ); $ids = array(); foreach( $terms as $term ) { $ids[] = $term->term_id; } $args['tax_query'] = array( array( 'taxonomy' => $tax, 'field' => 'id', 'terms' => $ids ) ); $posts = tribe_get_events( $args ); $event_ids = array(); foreach ( $posts as $post ) { $event_ids[] = $post->ID; } $rtec = RTEC(); foreach ( $event_ids as $event_id ) { $args = array( 'fields' => array( 'id' ), 'where' => array( array( 'event_id', $event_id, '=', 'int' ), array( 'user_id', get_current_user_id(), '=', 'int' ) ), 'order_by' => 'registration_date' ); $registrations = $rtec->db_frontend->retrieve_entries( $args, true ); if ( isset( $registrations[0] ) ) { $event_meta['registrations_disabled'] = true; } } } return $event_meta; } add_filter( 'rtec_event_meta', 'ru_one_per_category' );If you can follow the code works by getting the event categories that the event in question has. Then getting all events that have that same category. The IDs of these events are collected. Then finally the registration database is searched to see if there are any entries that match the user that is logged in. Registration is disabled if one is found.
Let me know if you have questions!
– Craig
Hey Kevin A,
Sorry I missed your response here! I’ll put something together tomorrow for you.
– Craig
Hey pauhana,
Thanks for your interest! We have a feature in our paid Pro version that might work for this. You can read about it here:
https://roundupwp.com/faq/guide-to-using-multiple-venues-and-tiers/If you have any follow up questions, the moderators of this forum prefer that you contact us on our website:
https://roundupwp.com/support/Thanks!
– Craig
Hey cyrilnebesar,
This data is actually stored as a custom post type. So you will find it in the wp_posts and wp_postmeta tables. Look for tribe_organizer and tribe_venue in the post_type column.
Hopefully that helps!
– Craig