roundupwp
Forum Replies Created
-
Hey pejt,
This snippet will work for multiple lists on one page:
$('.rtec-attendee-list').each(function() { $(this).find('.rtec-attendee').each(function(index) { var num = index + 1; $(this).text(num+'.'+$(this).text()); }); });Let me know if you have more questions!
– Craig
Hey ximenavin,
Restricting registration for logged-in users is a feature available in the paid “Pro” version.
Otherwise, you can put together a quick snippet to do this in the free version as well. Take a look at this FAQ: https://roundupwp.com/codex/action-rtec_before_display_form/
Basically you need to add this to the functions.php file for your theme:
function ru_filter_event_meta( $event_meta ) { if ( ! is_user_logged_in() ) { $event_meta['registrations_disabled'] = true; } return $event_meta; } add_filter( 'rtec_event_meta', 'ru_filter_event_meta' ); function ru_show_log_in_message( $args ) { if ( $args['event_meta']['registrations_disabled'] && ! is_user_logged_in() ) { echo '<p class="rtec-success-message tribe-events-notices"><strong>Please log in to register</strong></p>'; } } add_action( 'rtec_before_display_form', 'ru_show_log_in_message' );Hi walacky,
This is definitely something in the works. I was hoping to have it available earlier but it looks like next week will be when the update is available. You should have some time to set this up before the deadline then.
Let me know if you have more questions!
– Craig
Thanks for the link! So using that tutorial as an example you could try two things:
1) Track whenever the submit button is clicked. Add this to the “Custom JavaScript” area on the “Form” tab:
jQuery('.rtec-submit-button').attr("onclick","ga('send', 'event', { eventCategory: 'Forms', eventAction: 'Mailing List Subscription', eventLabel: 'Sidebar'});");2) Track whenever there is a successful registration. Add this to the “Custom JavaScript” area on the “Form” tab:
window.rtecAfterSubmit = function() { ga('send', 'event', { eventCategory: 'Forms', eventAction: 'Mailing List Subscription', eventLabel: 'Sidebar'}); }The advantage of the second snippet is that it will only record successful registrations and not when someone clicks the button but has errors in the form. Let me know if this doesn’t seem to work. It might be beyond what I can provide support for but I can definitely help as best as I can!
– Craig
Hey adage,
It most likely is but I must admit I’m not as knowledgeable about Google analytics as I should be. Is there a bit of code or a tutorial you’re working off of? I can definitely see what can be done to track the number of conversions for registrations if so.
– Craig
- This reply was modified 8 years, 1 month ago by roundupwp.
Thanks for the awesome review! Much appreciated.
You are correct that the plugin is definitely still evolving. The specific feature you mentioned here will definitely be added at some point among others.
Thanks again and have a great weekend.
Just an update in case others come across this thread. After working with Lothar, we were able to add support for WPML for the free version of the plugin. This will be available in version 2.2 (due out in late April).
Thanks for letting me test this out Lothar!
Thanks for the great review! That really helps encourage others to try the plugin so it’s greatly appreciated.
I hope you’re having a good weekend!
Hey again,
Glad we could figure something out for this! I’m happy to help.
No obligation or anything, but if you wanted to leave a quick review it would be greatly appreciated. Otherwise please let me know if you ever need anything else.
Thanks again and good luck with your events!
Craig
Hey again loesshillshog,
Ahh sorry about that! I see now that I didn’t read your first message carefully. This is definitely possible as you can display the attendee list with a shortcode for any event. Here are the steps:
1) Disable the “Show Attendee List Above Form” setting on the “Form” tab.
2) Go to the page to “edit” the event you want to display the attendee list for.
3) Scroll down past the registration settings and copy the attendee list shortcode that is specific to that event https://snag.gy/oDryNz.jpg. For example:[rtec-attendee-list event=1426 showheader=true]
This shortcode will display the attendee list for the event with the ID 1426 and include the title of the event and the start/end times.
You can add as many of these shortcodes to your password protected page as you need to.
Sounds like you are handy with PHP. You can modify the HTML for the attendee list using a hook. Take a look at this page on how you can make the attendee list into a table: https://roundupwp.com/codex/action-rtec_the_attendee_list/
Let me know if you have more questions!
No problem! Thank you so much for leaving the review as well! That really helps us out.
Let me know if you ever need anything else.
Thanks,
Craig
Hey loesshillshog,
This is a setting available in the “Pro” version but if this is the only feature you need, you could add this PHP to your functions.php file to show the attendee list only to logged-in users:
function ru_attendee_list_logged_in_only( $event_meta ) { if ( !is_user_logged_in() ) { $event_meta['show_registrants_data'] = false; } return $event_meta; } add_filter( 'rtec_event_meta', 'ru_attendee_list_logged_in_only' );Let me know if you need more help!
– Craig
I forgot to mention, you can change the text “Full” and “volunteering” to whatever you need for your use as well.
I hope you are having a great start to your week!
Hey Erwinnet,
Yes this is possible with a bit of PHP code. For others looking for help with this, there is a blog post on how you can add customizations to different parts of The Events Calendar here: https://roundupwp.com/customize-events-calendar-single-event-templates/
For your specific use, you would want to add this code in your functions.php file for your theme. Be very careful when adding this as a mistake can cause your site to crash:
Here is the PHP code that will add the notice:
function rtec_custom_registration_count_display() { // Only run this code if Registrations for the Events Calendar is active if ( function_exists( 'rtec_get_event_meta' ) ) { $event_id = get_the_ID(); // Get information about this event related to registrations $event_meta = rtec_get_event_meta( $event_id ); // If this event has limited seats if ( $event_meta['limit_registrations'] ) { // Calculate the number of seats remaining and display a note $registrations_remaining = $event_meta['max_registrations'] - $event_meta['num_registered']; if ( $registrations_remaining < 1 ) { echo '<div class="tribe-events-event-cost rtec-custom-limit rtec-green"><span>Full</span></div>'; } elseif ( $event_meta['num_registered'] > 0 ) { echo '<div class="tribe-events-event-cost rtec-custom-limit rtec-red"><span>' . $event_meta['num_registered'] . ' volunteering</span></div>'; } } } } add_action( 'tribe_events_before_the_meta', 'rtec_custom_registration_count_display' );You will also need to add this CSS to the “Custom CSS” area on the “Form” tab:
.tribe-events-event-cost.rtec-custom-limit { float: none !important; display: inline-block; margin: 0 0 5px !important; } .tribe-events-list .tribe-events-event-cost.rtec-custom-limit.rtec-red span { background: #FDA7AD; border-color: #FC8089; } .tribe-events-list .tribe-events-event-cost.rtec-custom-limit.rtec-green span { background: #C8F6F1; border-color: #68CDC2; }Let me know if you have more questions!
– Craig
Hey Lothar,
We are always improving our support for translations but this plugin hasn’t been tested with WPML. I’d love to help you get this working like you need though as I’m sure others would be interested in this. Feel free to contact us on our support page here:
https://roundupwp.com/support/
I’ll look at creating a config file for WPML in the mean time you can try out.