Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 77 total)
  • Author
    Posts
  • in reply to: Remove sanitize from render_template #24253
    Content PilotContent Pilot
    Participant

    Long, you can close this ticket. Another badly closed form tag was deleting the form that is rendered inside the block without further clues. Thanks

    in reply to: Remove sanitize from render_template #24249
    Content PilotContent Pilot
    Participant

    Sure,

    You can take the extension example code, even without fields. Just add a <form></form> in the template file.

    add_filter( 'rwmb_meta_boxes', function( $meta_boxes ) {
        $meta_boxes[] = [
            'title'           => 'Hero Content',
            'id'              => 'hero-content',
            'description'     => 'A custom hero content block',
            'type'            => 'block',
            'icon'            => 'awards',
            'category'        => 'layout',
            'context'         => 'side',
            'render_template' => get_template_directory() . '/blocks/hero/template.php',
        ];
        return $meta_boxes;
    } );

    template.php

    echo '<div><form><button>Label</button></form></div>';

    Using render_callback doesn't make a difference.

    in reply to: Select fields do not show values in MB Group #22846
    Content PilotContent Pilot
    Participant

    Thanks for this information Long. We had it working fine for a long time until this last update of that plugin. I switch the field type and everything works like in the past. Thank you for the help. Please close this ticket.

    in reply to: Select fields do not show values in MB Group #22787
    Content PilotContent Pilot
    Participant

    I'm trying to leave a comment and after a certain amount of characters I get "Error: Your reply cannot be edited at this time."

    Content PilotContent Pilot
    Participant

    Thanks for starting a feature request.

    in reply to: Remove chosen options #21434
    Content PilotContent Pilot
    Participant

    Hi,

    Do you have any updates on this? Or is it on your roadmap for sometime this year?

    Thank you

    in reply to: Disable password field from encrpyting value #21202
    Content PilotContent Pilot
    Participant

    I follow this tutorial and created my own field--License. It is a password input but saves as normal text in the admin.

    https://docs.metabox.io/custom-field-type/

    if ( class_exists( 'RWMB_Field' ) ) {
            /**
         * Metabox Field
         * 
         * Create new field to store access token in admin.
         *<br />
         * Obfuscates the view to the end user but saves as plain text in the database.
         * 
         * @since 5.1.0
         */
        class RWMB_License_Field extends RWMB_Field {
            /**
             * Render the field
             *
             * @param string $meta Value from input.
             * @param array $field Field data.
             * @return string
             * @since 5.1.0
             */
            public static function html( $meta, $field ) {
                return sprintf(
                    '<input type="password" name="%s" id="%s" value="%s" size="%s">',
                    $field['field_name'],
                    $field['id'],
            $meta,
            $field['size']
                );
            }
        }
    }
    
    in reply to: ℹ️Save option as single value instead of an array? #21200
    Content PilotContent Pilot
    Participant

    I would really appreciate if we could have the option to save as array or string. When we release new versions of our plugin, sometimes we run database updates which are MUCH easier when values live inside single cells, not arrays. I understand WordPress is trying to set a standard to not overload the database. But if you know what you are doing, then there should be an option to have it another way.

    Thanks for adding it to the roadmap.

    in reply to: Switch Composer to semantic versioning #20786
    Content PilotContent Pilot
    Participant

    Thanks, Ahn.

    That's the extra info that I needed to know about.

    Glad it's on your radar although it might not be tackled very soon.

    You can close this ticket.

    in reply to: Check Composer.json information #20758
    Content PilotContent Pilot
    Participant

    This setup works on the plugin I have built. The failure was coming from another plugin that loads that plugin. Chaining them.

    I had to add "minimum-stability": "dev" to my new composer.json and it works now.

    Please close.

    in reply to: Switch Composer to semantic versioning #20756
    Content PilotContent Pilot
    Participant

    I understand how to work with Composer. And we use it all of the time on our projects. That is why I am making a proposal, not asking for help or support. I think Metabox would benefit from switching to semantic versioning to be more in line with Composer's best practices. I urge you to reconsider or to at least have a conversation about what it would take.

    in reply to: Show taxonomy term label instead of term_id #20315
    Content PilotContent Pilot
    Participant

    Thanks Long. I already looked at the code and that is why I reached out. I know how it works. What I am asking if it can work differently for select select_advanced taxonomy and taxonomy_advanced fields. If there was a clause in the output of the value to do database lookup of the term label, that would be a major improvement from listing a term ID. An average user does not know what a term ID is.

    in reply to: Add Support for Relationships #20300
    Content PilotContent Pilot
    Participant

    Also changing just a relationship should trigger the creation of a revision if that's possible from the plugin.

    in reply to: Remove chosen options #20279
    Content PilotContent Pilot
    Participant

    That would be great, thank you.

    in reply to: Settings Page Style #19922
    Content PilotContent Pilot
    Participant

    @Comsi. bless you. it's always the cache, isn't it?

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