magician11
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7 email verification] Submit not via adminPleasure Peter! Let me know how you get on!
Forum: Plugins
In reply to: [Contact Form 7 email verification] Submit not via adminHey Peter,
I did have an earlier version of the code that didn’t use that admin area.
Basically the URL was then
/?email-verification-key=
My hook would check for each page load. The code would then just check for the presence of that query string. You’ll see that code here.
So yes, it’s totally possible to not use the admin area. There was a bug in using the above code (double calls/emails being sent out).. so we switched to using the current method.
Forum: Plugins
In reply to: [Contact Form 7 email verification] Submit not via adminThanks for your positive feedback Peter!
I think you probably have a security thing happening blocking people from accessing that area.. because it does work for users not logged in.
This line in the code should allow for users not logged in to submit requests. I have tested that.
I have had users with the Woocommerce plugin (older version) have similar issues as there is a checkbox that blocks that area completely. Do you that or a similar security plugin?
Let me know how you go.
Forum: Plugins
In reply to: [Contact Form 7 email verification] Seems not work with attachmentHi there,
This plugin has been updated now to work with attachments/files.
Any questions, let me know!
Thanks for using this plugin!
Forum: Plugins
In reply to: [Contact Form 7 email verification] Plugin Not WorkingHey Paul,
Sorry you’ve been struggling with it. What’s going on?
Not sure why I haven’t heard from you. How did you attempt to contact me?
You can try this demo: https://dev.golightlyplus.com/testing/test-form/
Forum: Hacks
In reply to: confirm email addressHi bcworkz,
I’ve been busy with other things, but back on board to further this plugin. My todos.
I need some help with it.
I sent a post on the CF7 forum asking how they process attachments. That was two weeks ago and no response. I’m getting an email or two asking for attachment support, so I’d like to work it out. Are you interested in helping me out with it?
Also some people would like to be able to edit the verification message in the Dashboard. I haven’t done that before either, so a pointer on where to start would be great ??
Thanks!
Forum: Plugins
In reply to: [WP Shortcodes Plugin — Shortcodes Ultimate] columns not working as expectedturns out I needed to wrap it in
[su_row]
[/su_row]
Is there any good documentation on this? The shortcode generator doesn’t indicate anything about the [su_row] shortcode.
Forum: Hacks
In reply to: delayed redirectIt’s a a plugin that generates this code, so I have no header.php..
So just added it in the footer..
<script> setTimeout(function () { window.location.href = "https://testing.com/"; }, 8000); </script>
Thanks for your input.
Forum: Hacks
In reply to: confirm email addressHello @izamarvirafuentes
I’ve just updated it. I’m not sure how long WordPress takes before the update is available.. but yeah, I’ve fixed that issue you had.
Forum: Hacks
In reply to: delayed redirectOK got it. Thanks for your feedback.
Do you know how I would modify my call to get_header() so that I include that meta tag?
Or I guess just add JS at the bottom before the call to get_footer() ?
Forum: Hacks
In reply to: confirm email addressOk, getting there. Code updated to use a different hook and display a message. (code) (demo)
I’ve been looking at redirecting after a delay, not sure yet how best to set the delay. (option 1) (stackoverflow discussion) I’ve been getting errors on attempting to modify the header..
Any feedback on the code is appreciated. e.g. more efficient ways to do something.
Still todo: handle attachments.
Forum: Hacks
In reply to: confirm email addressThanks for pointing that out @izamarvirafuentes. Yes, we’re aware of that bug and working on that now.
Thank you @bcworkz for your detailed response.. pretty much pseudocode ?? I’ll start work on it now.
Forum: Hacks
In reply to: confirm email addressThank you bcworkz for your detailed response.
You have played a significant part in this plugin’s development! Would you like me to add you as a contributor? I would be more than happy to add you.
On double calls
—————
I am definitely not attached to ‘template_redirect’ and more than happy to cleaner/more efficient solutions. It sounds like your preferred idea is “sending the verification link to wp-admin/admin-post.php along with an ‘action’ parameter in addition to the verification key”. I am loosely familiar with AJAX but not so much WP AJAX. I think I know enough to add the flag idea you mentioned but might need help with your idea.Yes, I agree leaving the transient to expire itself later (currently set to 4 hours). Things happen, and a buffer of time will allow the form contents to be extracted later if need be.
Agree too that a message should be displayed once the link is clicked. Does your method above of creating a link to the wp-admin page support this too? I like the idea of “insert a message under the header of the main page.”
For attachments
—————For the uploads.. this is what part of the CF7 object looks like after a form submission
` [posted_data] => Array
(
[_wpcf7] => 35
[_wpcf7_version] => 3.6
[_wpcf7_locale] => en_US
[_wpcf7_unit_tag] => wpcf7-f35-p29-o1
[_wpnonce] => 2c06b3f0f3
[your-name] => BoB
[your-email] => [email protected]
[your-subject] => mouses
[your-message] => asdfasd
[_wpcf7_is_ajax_call] => 1
[attachment] => blacktocat.png
)[uploaded_files] => Array
(
[attachment] => /home2/xxx/public_html/development/testing/wp-content/uploads/wpcf7_uploads/blacktocat.png
)`So it looks like it gets uploaded to a CF7 folder.. but the file must get deleted almost immediately.. because I don’t see any files in that folder ever. Even immediately after a form submission. So yes, I could create a copy of that file from the code and store it somewhere. Is there a way to save a file as a transient type object? Otherwise copying it then clearing it later using this function I guess.
Thanks for your input and help!
Forum: Hacks
In reply to: confirm email addressHi guys,
It’s been a few months and people are starting to use it which is great.
2 bugs I’m wondering you could shed some light on..
1) There must be some update in Contact Form 7? As when the verification link gets clicked, this line is getting called twice. Which means that the original email gets sent out, and then an error is sent out saying the saved form data cannot be found (as that data is deleted once the email address is verified and the form contents is sent out).
2) Someone pointed out that attachments are not saved/sent through with this verification process. I think that’s because the uploaded file is deleted at some point from wp-content/uploads/wpcf7_uploads/ ?Tips or a direction to work on it would be great.
Forum: Plugins
In reply to: [Contact Form 7 email verification] Seems not work with attachmentHi guys,
Sorry for the slow reply. I wasn’t getting notified of support messages coming through.
The confirmation source is the server on which the WP install is on. There are no 3rd party interventions.
I can confirm attachments are not being saved. Thanks for pointing that out, I’ll look into it for you. And code that up.
best,
Andrew