Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 16 through 30 (of 33 total)
  • Author
    Posts
  • in reply to: Does not work after update to 1.1 #7075
    woorisewoorise
    Participant

    It's working fine now. Thank you!

    in reply to: Does not work after update to 1.1 #7058
    woorisewoorise
    Participant

    Here is an example: https://pastebin.com/iYqZD5Ui

    Just to note again that in version 1.0.1 it's working fine.

    in reply to: Does not work after update to 1.1 #7043
    woorisewoorise
    Participant

    'tooltip' => esc_html__( 'my text', 'textdomain' ),

    in reply to: Multiple file_upload fields #6774
    woorisewoorise
    Participant

    I did it but I didn't get any information that I could use.

    For now I am checking external conditions like user role, post taxonomies etc. but it would be useful if there was a more direct way related to the field.

    in reply to: Multiple file_upload fields #6768
    woorisewoorise
    Participant

    Yes I am using upload_dir filter.

    in reply to: Optimize rwmb_meta_boxes filter #6382
    woorisewoorise
    Participant

    Thank you for your answers. Most of the times I am using get_user_meta or get_post_meta.

    My users have access mostly on backend and even using is_admin() it will still load for example in the dashboard.

    in reply to: User role issue #6219
    woorisewoorise
    Participant

    Thank you! Now it's working fine!

    in reply to: User role issue #6213
    woorisewoorise
    Participant

    Thank you for the fast update!

    I saw that you have add "edited_user_role" and "edited_user_id" parameter in the 1.0.9 version but when I am trying to update the plugin I get the 1.0.8 version even with manual download.

    in reply to: Disable select option #6200
    woorisewoorise
    Participant

    Thank you for your answer.

    I tried the following on a "select_advanced" field but if I first open the dropdown then it doesn't enable the option.

    jQuery(document).ready(function(){
    
      jQuery("#status option[value='23']").prop("disabled", true);
    
      jQuery('.rwmb-file_upload').on( 'change', function( event, items ) {
    
        if ( items.length ) {
          jQuery("#status option[value='23']").prop("disabled", false);
        }
    
      });
    });
    in reply to: User role issue #6198
    woorisewoorise
    Participant

    Thank you for the tip is very useful.

    I actually want to hide a meta box (I just have only one field).

    I tried the following code in order to make the meta box available only to administrators but administrators can't see the meta box when editing other users profile with role "myrole". Maybe there is a bug here.

    'include' => array(
    'user_role' => 'administrator',
    ),

    in reply to: User role issue #6160
    woorisewoorise
    Participant

    What I want to do is to hide a profile field from a user with custom role "myrole" but administrator will be able to edit that field.

    Is that possible?

    Thanks.

    in reply to: Disable select option #6150
    woorisewoorise
    Participant

    I see. So I need to do this manual.

    Can you please give me some info on what event is triggered when we use the "file_upload" field so I can disable/enable the select option if the user upload a file.

    I tried the code above but it doesn’t work properly.

    in reply to: Disable select option #6111
    woorisewoorise
    Participant

    Thank you for the quick respond.

    Is possible to add the "disable" property in the toggle_type option?

    If not how can I check if the file_upload is empty or not when the file_upload is change?

    I tried the following but it doesn't work properly:

      jQuery('.rwmb-file_upload').on( 'change', function() {
    
        var uploaded = jQuery('.rwmb-media-input').val();
    
        if ( uploaded ) {
          //code here
        }
    
      });
    in reply to: Attach file to custom post type #5877
    woorisewoorise
    Participant

    Hello Anh,

    Do you have any update on this?

    Thanks!

    in reply to: max_status dosen't work #5148
    woorisewoorise
    Participant

    Thanks for the quick respond Anh 🙂

Viewing 15 posts - 16 through 30 (of 33 total)