pzh20
Forum Replies Created
-
Forum: Plugins
In reply to: [OoohBoi Steroids for Elementor] Elementor containers and BREAKING-BADI think Oooh Boi did answer this saying that the new container offers the same features as Breaking-Bad,
Forum: Plugins
In reply to: [Lumière Movies] GitHub download not in Plugin formatAh, I found the plugin on the wordpress repository, but it says php 8 is the minimum level needed! My hosting is 7.4.33
What about it requires php v8?
Forum: Plugins
In reply to: [Advanced Forms for ACF] Pre Sales questionPhil,
I’m using the Clarifai api which returns an array of the faces detected and their coords on the image. I was a bit of a bitch to set up, but works really well.
On my second page with the edit post form, it will contain a repeater field, that’s fully supported? Do you have any Javascript APIs yourself?
REgardds
PeteForum: Plugins
In reply to: [Advanced Custom Fields: Extended] Split adding new post over 2 pagesCan I remove fields from the post that I originally put in when I created the form, or do I have to create a new form?
Many thanks
Thanks Phil, I assumed as much.
Regards
PeteForum: Plugins
In reply to: [Advanced Custom Fields: Extended] Split adding new post over 2 pagesGreat Konrad, that sends the correct post ID.
On the Update Post form, can I show the featured image and other fields from the post but not allow them to be updated?
Many thanks
PeteForum: Plugins
In reply to: [Advanced Custom Fields: Extended] Split adding new post over 2 pagesSo this is what I have
add_filter('acfe/form/load/form=add-photo-2', 'my_form_update_settings', 10, 2); function my_form_update_settings($form, $post_id){ // verify the URL parameter exists if(!empty($_GET['photo_Id'])){ write_log('Photo post ID '.$_GET['photo_Id']); // get url parameter $my_photo_Id = (int) $_GET['photo_Id']; // get profile page author $profile_author_id = (int) get_post_field('post_author', $my_photo_Id); // get current logged user $current_user_id = (int) get_current_user_id(); // do additional security check if needed // remember the visitor can enter any kind of value in the URL parameter! // if the current user is the profile page author if($current_user_id === $profile_author_id){ // append custom data to the form for later use in UI $form['add-photo-2'] = $my_photo_Id; // show the form return $form; } } // otherwise hide the form return false; }
The write log writes out 200 which is the ID of the page the first form is on, and this is the URL that I get
https://the-harrisons.info/add-photo-2/?photo_Id=200 where 200 is the id of the page
I haven’t really modified your code, only renamed variables etc to make it more like mine.
Forum: Plugins
In reply to: [Advanced Custom Fields: Extended] Split adding new post over 2 pagesI’m really struggling with this. I know it’s being called, but instead of the post ID created in the first form, it is passing the ID of the page the first form is on.
I’m not sure that your example works in my case as I’m dealing with a post and not a profile entry.
Jus to reiterate, I have a form that creates a post called Photograph. The form includes a photograph and some fields. When it is saved, it redirects to the second form where I want to edit the post just saved in the first form. I’ve modified the example code above but as I say it’s passing the ID of the Page the create post form is on.
Forum: Plugins
In reply to: [Advanced Custom Fields: Extended] Create Post, images not able to uploadI am so sorry, something went so wrong, and instead of selecting an image field, it was a button field. Please close and delete this thread as I got something totally wrong!
Sorry to waste your time.
Forum: Plugins
In reply to: [Advanced Custom Fields: Extended] Create Post, images not able to uploadSo you are not using the Featured Image field type for the image?
Forum: Plugins
In reply to: [Advanced Custom Fields: Extended] Create Post, images not able to uploadSorry, the offending plugin caused a link to be shown but with a anchor link only. Your plugin does not show a link to select a image to upload when set to Featured Image.
Here is a screenshot of the form on the front end and back end
Forum: Plugins
In reply to: [Advanced Custom Fields: Extended] Create Post, images not able to uploadCan you show me the definition in the form, mine shows a link but it’s null (#).
Many thanks
Forum: Plugins
In reply to: [Advanced Custom Fields: Extended] Create Post, images not able to uploadThat’s terrible if someone is stealing your code. Anyway, if I can get this working I will be cancelling my subscription to his pluging and focusing on your’s.
However, what about the Featured Image issue, are you fixing this code, or is there a workaround that I can use a normal image as the Featured image?
Regards Pete
Forum: Plugins
In reply to: [Advanced Custom Fields: Extended] Create Post, images not able to uploadThere is no element created in the html
<div class="acf-field acf-field-featured-image acf-field-6344284223a0e is-required" data-name="featured_image" data-type="featured_image" data-key="field_6344284223a0e" data-required="1"> <div class="acf-label"> <label for="acf-field_6344284223a0e">Image <span class="acf-required">*</span></label></div> <div class="acf-input"> </div> </div>
Forum: Plugins
In reply to: [Advanced Custom Fields: Extended] Create Post, images not able to uploadKonrad,
OK, I found a conflict between Frontend ACF Admin and your plugin, the one I’m trying to replace !
I have to image links on the form, one for the featured image and another. The one that is set to Featured Image in the form config does not work, whilst the one just set to Image does. I see there have been some issues with using the Featured Image in the create post forms with other users, is this still a problem? Is there any workaround for it?
Many thanls
Pete