nitrokev
Forum Replies Created
-
Forum: Plugins
In reply to: [Flow-Flow Social Feed Stream] Twitter Feed Not Workingsame problem too, any solution?
Hi its not working for me either, I have a honey pot for city and even though I can see this is getting populated by spam bots the email is still getting submitted, I also have the time feature enabled and Recaptcha
It was Recaptcha failed verification, I’ve disabled this on login forms and its now working, not sure why this would be the case but at least we can log in!
Thanks
It looks like its iThemes Security that is causing the issue, I would rather not disable this though
The login form is the default so its set to Username or Email
Forum: Plugins
In reply to: [Download Monitor] Download inside carousel can’t disable lazy loadI added the filter to functions.php to try and disable lazy load, it is disabling it for other images on the site but not
$dlm_download->the_image();imagesForum: Plugins
In reply to: [Download Monitor] Download inside carousel can’t disable lazy loadHi Mihaela
Thanks for the reply
There are no optimization plugins installed
The link is https://naturespaceuk.dev.avidd-design.co.uk/resource-hub/
Thanks
Kev
+1
Has anyone got any advice for this please?
I think the issue is that every field type apart from text needs to return the data as an array
I had come up with the code below, but my issue with this is that checkboxes, radio buttons and drop downs dont save the results properly:
// Filter function um_customtab_add_tab( $tabs ) { $tabs['customtab'] = array( 'name' => 'Custom Tab', 'icon' => 'um-faicon-bullseye', ); return $tabs; } add_filter( 'um_profile_tabs', 'um_customtab_add_tab', 1000 ); // Action function um_profile_content_customtab_default( $args ) { global $ultimatemember; get_currentuserinfo(); $id = um_user('ID'); $output2 = ""; $action = 'um_profile_content_siterulesformstab_default'; $names = array( 'custom_meta_keys', ); $nonce = filter_input( INPUT_POST, '_wpnonce' ); $fields = []; foreach( $names as $name ) $fields[ $name ] = UM()->builtin()->get_specific_field( $name ); $fields = apply_filters( 'um_account_secure_fields', $fields, $id ); if( $nonce && wp_verify_nonce( $nonce, $action ) && um_is_myprofile() ) { foreach( $names as $name ) { update_user_meta( um_profile_id(), $name, filter_input( INPUT_POST, $name ) ); } UM()->user()->remove_cache( um_profile_id() ); } ?> <div class="um"> <div class="um-form"> <h1>Custom Tabs</h1> <form method="post"> <?php if( um_is_myprofile() ) { foreach( $fields as $key => $data ) { echo UM()->fields()->edit_field( $key, $data ); } } else { foreach( $fields as $key => $data ) { echo UM()->fields()->view_field( $key, $data ); } } ?> <?php if( um_is_myprofile() ) : ?> <div class="um-col-alt"> <div class="um-left"> <?php wp_nonce_field( $action ); ?> <input type="submit" value="<?php esc_attr_e( 'Update', 'ultimate-member' ); ?>" class="um-button" /> </div> </div> <?php endif; ?> </form> </div> </div> <?php } add_action( 'um_profile_content_customtab_default', 'um_profile_content_customtab_default' );Hi thanks, but unfortunately this is a backwards step, it is not displaying the meta keys that I have created, its only showing default ones like description, phone number etc
I’ve managed to get 90% there now.
Custom metakeys are displaying and saving when updated.
My only remaining issue is that dropdowns are saving the data but the form does not display the selected option after updating.
Checkboxes and radio buttons don’t seem to be saving the data at all.
I’ll post my code if anyone else is struggling to get the tabs working, just need to clean it up a bit
kristoffer132 I think your code is what I’m after but it doesn’t seem to be working
Just a quick update, I can get this to work with the default metakeys such as first_name, last_name
It just wont show any of the custom metakeys that I have created for the profile form