Forum Replies Created
-
AuthorPosts
-
January 4, 2024 at 10:49 PM in reply to: Custom Register Form - Show/hide password on password fields? #44220
Codog
ParticipantHi peter,
thanks for the prompt response.That worked perfectly ๐
Final Question (Regarding password field)
===========================================Is there any way to 'Remove' the 'confirm password' field (user_pass2) but still maintain the strength password meter functionality in the primary password field (user_pass). It does not seem to function once the 'confirm password' is removed?
Thanks ๐
December 20, 2023 at 2:14 AM in reply to: โ image_upload - Custom Field - does not display uploaded image in mobile devices #44144Codog
ParticipantHey no worries Peter, I sussed out the problem in the end. Thanks for your time!
December 18, 2023 at 8:28 PM in reply to: โ image_upload - Custom Field - does not display uploaded image in mobile devices #44126Codog
ParticipantHi Peter,
thanks for your response. I can confirm that in a LIVE env the 'upload_image' custom field does show the post thumbnail as expected.This is clearly a local development env issue! And not plugin or theme related. I use NPM to compile my builds + BrowserSync to proxy my local Dev URL's so I can test locally on mobile devices (EG: localhost:3000/mysite).
I am wondering what might be causing this issue (locally) as it would be very useful for this feature to be working locally for development? Any thoughts?
How do you guys test locally on mobile?
Any info would be useful?
December 14, 2023 at 5:11 PM in reply to: โ Confirm email change via unique link - for existing user account #44091Codog
ParticipantThanks for getting back to me Peter. Ok, I will write my own function for that task.
Codog
ParticipantOk, thanks for clarifying Peter ๐
Codog
ParticipantI second this! It is really annoying to have an outstanding single cloned group with empty fields. Any updates on this? Clearly a wanted feature!
March 27, 2023 at 10:03 PM in reply to: โ Progress Stepper Style MB Frontend Submission Form #41232Codog
ParticipantHi Peter,
thanks for getting back to me. Yup! I thought this might be the case.Cheers
February 3, 2023 at 7:02 PM in reply to: โ Get CPT title for hidden custom form field in frontend subscription form #40390Codog
ParticipantHi Peter,
thanks for getting back to me and offering to help. Not to worry, I have now solved my issue.Cheers ๐
January 29, 2023 at 11:33 PM in reply to: โ Get CPT title for hidden custom form field in frontend subscription form #40347Codog
ParticipantHi Peter,
tried the above. It returns nothing? No relationship is generated? Just empty admin columns?Any ideas on what might be missing here?
Cheers ๐
January 29, 2023 at 11:25 PM in reply to: Get Metabox Group subfield values from serialized array #40346Codog
ParticipantHi Peter,
ok I'll give that a go.Cheers ๐
January 29, 2023 at 11:08 PM in reply to: โ Add 'fallback' image when there is no 'featured image' #40345Codog
ParticipantHi Peter,
thats really helpful thank you!Cheers ๐
Codog
ParticipantHi Anh Tran,
I am trying to solve a very similar problem (as above) using Metabox Group fields to populate select options. I noticed you had a code example for this in reply #12666 that links to https://ghostbin.com/paste/9p34h. Unfortunately, this example is no longer available there - do you have it somewhere else? Think it will help my problem.Cheers ๐
January 24, 2023 at 7:16 PM in reply to: โ Get CPT title for hidden custom form field in frontend subscription form #40298Codog
ParticipantHi peter,
well I have had a look at those articles relating to my issue and I'm not having any success?Here is my current code...
1) Register the relationship (Between 'Subscribers' and 'Projects'):
add_action( 'mb_relationships_init', 'subscriber_project_relationship' ); function subscriber_project_relationship() { MB_Relationships_API::register( [ 'id' => 'subscriber-to-project', 'reciprocal' => true, 'from' => [ 'object_type' => 'post', 'post_type' => 'project_subscriber', 'empty_message' => 'No connection here', 'admin_column' => true, ], 'to' => [ 'object_type' => 'post', 'post_type' => 'user_project', 'empty_message' => 'No connection here', 'admin_column' => true, ], ] ); }2) Get the project (Where the subscription form was submitted):
add_action( 'rwmb_frontend_after_process', function( $config, $post_id ) { MB_Relationships_API::add( get_queried_object_id(), $post_id, 'subscriber-to-project', $order_from = 1, $order_to = 1 ); }, 10, 2 );3) The expectation:
The "Connects To" admin column within the "Subscriber CPT form Entry" displays the "Project Title" (Where the subscriber form was submitted).
4) What I actually get:
a) Empty "Connects To" admin column. (Not even the 'empty_message' => 'No connection here', which I assume should display when there is no connection)?
b) Duplicate "Subscriber CPT form Entries"?What am I missing / not understanding?
Many Thanks in advance.
January 23, 2023 at 10:08 PM in reply to: โ Get CPT title for hidden custom form field in frontend subscription form #40292Codog
ParticipantThanks Peter!
I shall take a look at those and let you know how I get on.Thanks for your time ๐
January 21, 2023 at 11:32 PM in reply to: โ Get CPT title for hidden custom form field in frontend subscription form #40281Codog
ParticipantHi Peter,
thanks for getting back to me.To answer you questions....
Q1) So how the title of the project is processed?
A2)1 It is user generated by the "Projects" CPT in a custom field that uses 'post_title'. Output to the single projects page temple is via the_title().
Q2) Do you want to add this title as a custom field to the subscription post created after submitting the form? Or create a relationship between the current project post and the subscription post created?
A2) I am open to either method as long as it works "Dynamically"?
First Suggested Method:
Yes, but NOT add it "Manually" within the wp-admin. This is why (As previously explained) I thought using a hidden field within the 'Subscription form' to capture the 'Project Post Title' was an appropriate method?Second Suggested Method:
Yes, this could work. However, I have already tried using the 'MB Relationships extension' and it works well for "Manually" selecting the 'project' post title in the Metabox provided inside the 'Subscription CPT' form in the wp-admin. However, I want to do this "dynamically" - I.E I would like the relationship to be done automatically, because I need to know which 'Project Post' the end user subscribed from using the 'Subscription form' embedded within it.Would this be possible using MB_Relationships_API? If yes, could you give me a starting point example? It would be very useful.
Hope this is clear?
Any help appreciated ๐
-
AuthorPosts