Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 21 total)
  • Author
    Posts
  • in reply to: All fields have disappeared #40427
    Joe AndersonJoe Anderson
    Participant

    Thanks Peter. I was about to run through the steps listed, but realized one of the computers I work on must have updated the fields successfully, so I did have 1 out of 3 installs that had good data. I then just exported that and re-imported to my other installs. All resolved now for this particular site, but I'll keep this in mind if I run into it again.

    Thanks!

    in reply to: All fields have disappeared #40308
    Joe AndersonJoe Anderson
    Participant

    The previously added fields all still show in the custom post type and I can utilize them for the post type. I'm just unable to modify any of the fields with the builder.

    in reply to: Change password form shortcode doesn't work #36663
    Joe AndersonJoe Anderson
    Participant

    I found a solution to this. I pulled the password fields from within the user profile plugin's code and added it to my own metabox. Use the following shortcode and metabox setup. You should be able to add additional user profile fields as listed in the documentation as well:

    [mb_user_profile_info id="your-metabox-id"]

    $meta_boxes[] = [
    	'title'		=> '',
    	'id'     => 'your-metabox-id',
    	'type'   => 'user',
    	'fields' => [
    		[
    			'id'   => 'first_name',
    			'name' => esc_html__( 'First Name', 'yourdomain' ),
    			'type' => 'text',
    		],
    		[
    			'id'   => 'last_name',
    			'name' => esc_html__( 'Last Name', 'yourdomain' ),
    			'type' => 'text',
    		],
    		[
    			'id'   => 'user_email',
    			'name' => esc_html__( 'Email', 'yourdomain' ),
    			'type' => 'text',
    		],
    		[
    			'name'     => __( 'New Password', 'yourdomain' ),
    			'id'       => 'user_pass',
    			'type'     => 'password',
    			'required' => true,
    			'desc'     => '<span id="password-strength" class="rwmb-password-strength"></span>',
    		],
    		[
    			'name'     => __( 'Confirm Password', 'yourdomain' ),
    			'id'       => 'user_pass2',
    			'type'     => 'password',
    			'required' => true,
    		],
    	],
    ];
    in reply to: Change password form shortcode doesn't work #36619
    Joe AndersonJoe Anderson
    Participant

    Has there been any update to this? I'm still getting "Error: No meta boxes are available!"

    in reply to: Code generated broken? #20712
    Joe AndersonJoe Anderson
    Participant

    Awesome work, thanks!

    in reply to: Code generated broken? #20669
    Joe AndersonJoe Anderson
    Participant

    Thanks for the tip, Long!

    in reply to: Code generated broken? #20665
    Joe AndersonJoe Anderson
    Participant

    Same here. Block options are no longer being generated and the preview is just a white box.

    in reply to: Backup & Restore not working with Composer loading #19587
    Joe AndersonJoe Anderson
    Participant

    It seems my composer package was loading version 1.3.4 of the settings page, as opposed to version 2.1.0 of the single plugin... I'm not sure why.

    I had run composer update, but for some reason the packages weren't updating. I trashed all the packages and re-ran composer update to install them all fresh again and now have the latest versions.

    All seems to be working fine now. Thanks again for the support!

    in reply to: Backup & Restore not working with Composer loading #19561
    Joe AndersonJoe Anderson
    Participant

    Thanks for looking into this. I'm not seeing any difference between my setup and what you are showing, but it still doesn't seem to work. Can you take a look at my video and let me know if you see anything wrong with my process? (I have a license code, but cleared it out for the video)

    https://www.loom.com/share/d6ee367f782f4d259137643177156b49

    Thanks!

    Joe AndersonJoe Anderson
    Participant

    Are you loading metabox and the settings extension through composer? I am able to get it working when loading metabox through the standalone plugins or the AIO plugin. But, when I switch to just using composer (with latest available files) it still doesn't work. See screenshots.

    Using Plugins

    Using Composer

    Joe AndersonJoe Anderson
    Participant

    For sure. The code is below. I have removed other tabs for simplicity. Thanks for the help!

    https://pastebin.com/4UnBqKfv

    /**
     * Register settings pages
     *
     * @since    3.0
     * @access   public
     * @var      array $settings_pages    
    */
    function ditty_settings_pages() {
      $settings_pages[] = array(
        'id'          => 'ditty_settings',
        'option_name' => 'ditty_settings',
        'menu_title'  => __( 'Settings', 'ditty-news-ticker' ),
        'capability'  => 'manage_ditty_settings',
        'parent'          => 'edit.php?post_type=ditty_ticker',
        'style'       => 'no-boxes',
        'columns'     => 2,
        'tabs'        => array(
          'backup'  => __( 'Backup & Restore', 'ditty-news-ticker' ),
        ),
      );
      return $settings_pages;
    }
    add_filter( 'mb_settings_pages', 'ditty_settings_pages' );
    
    /**
     * Register settings metaboxes
     *
     * @since    3.0
     * @access   public
     * @var      array $meta_boxes    
    */
    function ditty_settings_metaboxes( $meta_boxes ) {
        $meta_boxes[] = array(
          'id'             => 'backup',
          'title'          => __( 'Backup & Restore', 'ditty-news-ticker' ),
          'settings_pages' => 'ditty_settings',
          'tab'            => 'backup',
          'fields'         => array(
              array(
                  'name' => __( 'Backup & Restore', 'ditty-news-ticker' ),
                'type' => 'backup',
              ),
          ),
        );
        return $meta_boxes;
    }
    add_filter( 'rwmb_meta_boxes', 'ditty_settings_metaboxes' );
    in reply to: Input ID issues when using fieldset_text within group #17904
    Joe AndersonJoe Anderson
    Participant

    Great, thanks again for your help!

    in reply to: Sanitizer callbacks returning empty #15826
    Joe AndersonJoe Anderson
    Participant

    Awesome, thanks! Working great now.

    in reply to: MB Group "std" is not showing up in settings page #13311
    Joe AndersonJoe Anderson
    Participant

    Thanks. I believe I may need to get some more background on how the current functionality is setup as I don't believe I'm fully understanding how the root std field is meant to work.

    I am mainly trying to get the std field within the child fields to work for every instance of the group object (initial and clones).

    I will continue conversation on this within the merge request, unless you'd rather it be continued here.

    Thanks!

    in reply to: MB Group "std" is not showing up in settings page #13265
    Joe AndersonJoe Anderson
    Participant

    I still was unable to render std values in my groups. I have created another pull request with a modification I made. Please check it out when you get a chance.

    Thanks!

Viewing 15 posts - 1 through 15 (of 21 total)