Support Forum ยป User Profile

Forum Replies Created

Viewing 15 posts - 3,556 through 3,570 (of 3,702 total)
  • Author
    Posts
  • in reply to: Date field visualisation problem #1435
    Anh TranAnh Tran
    Keymaster

    Hi mendio,

    Yes, you can do that using the rwmb_{$field_id}_value and rwmb_{$field_id}_meta filters (see this documentation) to change the displayed value and saved value. Here is the sample code:

    add_filter( 'rwmb_ID_value', function( $value )
    {
        return date( 'Y-m-d', strtotime( $value ) );
    } );
    
    add_filter( 'rwmb_ID_meta', function( $value )
    {
        return date( 'd-m-Y', strtotime( $value ) );
    } );

    Don't forget to change ID to your field ID.

    in reply to: WSYIWYG seems to be broken when using groups - sorry to reopen #1434
    Anh TranAnh Tran
    Keymaster

    I received your email and replied. Please look at the email.

    in reply to: image_advanced field not hidden #1410
    Anh TranAnh Tran
    Keymaster

    Glad to hear it's fixed!

    Thanks for using Meta Box.

    in reply to: Radio buttons not rendering/their value isn't recorded #1409
    Anh TranAnh Tran
    Keymaster

    This is weird, please send me info (same as in the another ticket) so I can look into it for you.

    in reply to: WSYIWYG seems to be broken when using groups - sorry to reopen #1408
    Anh TranAnh Tran
    Keymaster

    Hi, please send me info in the Contact page. I will look at the issue for you ๐Ÿ™‚

    in reply to: image_advanced field not hidden #1403
    Anh TranAnh Tran
    Keymaster

    Hi bravebits,

    Does the answer in the topic https://support.metabox.io/topic/how-to-make-conditional-logic-for-image-upload/ solve your problem? My developer tested with similar code and said it was working.

    Regarding your code above, what is your $prefix? Is it wr?

    in reply to: Insert After Each Label in Radio Box Group #1394
    Anh TranAnh Tran
    Keymaster

    I think the best way to do that is via CSS. You can install a plugin like Add admin CSS. The CSS to make each label display in ins own line is quite simple:

    .rwmb-radio-wrapper .rwmb-input > label {
      display: block;
    }

    If you don't want to use a plugin, you can enqueue a CSS file on Add new/Edit page with the same snippet above.

    This way you also can add more margin to label for a better look.

    But if you have to use PHP to output line break after each label tag, please use rwmb_radio_html filter, like this:

    add_filter( 'rwmb_radio_html', function html( $output, $field, $meta )
    {
    	$html = array();
    	$tpl  = '<label><input type="radio" class="rwmb-radio" name="%s" value="%s"%s> %s</label>';
    
    	foreach ( $field['options'] as $value => $label )
    	{
    		$html[] = sprintf(
    			$tpl,
    			$field['field_name'],
    			$value,
    			checked( $value, $meta, false ),
    			$label
    		);
    	}
    
    	return implode( '<br>', $html );
    }, 10, 3 );
    in reply to: Looking to hire a developer #1384
    Anh TranAnh Tran
    Keymaster

    Hi Jon, let me ask my developer if he is interested in working freelance with you on that project and will reply you via email.

    Thanks.

    in reply to: Show content in frontend #1342
    Anh TranAnh Tran
    Keymaster

    Hi Maurice,

    If you want to display meta value in a template file like single.php, please open that file (not functions.php) and insert the following code at the place you want to show the value:

    echo rwmb_meta( 'FIELD_ID', 'type=FIELD_TYPE' );

    Don't forget to change FIELD_ID and FIELD_TYPE to your specific field ID and field type.

    in reply to: Restrict Meta Box editing to Admin #1341
    Anh TranAnh Tran
    Keymaster

    Hi Jan,

    You can try the Include Exclude extension. It supports restricting by user role or by user ID and many other conditions.

    in reply to: Videos #1340
    Anh TranAnh Tran
    Keymaster

    Hi, you can use the field type oembed, it allows you to add an URL from Youtube, Vimeo and other rich-content websites.

    in reply to: Display element based on 'post' #1308
    Anh TranAnh Tran
    Keymaster

    Hi carassius,

    Yes, you're right about using Conditional Logic extension. It's made exactly for this purpose. Please try it and let us know if it works for you.

    Thanks.

    in reply to: Updater doesn't work #1305
    Anh TranAnh Tran
    Keymaster

    Great that it works for you now. I will check the number of available updates and will update the Updater as soon as possible.

    Thanks for letting me know ๐Ÿ™‚

    in reply to: Updater doesn't work #1303
    Anh TranAnh Tran
    Keymaster

    Please try again, I uploaded the wrong file to server ๐Ÿ™

    in reply to: Updater doesn't work #1300
    Anh TranAnh Tran
    Keymaster

    Hi Piet,

    I've just updated the Updater extension. Now it works with Conditional Logic. Please update the Updater (using itself) and then you can see the new versions of Conditional Logic.

    Sorry for this inconvenience.

Viewing 15 posts - 3,556 through 3,570 (of 3,702 total)