HawksDev
Forum Replies Created
-
Disregard
Is there no way to change how the data is stored? I know text entries are stored just as text not in an array from what it seems so i am curious if there is a way to either edit the plugin or to use some sort of hook to change how the data is stored?
I am using Version 2.3.0. This is the plugin that i am using. https://wordpress.org/plugins/import-users-from-csv-with-meta/
All it does is pull the values from the database.
Looks like just by updating how the data is saved seems to have fixed everything. Thanks for your help!!!
It sorta does. It only shows the last input field versus originally showing all the fields and just not updating correctly. That why I assumed I was missing something.
So i have made that change but im guessing im missing something..would you be able to show me what you mean? This is what i did:
function um_account_content_hook_orginfo( $output ){ ob_start(); ?> <div class="um-field"> <?php $id = um_user('ID'); //$output = ''; $names = array('title_position','office_phone','mobile_phone','Facility_Name','facility_legal_name','facility_main_phone','facility_24_7_phone','facility_address','facility_address_2','facility_county','facility_website','aspr_type','cms_type'); $fields = array(); foreach( $names as $name ) $fields[ $name ] = UM()->builtin()->get_specific_field( $name ); $fields = apply_filters('um_account_secure_fields', $fields, $id); foreach( $fields as $key => $data ) //$output .= UM()->fields()->edit_field( $key, $data ); ; echo UM()->fields()->edit_field( $key, $data ); ?> </div> <?php $output .= ob_get_contents(); ob_end_clean(); return $output; }Hey @champsupertramp
I was able to finally get this working. What I had to do was in my original code before
<?php echo do_shortcode('[office365distributiongroups]'); ?>I added </form> to close out the main form so that my plug-in could render its own. Thanks for the help.Hey @champsupertramp
After digging in a little more i noticed that the entire menu on the account page is a form which means i am trying to put a form inside of another form. Do you know if there is a way to change this?
Hey @champsupertramp
Sadly that did not work. When i hit the submit button to update the groups the account page after it loaded still took the data as if i wanted ultimate member to handle it and not the plugin itself.
Hello @champsupertramp
Thanks for that. In regards to the data submitting to the plugin and not being intercepted by ultimate member do you know how I could change this? I was able to add a custom tab to the profile page with my shortcode and it works but adding it to the account page doesn’t actually submit any changes to the plugins functions. Here are a few screen shots to help show what I am talking about:
My custom tab showing the shortcode:
https://ibb.co/K0PmqPNAfter I click submit:
https://ibb.co/x25Fh9BExpected result that I am needing that works on the profile page:
https://ibb.co/PC7NCybHere is my code:
/* add new tab called "mytab" */ add_filter('um_account_page_default_tabs_hook', 'my_custom_tab_in_um', 100 ); function my_custom_tab_in_um( $tabs ) { $tabs[800]['mytab']['icon'] = 'um-faicon-pencil'; $tabs[800]['mytab']['title'] = 'My Custom Tab'; $tabs[800]['mytab']['custom'] = true; return $tabs; } /* make our new tab hookable */ add_action('um_account_tab__mytab', 'um_account_tab__mytab'); function um_account_tab__mytab( $info ) { global $ultimatemember; extract( $info ); $output = $ultimatemember->account->get_tab_output('mytab'); if ( $output ) { echo $output; } } /* Finally we add some content in the tab */ add_filter('um_account_content_hook_mytab', 'um_account_content_hook_mytab'); function um_account_content_hook_mytab( $output ){ ob_start(); ?> <div class="um-field"> <?php echo do_shortcode('[office365distributiongroups]'); ?> </div> <?php $output .= ob_get_contents(); ob_end_clean(); return $output; }Forum: Plugins
In reply to: [WP Email Users] New User Autoresponder EmailDo you know when the next release will be? I am trying to completely migrate my emails though this plugin but that is the one thing that is holding my back. Would it be easy to add myself?