Support Forum » User Profile

Forum Replies Created

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • in reply to: Is Metabox Server Down ? #35833
    CédricCédric
    Participant

    It is fixed now!

    in reply to: [BUG] MB CPT edit shows blank page #31793
    CédricCédric
    Participant

    [SOLVED]

    I did deactivate all plugins except MB & MB AIO.
    Then updated to 1.15.2 => Works fine
    Then activated all plugins one by one, checking each time MB => Works fine.

    I could not determine what was conflicting.

    Thanks for your time.

    in reply to: [BUG] MB CPT edit shows blank page #31787
    CédricCédric
    Participant

    Hi Long,

    WP_DEBUG is true and shows no errors.

    Here is a video of the problem :
    https://video.boostemaboite.fr/conversations/3b9c261a-0f2f-5748-86a2-a7668965edf7

    Here is the code for one of the CPTs, nothing special :

    <?php
    add_action( 'init', 'your_prefix_register_post_type' );
    function your_prefix_register_post_type() {
        $labels = [
            'name'                     => esc_html__( 'Activités', 'your-textdomain' ),
            'singular_name'            => esc_html__( 'Activité', 'your-textdomain' ),
            'add_new'                  => esc_html__( 'Ajouter', 'your-textdomain' ),
            'add_new_item'             => esc_html__( 'Ajouter une activité', 'your-textdomain' ),
            'edit_item'                => esc_html__( 'Modifier l'activité', 'your-textdomain' ),
            'new_item'                 => esc_html__( 'Nouvelle activité', 'your-textdomain' ),
            'view_item'                => esc_html__( 'Voir l'activité', 'your-textdomain' ),
            'view_items'               => esc_html__( 'Voir les activités', 'your-textdomain' ),
            'search_items'             => esc_html__( 'Rechercher les activités', 'your-textdomain' ),
            'not_found'                => esc_html__( 'Pas d'activité trouvée', 'your-textdomain' ),
            'not_found_in_trash'       => esc_html__( 'Pas d'activités dans la corbeille', 'your-textdomain' ),
            'parent_item_colon'        => esc_html__( 'Activité parent :', 'your-textdomain' ),
            'all_items'                => esc_html__( 'Toutes les activités', 'your-textdomain' ),
            'archives'                 => esc_html__( 'Archive des Activités', 'your-textdomain' ),
            'attributes'               => esc_html__( 'Attributs d'activité', 'your-textdomain' ),
            'insert_into_item'         => esc_html__( 'Ajouter à l'activité', 'your-textdomain' ),
            'uploaded_to_this_item'    => esc_html__( 'Chargé dans cette activité', 'your-textdomain' ),
            'featured_image'           => esc_html__( 'Image en vedette', 'your-textdomain' ),
            'set_featured_image'       => esc_html__( 'Définir l'image en vedette', 'your-textdomain' ),
            'remove_featured_image'    => esc_html__( 'Supprimer l'image en vedette', 'your-textdomain' ),
            'use_featured_image'       => esc_html__( 'Utiliser comme image en vedette', 'your-textdomain' ),
            'menu_name'                => esc_html__( 'Activités', 'your-textdomain' ),
            'filter_items_list'        => esc_html__( 'Filter activités list', 'your-textdomain' ),
            'filter_by_date'           => esc_html__( '', 'your-textdomain' ),
            'items_list_navigation'    => esc_html__( 'Activités list navigation', 'your-textdomain' ),
            'items_list'               => esc_html__( 'Activités list', 'your-textdomain' ),
            'item_published'           => esc_html__( 'Activité published', 'your-textdomain' ),
            'item_published_privately' => esc_html__( 'Activité published privately', 'your-textdomain' ),
            'item_reverted_to_draft'   => esc_html__( 'Activité reverted to draft', 'your-textdomain' ),
            'item_scheduled'           => esc_html__( 'Activité scheduled', 'your-textdomain' ),
            'item_updated'             => esc_html__( 'Activité updated', 'your-textdomain' ),
            'text_domain'              => esc_html__( 'your-textdomain', 'your-textdomain' ),
        ];
        $args = [
            'label'               => esc_html__( 'Activités', 'your-textdomain' ),
            'labels'              => $labels,
            'description'         => '',
            'public'              => true,
            'hierarchical'        => false,
            'exclude_from_search' => false,
            'publicly_queryable'  => true,
            'show_ui'             => true,
            'show_in_nav_menus'   => true,
            'show_in_admin_bar'   => true,
            'show_in_rest'        => true,
            'icon_type'           => dashicons,
            'icon'                => dashicons-palmtree,
            'query_var'           => true,
            'can_export'          => true,
            'delete_with_user'    => true,
            'has_archive'         => true,
            'rest_base'           => '',
            'show_in_menu'        => true,
            'menu_icon'           => '',
            'menu_position'       => 2,
            'capability_type'     => 'post',
            'supports'            => ['title', 'editor', 'thumbnail'],
            'taxonomies'          => ['type-d-activite'],
            'rewrite'             => [
                'with_front' => false,
            ],
        ];
    
        register_post_type( 'les-activites', $args );
    }
    in reply to: Custom (Translated) default labels #31528
    CédricCédric
    Participant

    Hi Long,

    Thanks for answering. I tried using Loco translate but it can't find any string to translate on the AIO plugin. Only core plugin has a .po file.

    It looks like the texts for defining labels is hard coded in the function in this file : wp-content/plugins/meta-box-aio/vendor/meta-box/mb-custom-post-type/assets/post-type.js

    But if I edit it, it will be overwritten with each MN AIO plugin update.

    CédricCédric
    Participant

    I guess this is what you are looking for :
    https://youtu.be/mjLsbRgQ2k4

    CédricCédric
    Participant

    Hi [email protected],

    Your code creates custom properties and make them available in Oxygen builder, but this doesn't register them as global colors.

    In the builder, you should got to your global colors, and register them manualy :
    primary : var(--primary-color)
    secondary : var(--secondary-color)
    ...

    Then, changing colors on your settings page should be reflected in the builder and on your site.

    CédricCédric
    Participant

    Hi,
    I did create the staging site and sent the credentials via the form.
    Thanks !

    CédricCédric
    Participant

    A few additional information :
    It is still possible to modify existing fields in this group through the builder
    It is not possible to add new fields to this group through the builder

    CédricCédric
    Participant

    Hi Long,

    Thanks for your answer. Sorry I didn't mention I went through debugging steps before posting. I confirm :
    - all plugins except Meta Box and Metabox AIO were deactivated and the problem is still there.
    - wp debug mode turned on shows no errors.
    - console shows no errors.

    Here is a screencast of my problem

    About the meta value, if I look at other (working properly) field groups, I can see something like :

    a:6:{s:5:"title";s:31:"Témoignages Clients - Détails";s:2:"id";s:25:"temoignages-clients-group";s:10:"post_types";a:1:{i:0;s:19:"temoignages-clients";}s:11:"text_domain";s:16:"your-text-domain";s:13:"function_name";s:25:"your_prefix_function_name";s:6:"fields

    Where I guess this s:10:"post_types"defines the related post types, no ?

    But in the dysfunctioning fields group, the s:10 s:11 s:16 s:13 s:25 elements are missing.

    In the wp_posts table, I can see the post type is meta_box for my fields group, but no reference to the post type associated to my fields group.

    CédricCédric
    Participant

    Looking at the entry in the database, here is what the meta_value looks like :

    a:4:{s:5:"title";s:20:"Activité - Détails";s:2:"id";s:16:"activite-details";s:4:"tabs";a:6:{s:13:"activite_mots";a:2:{s:5:"label";s:4:"Mots";s:4:"icon";s:0:"";}s:13:"activite-hero";a:2:{s:5:"label";s:5:"Héro";s:4:"icon";s:0:"";}s:12:"activite_cta";a:2:{s:5:"label";s:3:"CTA";s:4:"icon";s:0:"";}.....

    A you can see, the expected post_type value is missing.

Viewing 10 posts - 1 through 10 (of 10 total)