magician11
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7 email verification] Source of ConfirmationHi there,
Thanks for your email but I don’t really understand the question.
It sends the confirmation email using the standard wp_mail function. View the line of code here.
If you can give me an example maybe I can help you out?
Forum: Plugins
In reply to: [Floating Social Bar] Not hover and Not float in pages+1 on socialite loading without needing to hover over first.
Forum: Hacks
In reply to: confirm email addressYes, I agree it probably wouldn’t normally be used.
The reason it came up for me was I had a form on my “terms and conditions” page. I wanted to ensure that the user filling it out really was that user. So the email verification leans more towards legalese than regular communication.
I can see this plugin being further developed so that you can choose which form in CF7 gets verified and which does not.
Thanks for your 2 cents ??
Forum: Hacks
In reply to: confirm email addressActually your way seems cleaner. It didn’t take much code to handle reuse..
remove_action( 'wpcf7_before_send_mail', 'wpcf7ev_verify_email_address' ); $cf7 = $storedValue[0]; // get the saved CF7 object $cf7->skip_mail = false; // allow mail to be sent as per usual $cf7->mail(); // send mail using the CF7 core code
Thanks for your help. Now that I’ve got the core functionality down, I’ll get in touch with a user or two who wanted this functionality to test it out for me.
Forum: Hacks
In reply to: confirm email addressAwesome, thank you.
I have it working now. I had to also copy some of the code after that line too to make sure Mail2 is sent out if it is active. I’m open to ideas on re-using code, but it seems simpler to copy it in this case.
Forum: Hacks
In reply to: confirm email addressWhat I figured out to do was to add a hook.
add_action( ‘template_redirect’, ‘check_for_verifier’ );
The last core part of the task is to send out the retrieved transient CF7 object as per usual. There has to be a function in the original CF7 plugin code to process and send the CF7 object, but I’m not sure what it is. I’ve been posting about it, but zero responses. Do you have any suggestions on this?
I appreciate your input, thanks it’s been super helpful.
Forum: Hacks
In reply to: confirm email addressOk, thanks. I’ve updated the code to reflect that. A nice succinct solution too as it handles serialization of the CF7 object too.
For the link to be clicked, how would I do this? I can construct a URL no problem, but where should it point to and how does the plugin catch that a link was clicked?
Forum: Hacks
In reply to: confirm email addressHi again,
I’ve looked a bit more and haven’t found anything.
So I’m coding it up.
https://github.com/magician11/wpcf7-email-verification
If you have any feedback or tips that would be great. I’m essentially going to implement your logic from the your first post in this thread.
Forum: Hacks
In reply to: debugging PHP plugin codeI worked out a long-ish way around.. I could mail the debug statements to myself..
function wpcf7ev_debug( $message ) { wp_mail( '[email protected]', 'Debug code', print_r($message, true)); }
I’m sure there is a more efficient way?
Forum: Fixing WordPress
In reply to: how to structure a siteThanks Jason.
So I’ve created a category called “country” and created country posts and assigned them that category. Works so far.. by going to domain.com/country display all countries.
Now let’s say on the “New Zealand” post I want a link to “Food”. Would I make that a post? And assign a category? I created a “NZ” category with the parent being country.. created a Food post and assigned the “NZ” category to it.
Going back to domain.com/country displays the Food post now.. which is not the intention.
Also going to domain.com/country/NZ does not list the Food post. But displays a 404 error. I have to go to domain.com/country/NZ/food
I’m stuck at this point how best to use parent relationships, categories or tags for future subpages. ?
thanks.
Forum: Plugins
In reply to: [Contact Form 7] [Plugin: Contact Form 7] Double opt indoes anyone know where I would begin to extend contact form 7 with an add-on plugin that I’ll develop?
Forum: Hacks
In reply to: confirm email addressNow worries. At least I know if I code solution I’m not duplicating work already done.
I might well develop it and then share it out.
Forum: Hacks
In reply to: confirm email addressthanks bcworkz. Do you happen to know the plugin for Contact Form 7 that does this? I’ve been searching for one but haven’t found one yet.
Forum: Plugins
In reply to: [Contact Form 7] [Plugin: Contact Form 7] Double opt indouble opt-in… as in “click this link to confirm your email address”.
I’ve created a Terms and Conditions page.. with a form that gets filled out by a client to confirm they agree with it. Technically speaking anyone can fill in anyone’s details. So I want a “double opt in” solution.
Forum: Plugins
In reply to: [Contact Form 7] [Plugin: Contact Form 7] Double opt inNot off the top of my head.. but I’m researching this now. Has anyone else come up with a solution?
I’ll post back here if I find one ??