Mark Cutting
Forum Replies Created
-
Forum: Plugins
In reply to: [Complianz - GDPR/CCPA Cookie Consent] Fatal ErrorHmm – seems to be related to this https://wordpress.org/support/topic/jetpack-twitter-integration-not-working-properly/
Disabled the integration for Twitter and now it’s working 🙂
This isn’t a review – it’s a direct attack. I’ve been using this plugin for years, and it’s only gotten better with time. RTFM springs to mind here.
Forum: Plugins
In reply to: [Complianz - GDPR/CCPA Cookie Consent] Conflict with HappyForms@rogierlankhorst thanks – awesome response as usual 🙂 If you could have a look, that would be great. Really appreciated.
Thanks
Found it. Conflict is caused by Complianz Privacy Suite (GDPR/CCPA)
Hi @thethemefoundry. Those errors aren’t related as you say, and I’ll fix them. I already disabled the caching plugin, but that didn’t make any difference unfortunately.
@laszloszalvak excellent. Thanks
@laszloszalvak I’ve resolved this using the actions available in the login form
https://wordpress.org/support/topic/add-custom-fields-to-login-form/Thanks @paulplapsa. A slightly modified version to allow for error checking (if the plugin is disabled)
// Add social login buttons from Nextend Social Login to Profile Builder Login Form add_filter( 'login_form_top', 'add_social_login_buttons'); function add_social_login_buttons() { // Check to see if the plugin is active first before appending the shortcode if( is_plugin_active( 'nextend-facebook-connect/nextend-facebook-connect.php' ) ) { $result = do_shortcode("[nextend_social_login style=\"icon\"]"); return $result; } }RESOLVED. This works exactly as intended
add_filter( 'login_form_top', 'add_social_login_buttons'); function add_social_login_buttons() { $result = do_shortcode("[nextend_social_login style=\"icon\"]"); return $result; }Ok, this is better, as it’s a function that means that the core doesn’t need to be modified as there’s filter I can use
add_filter( 'login_form_top', 'add_social_login_buttons'); function add_social_login_buttons() { echo do_shortcode("[nextend_social_login style=\"icon\"]"); }The problem with this is that the social links sit outside of the form, not inside…
Easy enough to workaround by making a minor change to profile-builder-pro/front-end/login.php, on line 127
Change
$login_form_top = apply_filters( 'login_form_top', '', $args );To
$login_form_top = apply_filters( 'login_form_top', '', $args ) . do_shortcode("[nextend_social_login style=\"icon\"]");Less than ideal as this will be overwritten each time the plugin is updated, but does provide what I want.
I’m an surprised that there is no hook or function to override this though ?
Ok. This is a pity – I thought that the login form would have taken fields from the stock wp-login form, but clearly not the case.
Sorry. Just realised where this needs to be placed – in the login guard 3rd party detection 😊
Placed it there, and it works perfectly. Thanks!!
Not sure what you mean. I’m using the below shortcode
[wppb-register form_name=”registration-form”]
Great. Thanks very much.