Forum Replies Created
-
AuthorPosts
-
September 17, 2022 at 12:45 AM in reply to: Uncaught Error: [tippy]: `position` is not a valid option #38337
Ghislain Malardier
ParticipantHi Long,
Thank you for requesting to update the Tippy library to the latest version. Hopefully, that will fix the conflict.That's said, if it doesn't, as stated in the post, from what I understand, Metabox is blocking the other plugin from loading the right library afterwards, so it seems to me that metabox is the issue and therefore should be updated to make sure it doesn't block other plugins to do there job. Isn't this part of your scope of support?
Thank you for your time.
Ghislain Malardier
ParticipantHi Long,
Sorry I never reply to this post!I'm actually trying agin to create the vCard with the little knowledge I got, but still not working. Right now I'm just trying to save the info in the vCard, but no file is created when saving posts. What am I missing?
Here is the code:
function otc_create_vcard( $post_id ) { /* * Get basic metabox values */ $post_type = get_post_type( $post_id ); $featured_image = wp_get_attachment_url(get_post_thumbnail_id($vpost->ID)); $otc_meta_name = rwmb_meta( 'ccard_main_contact', '', $post_id ); $otc_meta_business_name = rwmb_meta('ccard_business_name', '', $post_id ); $otc_meta_job_title = rwmb_meta('ccard_job_title', '', $post_id ); $otc_meta_business_email = rwmb_meta('ccard_business_email', '', $post_id ); $otc_meta_cell_phone = rwmb_meta( 'ccard_cellular_phone_number', '', $post_id ); $otc_meta_office_phone = rwmb_meta( 'ccard_business_phone_number', '', $post_id ); $otc_meta_website = rwmb_meta( 'ccard_website', '', $post_id ); $otc_meta_address_street = rwmb_meta('ccard_business_address_street', '', $post_id ); $otc_meta_address_city = rwmb_meta( 'ccard_business_address_city', '', $post_id ); $otc_meta_address_state = rwmb_meta( 'ccard_business_address_state', '', $post_id ); $otc_meta_address_zipcode = rwmb_meta( 'ccard_business_address_zip-code', '', $post_id ); $otc_meta_address_country = rwmb_meta( 'ccard_business_address_country', '', $post_id); $otc_page_url = get_permalink(); // only update the user custom post type on save //if ( "card" != $post_type ) return; $vpost = get_post($post->ID); $filename = strtolower(str_replace(" ","-",$vpost->post_title)).".vcf"; ('Content-type: text/x-vcard; charset=utf-8'); header("Content-Disposition: attachment; filename=".$filename); $data=null; $data.="BEGIN:VCARD\n"; $data.="VERSION:3.0\n"; $data.="FN:".$vpost->post_title."\n"; // get post title $data.="ORG: ".$otc_meta_business_name."\n"; $data.="TITLE: ".$otc_meta_job_title."\n"; $data.="EMAIL;TYPE=work: ".$otc_meta_business_email."\n"; $data.="TEL;type=CELL;type=VOICE;: ".$otc_meta_cell_phone."\n"; $data.="TEL;type=Office;type=VOICE;: ".$otc_meta_office_phone."\n"; $data.="ADR;Location;PREF: ".$otc_meta_address_street.";".$otc_meta_address_city.";".$otc_meta_address_state.";".$otc_meta_address_zipcode.";".$otc_meta_address_country."/n"; $data.="PHOTO;ENCODING=b;TYPE=JPEG:".$featured_image."/n"; $data.="END:VCARD"; $filePath = get_template_directory()."/vcard/".$filename; // you can specify path here where you want to store file. $file = fopen($filePath,"w"); fwrite($file,$data); fclose($file); } add_action( 'save_post', 'otc_create_vcard' );Ghislain Malardier
ParticipantHi,
Thank for the feedback. But I'm not sure to understand what you mean by "you don't know exactly the meta key that is saved into the database based".The "custom_sms_text" field is already created, but until now, I had to manually enter the information in it. So the idea is to automatically combine and save the information into that field.
The shortcode works great, but if I'm right, it means that the website is processing the information on every page load. Knowing that this SMS field pretty much never change once created for the user, I though having it save in the custom field would save some processing power.
Now, I have two sets of custom fields. The first one "contact-card-fields" is the custom fields visible to the users (front-end submission), and the "contact-card-fields-admin" only visible to administrator of the site.
The "custom_sms_text" is part of the admin fields, but the other fields (the one to combine) are part of the user fields.Could that be the reason why I isn't working on my side?
Thanks again for your help!
Ghislain Malardier
ParticipantQuick Update...
The form appear again but I had to make changes to the CSS to make it look normal.
But, I'm still having some issue with fields visibility of the testimonials section of the form. When selecting a testimonials style (video or written), the other fields should be visible. Right now they are always visible in the front end, but none visible i the backend.
Ghislain Malardier
ParticipantHi, I'm having the same issue:
I use the shortcode to add the form to the frontend in an Elementor page: https://onetapconnect.com/design-form/
I do not use Yoast SEO.
Some of the custom field visibility setting aren't working in the backend either.Please let me know how to fix this. Thanks.
Uncaught Error: Call to undefined function get_current_screen() in /var/web/site/public_html/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-yoast-seo/class-mb-yoast-seo.php:21 Stack trace: #0 /var/web/site/public_html/wp-includes/class-wp-hook.php(303): MB_Yoast_SEO->enqueue(Object(RW_Meta_Box)) #1 /var/web/site/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array) #2 /var/web/site/public_html/wp-includes/plugin.php(470): WP_Hook->do_action(Array) #3 /var/web/site/public_html/wp-content/plugins/meta-box/inc/meta-box.php(179): do_action('rwmb_enqueue_sc...', Object(RW_Meta_Box)) #4 /var/web/site/public_html/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-frontend-submission/src/Form.php(82): RW_Meta_Box->enqueue() #5 /var/web/site/public_html/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-frontend-submission/src/Shortcode.php(34): MBFS\Form->render() #6 /var/web/site/public_html/wp-includes/shortcodes.php(356): MBFS\Shortcode->shortcode(Array, '', 'mb_frontend_for...')Ghislain Malardier
ParticipantHi There, jumping into the conversation as I'm facing the same issue.
I've been looking for a solution to add the listing payment, but unfortunately, no solution is actually good! You always have to deal with unwanted or duplicated features, etc.
Being able to set up some payment options using MB Frontend would be great! No need for other subscription plugins anymore.
Now I get that it's not something Metabox wants to develop, but maybe working with a company to make sure their plugin does support Metabox would be a good way to start.
March 2, 2021 at 1:35 AM in reply to: ✅Metabox User Avatar not working with Elementor author widget #24681Ghislain Malardier
ParticipantNo sorry, I meant the link to the website I put in the post. As it is a client website, I usually don’t put links in forum post but wanted to make sure you could see the page...
March 1, 2021 at 12:03 AM in reply to: ✅Metabox User Avatar not working with Elementor author widget #24663Ghislain Malardier
ParticipantHi, Thanks for the quick reply.
I added the code and it works perfectly!
PS: Would it be possible to remove the link form the second post?
February 28, 2021 at 1:13 AM in reply to: ✅Metabox User Avatar not working with Elementor author widget #24657Ghislain Malardier
ParticipantSorry the images and links in the original post didn't worked! here is the website: (removed)
Ghislain Malardier
ParticipantHi, The issue still persist.
Please see the video: loom.com/share/a960023c62d14db9aac82a44573e567c
Thank you
Ghislain Malardier
ParticipantHi,
It is only working if I use the /%post_id%/ (which it is set to right now), Plain (https://site.com/?p=123), or Numeric (https://site.com/archives/123).It is not working with any other WordPress default permalink structure. I'd like to use /%postname%/.
-
AuthorPosts