pzh20
Forum Replies Created
-
Forum: Plugins
In reply to: [Advanced Custom Fields: Extended] Loading User Profile FieldsKonrad,
On the form/fg you sent me you have a field called login, I cannot see how that is mapped to the username in the profile.
Also, when using the Render tab, is there any ‘logic’ e.g. if the field is empyt don’t render it?
Regards
Pete
- This reply was modified 5 months ago by pzh20.
Forum: Plugins
In reply to: [Advanced Custom Fields: Extended] Loading User Profile FieldsIt’s working, there was a snippet in the child theme that I hadn’t moved to me snippets plugin that I’d forgotten.
I’ve extended the User Profile with a couple of fields, one for a profile picture, another for their middle names. whiich I’ll need to add to the form, but I also want them to be able to change their password, and ACF offers a ‘confirm_password’ field, but this isn’t showing as it’s only for the form and validation. How do I add this please?Pete
Forum: Plugins
In reply to: [Advanced Custom Fields: Extended] Loading User Profile FieldsSorry, it was late and I shouldn’t have been trying this when tired.
I think I’ve found the problem. I’ll do some more checking and get back to you.
Regards
Pete
- This reply was modified 5 months ago by pzh20.
Forum: Plugins
In reply to: [Advanced Custom Fields: Extended] Loading User Profile Fieldswhen I try and import the form, I get a critical error! I’m able to import the field group, which is assigned o a page? My FG is assigned to all forms.
Here’s the error
PHP Fatal
| Jun 25, 2024, 22:12:57
Uncaught Error: Class name must be a valid object or a string
Stack trace:
#0 /wp-content/plugins/advanced-custom-fields-pro/includes/acf-internal-post-type-functions.php(25): acf_get_instance(Array)
#1 /wp-content/plugins/advanced-custom-fields-pro/includes/acf-internal-post-type-functions.php(74): acf_get_internal_post_type_instance(false)
#2 /wp-content/plugins/advanced-custom-fields-pro/includes/admin/tools/class-acf-admin-tool-import.php(187): acf_get_internal_post_type_post(NULL, false)
#3 /wp-content/plugins/advanced-custom-fields-pro/includes/admin/admin-tools.php(199): ACF_Admin_Tool_Import->submit()
#4 /wp-content/plugins/ad in /wp-content/plugins/advanced-custom-fields-pro/includes/acf-utility-functions.php on line 38
Plugin:?Advanced Custom Fields PRO
File:?/wp-content/plugins/advanced-custom-fields-pro/includes/acf-utility-functions.php
Line: 38
PHP Warning
| Jun 25, 2024, 22:12:57
Illegal offset type in isset or empty
Plugin:?Advanced Custom Fields PRO
File:?/wp-content/plugins/advanced-custom-fields-pro/includes/acf-utility-functions.php
Line: 37
PHP Notice
| Jun 25, 2024, 22:12:57
Undefined index: key
Plugin:?Advanced Custom Fields PRO
File:?/wp-content/plugins/advanced-custom-fields-pro/includes/admin/tools/class-acf-admin-tool-import.php
Line: 186I’m not sure why, but it’s too late now to think, I’ll have another look in the morning.
Cheers
Pete
Forum: Plugins
In reply to: [Advanced Custom Fields: Extended] Loading User Profile FieldsYes the site will allow users to update their profile. The fields seem to show on the form, but nothing is updated. see this short recording
Profile-?-The-Harrisons-Website-—-WordPress.mp4
Regards Pete
Forum: Plugins
In reply to: [Advanced Custom Fields: Extended] Loading User Profile FieldsI’ve created a FG and mapped the fields, but neither the profile or FG fields gets updated, I’m assuming there is some code I need to actually update the profile.
Here’s the form
Forum: Plugins
In reply to: [Advanced Custom Fields: Extended] Loading User Profile FieldsThanks, so I need a field group that matches the fields in the Profile ?
Thanks for the advice about the recent update, I haven’t noticed any problems so far,
Regards
Pete
Forum: Plugins
In reply to: [Advanced Custom Fields: Extended] Load Featured Image into formThank you Konrad, when I get back to work on Tuesday, I will buy a license, even though I think I can do all I need with thr free version, the support you’ve given deserves me buying a license.
So far, it all works. I’m going to need to read the documentation more to understand where I need code and wher the form works without any, otherwise, it works fine.
I now just have to update my javascript to deal with the differences with your code and Frontend Admin which I’ve been using. Following that, I expect I can use the form in a Bricks Builder version of the same site which I’m moving to.
Thanks again and have a great evening
Pete
Forum: Plugins
In reply to: [Advanced Custom Fields: Extended] Load Featured Image into formSorry, originately, I didn’t display the post_title, and wondered if that was why the post wasn’t being updated, and a new post with the name of the page instead. I added the post_tritle, but it’s still creating another post rather than updating it.
I do not want to update the ID i set the Post Action to Update (see Edit-Form-“Add-Photo-2”-?-The-Harrisons-Website-—-WordPress (2).png) and assumed the save should be the current post, being the post I’m updating. I’m obviously confused as to which post is being updated. I assumen that the post fields I’m changing would be the ‘current’ post, but the page is seen as the current post, doen’t seem logical to me. Anyway, I’ll change the Save Target to the {form:photo_id and give it a go.
I’ll let you know.
regards
Pete
Forum: Plugins
In reply to: [Advanced Custom Fields: Extended] Load Featured Image into formAs all the fields render correctly with or without the space, I didn’t think that was the problem. Anyway, even after removing the spaces, the form is still saving as the Page Title not the updated post. What should I bs coding for after the submit so as to make sure the post id it’s youating is correct and terminating it if it’s not?
Regards
Pete
Forum: Plugins
In reply to: [Advanced Custom Fields: Extended] Load Featured Image into formI fully understand how difficult it is doing support, I’ve been in IT for many years and it’s always difficult, and I thank you for your support.
So I have a create post form where the user adds details of an uploaded featured image. The post title is created from two of the fields on the form which you helped me with earlier.
This is submitted and redirects to another form taking it’s input from the postId from the URL.
It displays the image, does some background processing to detect the faces in the image, and offers the user the chance to add the details of each person in the image.
It didn’t display the post_title, and when I submitted this form, it was saved as the name of the page the form is on! This not only was wrong, but meant the page was no longer editable as I believe the database was corrupted. I had to recreat the page before I could move forward.
I’m assuming I need some acffe hook to ensure the postId etc are the same as the postId that was passed.
Obviously, the save should save as the correct id and title, not the page it is on. Here is the json file link as I cannot upload files to this post.
acfe-export-form-add-photo-2-2024-06-23.json
The CSS is as I already said, ACF’s issue, and in fact resolved now.
Can you just go through the flow I should follow when doing an update form, do I need code to handle the update? I’m very impressed with this plugin so far and believe that it will be my solution going forward.
Regards
Pete
Forum: Plugins
In reply to: [Advanced Custom Fields: Extended] Load Featured Image into formPlease ignore the post above about a bug, that was my fault. So my only issue at the moment is the setting of the post_title or ID
Regards
Pete
Forum: Plugins
In reply to: [Advanced Custom Fields: Extended] Load Featured Image into form**DELETED**
- This reply was modified 5 months ago by pzh20. Reason: MISTAKE
Forum: Plugins
In reply to: [Advanced Custom Fields: Extended] Load Featured Image into formSorry about this, but I think I’ve found a bug the the presentation of a repeater field. It seem there are different css setting for each of the TR elements in the table. Watch this short video
Forum: Plugins
In reply to: [Advanced Custom Fields: Extended] Load Featured Image into formKonrad, You’re probably fed up with me by now, but I’ve used the render to display only those fields I need, and it doesn’t include the Post_Title . When the form gets submitted, it is saving the post as the name of the page (and corrupting the page!).
Do I have to display the post title or is there a way to make sure the post title matches that of the form?
Thanks once more