Forum Replies Created
-
AuthorPosts
-
September 7, 2023 at 6:35 PM in reply to: How to Make Star Rating selectable in the Custom Field Builder #43163
[email protected]
ParticipantI now try this in metabox view with twig syntax
{% set rating_settings = mb.rwmb_get_field_settings( 'apk_rating') %} {% set options = rating_settings['options'] %} <fieldset id='apk_rating'> {% for option in options %} <input type="radio"/> {{ option }} {% endfor %} </fieldset>Could you please help me with syntax on how to set it selected ?
Thank you
JoieSeptember 7, 2023 at 3:02 PM in reply to: How to Make Star Rating selectable in the Custom Field Builder #43162[email protected]
ParticipantHello Peter
Would you mind guiding me slowly
I still do not get it how can i display it in front end. This is the custom field I created.
On the custom post single I set a rating for example 4.5
Now what do i need to put in Metabox View so i can see all the radio buttons at front end ?
I tried metabox view
I can only see 4.5 in the front end instead of radio buttons
Thank you
joieSeptember 6, 2023 at 4:23 PM in reply to: ✅Display Custom Field Types in Meta-Box Builder (missing hook) #43154[email protected]
ParticipantAny Idea on this? Does that mean the custom field type we create can only be seen when we edit the custom post type ? But not from Builder GUI ?
Thank you
April 3, 2023 at 9:47 PM in reply to: ✅How to add captcha /guards against spam user registration / bot #41318[email protected]
ParticipantYes i see the icon, thank you very much !
April 3, 2023 at 8:19 PM in reply to: ✅How to add captcha /guards against spam user registration / bot #41312[email protected]
ParticipantHello Peter thank you for your links, I have created the captcha following your links.
Added the secret key and site key.Do i need to see additional fields like I am not a robot tick ?
Because there seem nothing changes at front end?Thank you
Joie[email protected]
ParticipantHello,
Is metabox compatible with WP All Import/Export to export custom user fields ?
April 14, 2022 at 6:18 PM in reply to: ✅How to set auto login after a successfull registration page ? #35636[email protected]
ParticipantThank you Andrea.
Will try that!.
Is that action hook also called when logged in user updating their profile ?
April 14, 2022 at 5:27 PM in reply to: ✅How to set auto login after a successfull registration page ? #35634[email protected]
ParticipantAndrea
What is awr_user_has_role function ?
April 12, 2022 at 10:03 PM in reply to: ℹ️Reopen a topic about Add-on of WP All Import/Export #35593[email protected]
ParticipantI am looking to export user custom field too using wp-all export
[email protected]
ParticipantHello Long,
i am using view to display the custom avatar
[mbv name="user-avatar"]the template is
{% for item in user.custom_avatar %} <img src="{{ item.large.url }}" width="{{ item.large.width }}" height="{{ item.large.height }}" alt="{{ item.large.alt }}" /> {% endfor %}Users uploads all sort of image dimensions.
If possible, could you please what should i use to format the display of the custom avatar to 512px x 512px ?Thank you
JoieApril 2, 2022 at 10:20 AM in reply to: ✅Hello how can i make my custom field appear on user registration #35418[email protected]
ParticipantHello please ignore the above request to use wp-login.
I think i will use [mb_user_profile_register] shortcode.Another question below,
I have custom user field group "user_kontak" consists of theses fields:
custom "user_kontak_whatsapp",
default "user_email",
custom "user_kontak_street"I tried : [mb_user_profile_register id="user_kontak"]
here what displayed, the email is displayed twice.
https://cln.sh/38xaA0out of that "user_kontak" field group I just want to use only user_kontak_whatsapp in addtion to the defaul user field registration form
So ideally my registration form will look like :
Email
Password
Confirm password
WhatsappDo i need to create a separate field group just to contain the one same field id "user_kontak_whatsapp" ?
Thank you
JoieApril 1, 2022 at 11:41 PM in reply to: ✅Hello how can i make my custom field appear on user registration #35413[email protected]
ParticipantWhat if i want the custom field phone to display in the default WordPress registration form at wp-login, Is that possible ?
Do i need to add php snippet for thatI mean without using a new registration page
Thank you
Joie[email protected]
ParticipantOK i managed to display it on my-account by putting this code into the MB View
{% for item in user.custom_avatar %} <img src="{{ item.large.url }}" width="{{ item.large.width }}" height="{{ item.large.height }}" alt="{{ item.large.alt }}"> {% endfor %}Now i want to replace the gravar with this custom avatar uploaded
Now i use the following snippet. Is this correct ?Is the value returned from image upload an array instead of single image?
/** metabox custom avatar to replace WordPress gravatar */ add_filter( 'get_avatar_url', 'mbua_get_avatar_url', 10, 3 ); function mbua_get_avatar_url( $url, $id_or_email, $args ) { if ( is_numeric( $id_or_email ) ) { $user_id = $id_or_email; } elseif ( is_string( $id_or_email ) && ( $user = get_user_by( 'email', $id_or_email ) ) ) { $user_id = $user->ID; } elseif ( is_object( $id_or_email ) && ! empty( $id_or_email->user_id ) ) { $user_id = (int) $id_or_email->user_id; } if ( empty( $user_id ) ) { return $url; } $array_avatar = rwmb_meta( 'custom_avatar', [ 'object_type' => 'user', array( 'limit' => 1 ) ], $user_id ); if ( ! $array_avatar ) { return $url; } $custom_avatar = reset( $array_avatar ); $url = $custom_avatar['full_url']; return $url; }[email protected]
ParticipantHello
I followed the https://metabox.io/create-custom-avatar/
Then i changed from type Single Image to Image UploadHere is the video
I cannot get it working to display on my-account page
I am looking at documentation you provide at
https://docs.metabox.io/fields/image-upload/#template-usageWhat code should i put in the View ?
I tried to put this code into view Template$images = rwmb_meta( 'info', array( 'limit' => 1 ) ); $image = reset( $images ); ?> <img src="<?php echo $image['url']; ?>">Thank you
JoieMarch 24, 2022 at 9:10 AM in reply to: ✅Hello how can i make my custom field appear on user registration #35248[email protected]
ParticipantHello Thank you for your help.
I added the shortcode,
But my field is not styled correctlyUrl is : https://boost.my.id
Could you please help so that :
1. The text 62 is not wrapped
2. The text below the whatsapp field is smallerThank you
Joie -
AuthorPosts