Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 1,126 through 1,140 (of 3,702 total)
  • Author
    Posts
  • in reply to: Php code in the frontend submission form #14516
    Anh TranAnh Tran
    Keymaster

    The custom_html field allows you to set a callback (a PHP function name), where you can use a PHP function to output anything. Please try it.

    in reply to: MB Custom Table beginner questions #14515
    Anh TranAnh Tran
    Keymaster

    Hi Brian,

    Once the table is created should I delete this code?

    It's fine if you delete the code. If you keep the code, it will check for table existence before trying to create.

    If your data set is large do you advise setting all your fields to VARCHAR(length) NOT NULL

    Varchar is for a text that you don't know the length. It's usually used for fields like title, short description. If the field is large, I'd recommend using TEXT.

    What's the best way to import xml or csv data into my newly created custom post type that uses the mb custom table?
    I set the field ID to AUTO_INCREMENT. This allowed me to import my csv file and everything in the custom mb table imported correctly. But when I go to my custom post type in wp admin these listings do not show. This is driving me bananas.

    The ID column must map the ID of the posts in the WordPress's table. Otherwise, the plugin can't know which post that a row belongs to.

    I think, you need to edit the ID column first. Then using phpMyAdmin to import.

    in reply to: How can I achieve "save as" feature while editing form #14514
    Anh TranAnh Tran
    Keymaster

    Hi Calpaq,

    That sounds like a "copy" function. It's not supported at the moment :(.

    in reply to: Create terms taxonomy field #14513
    Anh TranAnh Tran
    Keymaster

    Hi Sergio,

    You can add condition to the parameter, like this:

    $can_add_new = current_user_can( 'manage_options' );
    
    // then in the field settings, set
    'add_new' => $can_add_new,
    in reply to: How can I achieve "save as" feature while editing form #14495
    Anh TranAnh Tran
    Keymaster

    Hi Calpaq,

    What do you mean "Save As"? Can you give a little more info about that?

    in reply to: Order of Relationship #14494
    Anh TranAnh Tran
    Keymaster

    Hi Matthias,

    Using get_posts is risky, since it auto applies suppress_filters=true, which is used to filter the results (the extension changes the query by applying new WHERE, JOIN clauses). If you want to make it work like WP_Query, I think you need to set it to false.

    Anh TranAnh Tran
    Keymaster

    Thanks a lot for your feedback and help. Let's continue discussing this issue on your PR on Github.

    Update: it's resolved here.

    Anh TranAnh Tran
    Keymaster

    Hi Calpaq,

    Thanks a lot for your feedback. I've just realized the problem yesterday. Your solution seems right. I'll test it and release a new version.

    in reply to: Limit Image size and dimensions #14460
    Anh TranAnh Tran
    Keymaster

    Hi Michael,

    It's not in the plugin yet. But you can show a description to users to let them know the limit, and use a plugin like Resize Image After Upload to auto resize the images if their dimensions exceed the max width/height.

    in reply to: OSM field and tile server #14453
    Anh TranAnh Tran
    Keymaster

    Hi Toomas,

    At the moment, the URL of the tile server is fixed with OpenStreetMap. I've just re-check the code and found it's not very hard to add options for another tile server. Let me try and update you when it's done.

    in reply to: user_id attribute in mb_user_profile_info shortcode #14452
    Anh TranAnh Tran
    Keymaster

    Hi,

    In the latest version, we decided to removed the user_id attribute from the shortcode, to fix a security bug. With that, only the current user can edit his or her profile. Are you trying to let admins edit user profile?

    in reply to: Only First Group Field Appears #14451
    Anh TranAnh Tran
    Keymaster

    Hi katev,

    From the screenshot, I guess you haven't activated the MB Group extension, have you? This is what I have on my localhost with your code:

    https://imgur.elightup.com/853VvHz.png

    in reply to: Show WordPress "featured image"? #14436
    Anh TranAnh Tran
    Keymaster

    Hi,

    If you use the MB Custom Post Type extension, make sure you select the "Featured Image" from the "Support" meta box on the right.

    If you don't use the extension, you need to use the add_post_type_support to add "thumbnail" support to the post type.

    in reply to: How to disable also the default "title"? #14435
    Anh TranAnh Tran
    Keymaster

    Hi, you can remove the title field and other default fields with the remove_post_type_support function.

    in reply to: Show Tabs like in WooCommerce Settings #14434
    Anh TranAnh Tran
    Keymaster

    Hi Reinhard,

    The top tabs are supported in the MB Settings Page extension. However, the sub-navigation is not.

Viewing 15 posts - 1,126 through 1,140 (of 3,702 total)