adaldesign
Forum Replies Created
-
Forum: Plugins
In reply to: [Integrate Elementor Form With Mailster] No mailster optionHey Kevin and all,
We coded a fix. Paste the following into your functions.php
add_action( 'init', '____action_function_name' ); function ____action_function_name() { // Include Extension files require_once dirname( INTEGRATE_ELEMENTOR_MAILSTER_PATH ) . '/includes/class-mailster-action-after-submit.php'; // Instantiate the action class $mailster_action = new Mailster_Action_After_Submit(); // Register the action with form widget \ElementorPro\Plugin::instance()->modules_manager->get_modules( 'forms' )->add_form_action( $mailster_action->get_name(), $mailster_action ); }
Forum: Plugins
In reply to: [Integrate Elementor Form With Mailster] No mailster optionHello Fernando,
I have the same issue as Kevin.
This video shows the details:
Thank you for making this great plugin and fixing this issue!
Nice one Jape!
I ended up using your solution as it is cleaner.
I was working on a function instead but couldn’t get it to work. So far I got:
function change_anr_actions() { if ( anr_is_form_enabled( 'wc_checkout' ) ) { print '<!-- NEW TEST 3 -->'; remove_class_hook( 'woocommerce_checkout_after_order_review', 'anr_captcha_class', 'wc_form_field' ); add_action( 'woocommerce_checkout_order_review', 'anr_captcha_form_field' ); } } // add_action( 'wp_head', 'change_anr_actions' ); /* * Function to remove Actions from within Classes we can't overwrite */ function remove_class_hook( $tag, $class_name = '', $method_name = '', $priority = 10 ) { global $wp_filter; $is_hook_removed = false; if ( ! empty( $wp_filter[ $tag ]->callbacks[ $priority ] ) ) { $methods = wp_list_pluck( $wp_filter[ $tag ]->callbacks[ $priority ], 'function' ); $found_hooks = ! empty( $methods ) ? wp_list_filter( $methods, array( 1 => $method_name ) ) : array(); foreach( $found_hooks as $hook_key => $hook ) { if ( ! empty( $hook[0] ) && is_object( $hook[0] ) && get_class( $hook[0] ) === $class_name ) { $wp_filter[ $tag ]->remove_filter( $tag, $hook, $priority ); $is_hook_removed = true; } } } return $is_hook_removed; }
Adal
I didn’t want to mess with the actions used to place the captcha form (although the author should probably choose to do so).
Meanwhile, I also didn’t get good results with a simple CSS relative position, so I used jQuery to move the captcha, 1 second after page load:
setTimeout( function() { $('.woocommerce-terms-and-conditions-wrapper').append( $('.anr_captcha_field') ); }, 2000);
A proper solution should however be integrated into the plugin by the author, as the position of the captcha was leading to many people getting errors and not checking out.
I would also like to move the captcha up a little bit where people can actually see it.
Forum: Plugins
In reply to: [Gravity Slider Fields] Add event listener to slider interactionI got the answer here! https://www.ads-software.com/support/topic/enable-calculations-to-insert-slider-fields-as-a-merge-tag/#post-9659010
For those doing something similar, my code looks a little like this:
* * Add jQuery to handle custom Donation form * */ add_action('wp_head', 'custom_donation_js'); function custom_donation_js(){ if( is_product() ) { ?> <script type="text/javascript"> jQuery(document).ready(function($) { $('#gsfslider_3 .noUi-handle').mouseup(function() { let amount = $('#input_2_3').attr('value'); if ( amount > 5 ) alert( amount ); }); }); </script> <?php } };
Justin,
Do you recommend activating the plugin on a per-site basis, or should we network-activate it?
Thanks,
AdalForum: Plugins
In reply to: [Search & Index Page Content] Search Word Not ShowingHey Steve,
Unfortunately I am traveling right now so I can’t make edits to the plugin. Additionally, this is really a theme issue, not a plugin issue.
If your theme does not allow you to add custom CSS in the theme options, and you also don’t know how to create a child theme, I would suggest using the Simple Custom CSS plugin to add this CSS:
#sipc-content span.label { color: black; }
Forum: Plugins
In reply to: [Search & Index Page Content] How to add this to a page with an accordion FAQHey eibbtoddb,
Make sure you are wrapping your ENTIRE page with the [SIPC_Content] shortcode and NOT wrapping individual bits of content (aka multiple uses of the shortcode).
If that doesn’t do it for you, you probably have more debugging to handle than I can provide.
Forum: Plugins
In reply to: [Search & Index Page Content] Add only search featureWhen you add the sidebar widget, simply uncheck the “Show content index links” box. Then, only the search will appear in the sidebar.
Forum: Plugins
In reply to: [Bulk Delete] Multisite?Hey Sudar,
If I delete users of a blog on a multisite network, will those users be deleted entirely from the network or simply removed from the blog?
Hey Vlad,
I see your point.
Honestly, as long as admins can’t edit each other’s capabilities, I think that’s good enough.
In Multisite those rights should be reserved for the Super Admin (even if the “Allow non super administrators to create, edit, and delete users” is checked).
I’m stoked to see that you are so active at updating your amazing plugin. It’s really a nice piece of work.
Adal
Cheers Vlad, I’m stoked to hear that!
Cheers Vlad,
Alternatively if we could just turn off the “Capabilities” link that now shows up for each user on the users.php page, that would be a nice central on/off switch to have.
I think that many people are like me and only want to control things in a role-based and not per user.
Adal
Forum: Hacks
In reply to: meta_query 'compare' => 'IN' not working as described in CodexHey bcworkz,
Thanks a ton for your answer. I see your logic: dump the SQL and troubleshoot from there.
I’m still not sure I totally understand how the IN compare method is supposed to work. I thought it basically did something similar to the PHP array_search() method but on serialized data in the database…
Unfortunately for this thread, I found a workaround already for my project.