Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 31 through 45 (of 59 total)
  • Author
    Posts
  • pluginovenpluginoven
    Participant

    Issue resolved
    https://github.com/wpmetabox/mb-custom-post-type/pull/22

    pluginovenpluginoven
    Participant

    Pull request just submitted to github:
    https://github.com/wpmetabox/meta-box/pull/1416

    This will add the ability to set clone_min attribute that is used as the minimum list value to toggle the remove-clone buttons. If no min_clone value is set, it defaults to 1 as it always has.

    pluginovenpluginoven
    Participant

    It's been two years, and every time this plugin is updated, I have to go in and manually re-add this filter. @Tran - would you please consider granting me access to the github repo for this plugin so I can fork and submit a proper pull request for this change? Thank you.

    in reply to: Dashboard Columns are not filterable #27532
    pluginovenpluginoven
    Participant

    I have extended this premium extension and added the missing functionality addressed in this issue thread. The modified files can be found on GitHub.
    Let me know if you have any questions of if I can be of any further assistance.

    pluginovenpluginoven
    Participant

    I have extended this premium extension and added the missing PO language file and DE translation. The files can be found on GitHub.

    Let me know if you have any questions of if I can be of any further assistance.

    in reply to: Extend Dashboard Flexibility #27530
    pluginovenpluginoven
    Participant

    I have extended this premium extension and added the missing functionality addressed in this issue thread. The modified files can be found on GitHub.
    Let me know if you have any questions of if I can be of any further assistance.

    pluginovenpluginoven
    Participant

    Thank you for your reply.

    Regarding the .po file:
    Creating the .po file is not the issue -- that it's not included in the /language folder by default is simply baffling.

    Regarding the .zip file - I think there is a miss understanding. Maybe this screenshot will help clear up what I mean by 'the entire plugin is included as a .zip file inside the root folder of the plugin'.

    in reply to: Extend Dashboard Flexibility #24843
    pluginovenpluginoven
    Participant

    Hmm... I see.

    You might also inform your dev team that they have included a .zip file of the entire plugin within the root folder of the plugin itself.

    OOPS?

    pluginovenpluginoven
    Participant

    It seems that the jquery-ui-autocomplete scripts are not being enqueued with the osm field.
    Adding the following to public static function admin_enqueue_scripts located at inc/fields/osm.php seems to have resolved the issue.

    wp_enqueue_style( 'rwmb-autocomplete', RWMB_CSS_URL . 'autocomplete.css', '', RWMB_VER );
    wp_enqueue_script( 'rwmb-autocomplete', RWMB_JS_URL . 'autocomplete.js', array( 'jquery-ui-autocomplete' ), RWMB_VER, true );
    in reply to: Open Street Map: available fields #14476
    pluginovenpluginoven
    Participant

    I am also interested in this solution. Will this be a new extension, or are you planning on expanding the Geolocation extension to include OSM support? Subscribing to this thread to stay in the loop.

    in reply to: Select Metaboxs by Attribute Flag #13349
    pluginovenpluginoven
    Participant

    According to the new documentation (thank you, for this) I should be able to simply create an has_filter argument for the $meta_boxes object like so:

    $meta_boxes[] = array(
                'id'         => 'gender_box',
                'title'      => __('Gender', 'text-domain'),
                'post_types' => 'some_post_type',
                'context'    => 'normal',
                'priority'   => 'high',
                'has_filter'  => true,
    
                'fields' => array( 
                    ...
                ),
    )

    and then grab only the meta_boxes that contain this new argument using the get_by method:

    $args = [
        'has_filter'   => true,
    ];
    $meta_box_objects = rwmb_get_registry( 'meta-box' )->get_by( $args );

    All fields in each returned meta_box will still need to be looped through in order to check for the specific attribute. But at least this way I do not need to loop all meta_boxs. However, there is no way to directly get only the fields that have a specific attribute set, correct?

    in reply to: Only auto populate neighborhood field if not empty #13310
    pluginovenpluginoven
    Participant

    Thank you. PR has been submitted.
    Issue may be marked as resolved.

    in reply to: Select Advance triggers .on('change') event twice #13304
    pluginovenpluginoven
    Participant

    Perfect, thank you.
    Jut for the record, the event listener was cached as follows:

    let select_cache = null
    $(document).on('change', '#my_field_id', function(event) {
        if (!select_cache) {
            setTimeout(() => {
                //do your thing
                console.log('phones ringing, dude.');
                //clear the cache
                select_cache = null
            }, 100)
        }
        select_cache = event
    }

    Issue can be marked as resolved.

    in reply to: Only auto populate neighborhood field if not empty #13277
    pluginovenpluginoven
    Participant

    Two weeks and crickets... The following changes would need to be made to include the
    'bind_if_empty' => false, //default true
    idea described above.

    File: js/mp-geo.js
    Line: 85

    var $this = $( this ),
        dataBinding = $this.data( 'binding' ),
        dataBindEmpty = $this.data( 'bind_if_empty' ),
        addressField = $this.data( 'address_field' ),
        fieldValue = that.getFieldData( dataBinding, place );

    File: inc/class-meta-box-geolocation.php
    Line: 97

    $binding = isset( $field['binding'] ) ? $field['binding'] : $this->guessBindingField( $field['id'] );
    $bind_if_empty = isset( $field['bind_if_empty'] ) ? $field['bind_if_empty'] : 1;
    $address_field = isset( $field['address_field'] ) ? $field['address_field'] : '';
    
    if ( $binding ) {
                $begin .= '<script type="html/template" class="rwmb-geo-binding" data-binding="' . esc_attr( $binding )
                . '" data-bind_if_empty="' . esc_attr( $bind_if_empty )
                . '" data-address_field="' . esc_attr( $address_field )
    ...

    Would be fantastically 2019 if there was a magical way to submit a pull request.

    in reply to: Only auto populate neighborhood field if not empty #13167
    pluginovenpluginoven
    Participant

    Update: I have added a working bind_if_empty. Please me know how best to submit a pull request.

Viewing 15 posts - 31 through 45 (of 59 total)