roundupwp
Forum Replies Created
-
Hey Cédric,
Sure! It sounds like there is a JavaScript error occurring somewhere on the page. I’d be happy to take a look. Can you send a link to the page with the shortcode on it?
You can contact us on our website if you’d prefer: https://roundupwp.com/support/
Hey cannellehypollite,
For #1, you can use a custom PHP snippet for this:
function ru_filter_event_meta( $event_meta ) { if ( ! current_user_can( 'edit_posts' ) ) { $event_meta['registrations_disabled'] = true; } return $event_meta; } add_filter( 'rtec_event_meta', 'ru_filter_event_meta' );You can either create your own plugin with this code or add it to your functions.php file.
For #2, I’m afraid I don’t quite understand. Can you explain it a bit more?
Thanks!
Craig
Hey again,
Here is an example PHP snippet to check for duplicate emails:
$db = New RTEC_Db(); $email = 'me@example.com'; $event_id = 100; $is_duplicate = $db->check_for_duplicate_email( $email, $event_id );You can add the form to any page using shortcodes. Scroll down past the registration options when editing an event to see shortcode examples: https://snag.gy/cH3QMd.jpg
Hey oonameoo,
It’s probably doable but I’m just wondering if you can give me more detail. Can you provide a screenshot of what you are trying to remove or what you would like the form to look like?
Glad that worked!
The example snippet on our website isn’t working properly with the latest versions. If you look at this thread, “Megacookie” came up with a workaround:
https://wordpress.org/support/topic/show-registration-form-when-logged-in/
Otherwise the next major update will fix this. Hopefully sometime in July is the plan!
Try it with this minor tweak:
jQuery('.rtec-form-field').each(function() { if (jQuery(this).find('input').val() !== '' && !jQuery(this).find('select').length) { jQuery(this).hide(); } });Hey Marco,
Glad you like the plugin!
Try adding this to the “Custom JavaScript” area on the “Form” tab. It will hide any fields that already have text in them:
jQuery('.rtec-form-field').each(function() { if (jQuery(this).find('input').val() !== '') { jQuery(this).hide(); } });Thanks,
Craig
Sure! We are getting a bit beyond what I can offer for free help but I’ll give you some ideas on what you can do:
1) To prefill the form with more user meta, use the code in the file inc/form/class-rtec-form.php 892 to 901. You should be able to use this block as a guide.
2) You can automatically submit the form for logged-in users when clicking the “Register” button using this code added to the “Custom JavaScript” area on the “Form” tab:
jQuery('.logged-in .rtec-register-button').click(function() { jQuery('.rtec-form').trigger('submit'); });3) You can change the button text for logged-in users using this added to the same “Custom JavaScript” area (Change the “User Register” to whatever you need it to be):
jQuery(‘.logged-in .rtec-register-button’).html(‘User Register <span class=”tribe-bar-toggle-arrow”></span>’);
Hopefully this helps!
– Craig
Hey oonameoo,
I think I can help you with this but want to make sure I understand you correctly. I’m thinking you would like it to work like this:
– Logged-in user goes the the single event page
– User clicks the “Register” button
– Form is automatically filled out with the user’s info, they don’t need to fill out anything
– Form automatically submits
Did you also want some advice on how to fill out additional form fields with user meta?
Thanks,
Craig
Hey cldisplay,
Both the free and Pro versions have a setting to change the button text. Just go to the “Form” tab and find the setting in this image: https://snag.gy/Q1s56I.jpg
As for your question about social login. I may need more details about how you are hoping to integrate the two but if you are just looking for the plugin to recognize users who log-in using a social login plugin then I’m sure it will work just fine.
If you have more questions about our paid “Pro” version, the moderators prefer that you contact us on our website. Would you be willing to do that? Here is the link:
https://roundupwp.com/support/Thanks!
Craig
Hey again,
This thread has been quiet for awhile so I’ll mark it resolved. Let me know if you need anything else!
– Craig
Hey again,
This thread has been quiet for awhile so I’ll mark it resolved. Let me know if you need anything else!
– Craig
Hey again,
This thread has been quiet for awhile so I’ll mark it resolved. Let me know if you need anything else!
– Craig
Hey again,
This thread has been quiet for awhile so I’ll mark it resolved. Let me know if you need anything else!
– Craig
Hey again,
This thread has been quiet for awhile so I’ll mark it resolved. Let me know if you need anything else!
– Craig