Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 16 through 30 (of 32 total)
  • Author
    Posts
  • in reply to: Dynamic uploaded filename #34402
    EliodataEliodata
    Participant

    I can't edit, sorry for the code.

    in reply to: Dynamic uploaded filename #34401
    EliodataEliodata
    Participant

    Thank you for your support!

    Your example works for a text prefix, but I don't know how to add username as a prefix too. Here is my code:

    <div>
    
    function my_unique_filename_callback( $dir, $name, $ext ) {
        $name = 'emargements_' . $name;
        return $name . $ext;
    }
    
    add_filter( 'rwmb_meta_boxes', 'metabox_file_upload_formateurs_emargements' );
    
    function metabox_file_upload_formateurs_emargements( $meta_boxes ) {
        $prefix = '';
        $current_user = wp_get_current_user();
        $user_login = $current_user->user_login;
    
    $meta_boxes[] = [
        'title'      => __( 'Documents formateurs', 'your-text-domain' ),
        'id'         => 'documents-formateurs',
        'fields'     => [
            [
                'id'   => $prefix . 'file_docformateursemarge',
                'name' => __( 'Documents formateurs émargements', 'your-text-domain' ),
                'type' => 'file',
                'upload_dir' => ABSPATH . 'myfile/' . $user_login . '/emargements',
                'unique_filename_callback' => 'my_unique_filename_callback',
            ],
        ],
    ];
    
    return $meta_boxes;
    
    }
    
    </div>
    in reply to: file custom field, upload to dynamic directory #32806
    EliodataEliodata
    Participant

    Works great 🙂
    Thank you for the quick support!

    in reply to: Yoast SEO and Custom fields metabox #31713
    EliodataEliodata
    Participant

    Thank you for the kind help.
    Custom fields have been created with the builder and works great on my product pages.
    But I will find another solution for Yoast SEO.
    Best regards

    in reply to: Builder custom fields disapear after AIO update #27115
    EliodataEliodata
    Participant

    You can see here the settings before update aio:
    https://formationstrategique.fr/wp-content/uploads/Capture-décran-2021-04-07-à-14.08.31.png

    Then after update, with the new strange rule I have to delete:
    https://formationstrategique.fr/wp-content/uploads/Capture-décran-2021-04-10-à-14.03.18-1.png

    in reply to: Builder custom fields disapear after AIO update #27055
    EliodataEliodata
    Participant

    Hi,
    I got it. After the AIO update a new rule appears into the metabox builder Custom fields settings.
    Into "Advanced location rules" there is a new line "post" which should be used to select specific posts. Into the selected area there was the post types slugs pasted from the location field (client, prospect). That's very strange because no post have the same name as these cpt, so if I delete "clent" from the post rule then try to manually had it again it is not possible, because there is no such post...
    I deleted the rule and everything works great. I will try on the production website this night.
    Best regards

    in reply to: Builder custom fields disapear after AIO update #26993
    EliodataEliodata
    Participant

    Hi,
    You can read the json here:
    https://formationstrategique.fr/devbddfs/wp-content/uploads/untitled-field-group-2.json

    Thank you!

    in reply to: Output shortcode in wordpress editor #26890
    EliodataEliodata
    Participant

    Forget my question. E2PDF team helped me to render the shortcode.

    Regards

    in reply to: Display related cpt permalink #22999
    EliodataEliodata
    Participant

    OK. I guess is the same for my other post related to metabox relationship custom fields.
    FYI pods relationship feature adds a simple edit link near to the related items once selected. A similar solution would be nice.

    Best regards

    in reply to: WordPress Post custom field link #22994
    EliodataEliodata
    Participant

    Thank you for the very quick answer!
    Same problem as the other topic.
    I don't want to display the link on front end, but on the edit post / user relationship metabox.
    Maybe I didn't understood your answer, I am not a dev, sorry. And I would understood if this this question is beyond the scope of your support.

    in reply to: Display related cpt permalink #22993
    EliodataEliodata
    Participant

    Thank you for the very quick answer! I don't want to display the link on front end, but on the edit post / user relationship metabox.
    Maybe I didn't understood your answer, I am not a dev, sorry. And I would understood if this this question is beyond the scope of your support.

    in reply to: Display related cpt permalink #22989
    EliodataEliodata
    Participant

    Edit: I am using bi-directional relationship between users and custom post types!

    Thank you

    in reply to: URL and number fields more restrictive since update #20296
    EliodataEliodata
    Participant

    Thank you again and sorry for the waste of time.

    I know the format is not good. The imported links were pointing to local server folders before beeing pasted into this database.
    But that bad format have never been an issue until the last metabox plugin update.

    We will try something else.

    Regards

    in reply to: URL and number fields more restrictive since update #20292
    EliodataEliodata
    Participant

    Hi,

    Thank you for the fast support!
    The fields are not required.
    The content of these fields have been bulk imported (WP ALL IMPORT) 5 months ago. And we never faced this issue except since the last Metabox update.

    May be better with an image :

    https://bddfs.elledesignstudios.com/wp-content/uploads/2020/06/bad-content-fields.png

    Best regards

    in reply to: Display edit user form on front end #16416
    EliodataEliodata
    Participant

    Hi Anh,

    My question was not clear, sorry for my poor english. My user form is ok and works fine on admin, I'm just trying to display it and edit content front end.

    The page "https://mydomain.com/author/testuser1" should display results for "testuser" and the page "https://mydomain.com/author/testuser2" sould display results for "testuser2". But it only displays empty forms.

    How can I edit user forms front end please ? I mean choosing the profil I want and edit his content.

    Have a nice week !

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