Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 37 total)
  • Author
    Posts
  • in reply to: Date format stopping views to work #31262
    toni birdtoni bird
    Participant

    Hi Long,

    Thanks for you help, I managed to get a work around for my problem... not sure why everytime I use date format I get the error... . Still getting the blank screen... however suits me now with my work around, will come back to this issue another time later... thanks

    in reply to: Date format stopping views to work #31195
    toni birdtoni bird
    Participant

    Hi Long, thanks for your reply...
    https://share.getcloudapp.com/rRuWpeRX

    many thanks

    in reply to: Hidden std values not saving in DB #31108
    toni birdtoni bird
    Participant

    Hi Long,
    Thanks for testing, not sure what was wrong, but it works now, many thanks

    in reply to: Post title instead of ID #31026
    toni birdtoni bird
    Participant

    Hi Long, got it sorted, many thanks

    in reply to: Replace array value in group #28170
    toni birdtoni bird
    Participant

    Hi Long, thank you so much, that is perfect

    regards.

    in reply to: Replace array value in group #28136
    toni birdtoni bird
    Participant

    Hi Long, many thanks for your reply.

    not sure what I am missing. my code is actually printing the below, any help why is not changing the "atividade_status" value , but is adding after the array ?

     add_action( 'init', function() {
    
    $group = get_post_meta( 15, 'group_atividade', true ); 
    $group['atividade_status'] = 'PARALISADA';
    rwmb_set_meta( 'group_atividade',15, $group);
    
    foreach ($group as $key=>$val) 
    {
        if ($key=="atividade_status" && $val=="Iniciada") 
        {
            $val="Paralisada";
        }
       
    }
    }, 99 );
    echo '<pre>';
    print_r( $group );
    echo '</pre>';

    and what is printing below.

    (
        [0] => Array
            (
                [setor_atividade_rdo] => teste 01
                [nome_atividade_rdo] => Limpeza de canteiro
                [atividade_status_rdo] => Iniciada
                [data_inicio_rdo] => 13/05/2021
                [data_fim_rdo] => 13/05/2021
                [data_previsao_rdo] => 14/05/2021
                [data_pause_rdo] => 12/05/2021
                [data_play_rdo] => 12/05/2021
                [desc_atividade_rdo] => tttt
            )
    
    [1] => Array
        (
            [setor_atividade_rdo] => rest
            [nome_atividade_rdo] => Forma de madeira
            [atividade_status_rdo] => Iniciada
            [data_inicio_rdo] => 13/05/2021
            [data_fim_rdo] => 13/05/2021
            [data_previsao_rdo] => 14/05/2021
            [data_pause_rdo] => 12/05/2021
            [data_play_rdo] => 12/05/2021
            [desc_atividade_rdo] => tttt
        )
    
    [atividade_status_rdo] => PARALISADA
    

    any help would be much appreciated. cheers

    in reply to: Replace array value in group #27863
    toni birdtoni bird
    Participant

    Hi Long , does it work for cloned groups as well?

    many thanks

    in reply to: Replace array value in group #27860
    toni birdtoni bird
    Participant

    Hi Long, thanks for your reply, will give it a try.

    regards

    in reply to: Frontend error on submit #27674
    toni birdtoni bird
    Participant

    Hi Long, thanks for your help, its working

    in reply to: Text formating #24833
    toni birdtoni bird
    Participant

    Hi Long,

    Group Itens are sharing the same cell, different rows, but same cell any ideas how to get it on the next cell ?

    <table class="tg">
    <thead>
      <tr>
        <th class="tg-zlqz"><h9>SETOR</h9></th>
        <th class="tg-zlqz"><h9>NOME ATIVIDADE</h9></th>
        <th class="tg-zlqz"><h9>DATA INÍCIO</h9></th>
        <th class="tg-zlqz"><h9>DATA FIM</h9></th>
        <th class="tg-zlqz"><h9>STATUS</h9></th>
        <th class="tg-zlqz"><h9>DESCRIÇÃO</h9></th>
      </tr>
    </thead>
        
    <tbody>
        
      <tr>
        <td class="tg-0pky"><h9>{% for clone in post.group_atividade %}  {{ clone.setor_atividade }} <br>
            {% endfor %}</h9></td>
        <td class="tg-0pky"><h9>{% for clone in post.group_atividade %}   {{ clone.nome_atividade }} <br>
            {% endfor %}</h9> </td>
        <td class="tg-0pky"><h9>{% for clone in post.group_atividade %}   {{ clone.data_inicio }} <br>
            {% endfor %}</h9></td>
        <td class="tg-0pky"><h9>{% for clone in post.group_atividade %}  {{ clone.data_fim }}<br>
            {% endfor %}</h9></td>
        <td class="tg-0pky"><h9>{% for clone in post.group_atividade %}  {{ clone.atividade_status }}<br>
             {% endfor %}</h9></td>
        <td class="tg-0pky"><h9>{% for clone in post.group_atividade %}  {{ clone.desc_atividade }}<br>
             {% endfor %}</h9></td>
      </tr>
         <tr>
        <td class="tg-0pky"></td>
        <td class="tg-0pky"></td>
        <td class="tg-0pky"></td>
        <td class="tg-0pky"></td>
        <td class="tg-0pky"></td>
        <td class="tg-0pky"></td>
      </tr>
        
    </tbody>
        
    </table>

    table

    in reply to: Text formating #24645
    toni birdtoni bird
    Participant

    Hi Long,
    Seems to be the best option,will go that route. Many thanks.

    cheers

    in reply to: Front end form can save on custom database? #23995
    toni birdtoni bird
    Participant

    Thanks Long, I will try on a fresh wordpress installation... tried already what you told me but didn't work. cheers

    in reply to: Front end form can save on custom database? #23874
    toni birdtoni bird
    Participant

    Hi Long, not sure why frontend submission is not working for me, code below, can you help please ? Doesn´t save on the database nor give confirmation message ....thanks

    shortcode [mb_frontend_form id='cliente' confirmation]

    metabox code

    <?php
    add_filter( 'rwmb_meta_boxes', 'your_prefix_register_meta_boxes' );
    
    function your_prefix_register_meta_boxes( $meta_boxes ) {
        $prefix = '';
    
        $meta_boxes[] = [
            'title'        => esc_html__( 'Cliente', 'text-domain' ),
            'id'           => 'cliente',
            'post_types'   => ['budget'],
            'context'      => 'normal',
            'priority'     => 'high',
            'autosave'     => true,
            'fields'       => [
                [
                    'id'    => $prefix . 'post_title',
                    'type'  => 'text',
                    'name'  => esc_html__( 'title', 'text-domain' ),
                    'class' => 'post_title',
                ],
                [
                    'id'    => $prefix . 'numero_proposta',
                    'type'  => 'text',
                    'name'  => "###N\xc3\x9aMERO PROPOSTA###",
                    'class' => 'numero_proposta',
                ],
                [
                    'id'    => $prefix . 'nome_cliente',
                    'type'  => 'text',
                    'name'  => esc_html__( 'NOME', 'text-domain' ),
                    'class' => 'nome_cliente',
                ],
            ],
            'table'        => 'bdg_tanksbr',
            'storage_type' => 'custom_table',
        ];
    
        return $meta_boxes;
    }

    post_type code

    function your_prefix_register_post_type() {
    
        $args = array (
            'label' => esc_html__( 'budgets', 'text-domain' ),
            'labels' => array(
                'menu_name' => esc_html__( 'budgets', 'text-domain' ),
                'name_admin_bar' => esc_html__( 'budget', 'text-domain' ),
                'add_new' => esc_html__( 'Add new', 'text-domain' ),
                'add_new_item' => esc_html__( 'Add new budget', 'text-domain' ),
                'new_item' => esc_html__( 'New budget', 'text-domain' ),
                'edit_item' => esc_html__( 'Edit budget', 'text-domain' ),
                'view_item' => esc_html__( 'View budget', 'text-domain' ),
                'update_item' => esc_html__( 'Update budget', 'text-domain' ),
                'all_items' => esc_html__( 'All budgets', 'text-domain' ),
                'search_items' => esc_html__( 'Search budgets', 'text-domain' ),
                'parent_item_colon' => esc_html__( 'Parent budget', 'text-domain' ),
                'not_found' => esc_html__( 'No budgets found', 'text-domain' ),
                'not_found_in_trash' => esc_html__( 'No budgets found in Trash', 'text-domain' ),
                'name' => esc_html__( 'budgets', 'text-domain' ),
                'singular_name' => esc_html__( 'budget', 'text-domain' ),
            ),
            'public' => true,
            'exclude_from_search' => false,
            'publicly_queryable' => true,
            'show_ui' => true,
            'show_in_nav_menus' => true,
            'show_in_admin_bar' => true,
            'show_in_rest' => true,
            'menu_position' => 2,
            'menu_icon' => 'dashicons-carrot',
            'capability_type' => 'page',
            'hierarchical' => true,
            'has_archive' => true,
            'query_var' => true,
            'can_export' => true,
            'rewrite_no_front' => false,
            'supports' => array(
                'revisions',
            ),
            'rewrite' => true,
        );
    
        register_post_type( 'budget', $args );
    }
    add_action( 'init', 'your_prefix_register_post_type' );
    in reply to: Email Notification for custom field update (change) #23721
    toni birdtoni bird
    Participant

    Hi Long, many thanks for your reply, will give it a try.

    cheers

    in reply to: Date picker conditions #22872
    toni birdtoni bird
    Participant

    Many thanks Long, saved my life. regards

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