I have a Wordpress site and what I would like to do is for users to send their email address through a form and then my email client would send automatically message them with a link to a certain page. That page should not be accessable without that link. Is that possible to do and are there any ready plugins for this? I use a members plugin, but I want users only to give their email and not to fill out a whole form. Hope you understand. Thanks. w
The better route is to just use the built-in sign-up system. Is there some reason that didn't work for you?
Short of that, here is a quick and dirty approach...
To send mail to a user, just put the following PHP code in a page:
mail($_GET['user_email_address'], 'Access to site', 'To access the site please use ' . get_bloginfo('url') . '/foo.php?access=1');
The first parameter assumes the page that calls this has an textbox with the name 'user_email_address'. The subject and content of the mail follow; you can change them to reflect what you reallyw ant.
Then on the page you want to restrict access to, put the following code at the top of the file:
if (!isset($_GET['access']))
wp_redirect(get_option('siteurl') . '/wp-login.php?action=register');
This redirects anyone who doesn't have the get parameter access. This system has two main shortcomings:
you can easily copy/paste and share this URL and anyone will be able to bypass the e-mail
if you try to return to the page later you won't be able to get to it without the get parameter
If you provide more details on why the built-in registration system didn't work, I might be able to help better.
-Kevin
Related
I need help to display website visitor's name (on the popups) by just url?
For example this wordpress website:
https://ngantenstory.id/agus-henny/?u=Jonathan
You can change the name to anything and it will display the exact name on the welcome popups.
No need user database, I assume? No need for the user to register first, etc.
How to do this? Please help.
Thank you.
alert(new URLSearchParams(window.location.search).get("u"))
You can get current page's URL by using window.location,
get it's "search parameter" ("?u=Jonathan"),
and parse it by create an URLSearchParams object,
then get what you want by using get method,
finally use alert or other thing to show it to user.
alert is just for a simple example, don't use it in production, you may want set one of your HTML node's content and style instead.
I want to include a 'check my order status' link in the thank you email. Woocommerce comes with a order tracking form, but the user has to input their order id and email. Is there a way to show the tracking page without going through the input form?
I know my accounts has a view order link, but that would only work if the user is registered.
Yes, you can show an order tracking link in your email. It is a bit convoluted way and will take some time. It is much easier to let the user input his information. This makes things a lot less complicated. But if you absolutely need the order tracking in the email, then,
Put this information somewhere other than your secured site,
Make sure you update this information regularly,
Take the ID of
this information from your database and make a GET endpoint(hoping
its a web application), such that it takes in the ID number of the
information and displays it,
This GET link needs to be embedded
into a HTML form/template which you are sending as the email
If you want the whole implementation, you need to specify the tech stack you are using and other details.
If you want to show one tracking page which page customers/users can search their order status without login, then you can use the plugin Order Tracker for WooCommerce
If you use the plugin then the user can check his/her order status without login/hassle free, and also you don't need to add any extra tracking number, user can search using their order ID and phone number.
you can use it the very easy way, like making a page template or using the [cbwct-order-tracker] shortcode, anytime anywhere, and it’s also working with ajax.
You can watch the video for the plugin documentation on how to use that plugin here is the
Video Tutorial
Need some wordpress gurus insight here!
Basically, I've a plugin call Contact Form 7 to display a form on my site.
May I know how can I achieve these steps :-
User click submit, they will auto-receive a mail containing activation link.
User click the activation link, they will auto-receive another email to containing some text to ask them to upload a picture.
On my end, I'll only receive the lead only when the user completing the 2nd step.
Is it possible to do it with wordpress plugins? Or I need some external api or something?
You can get more information to set up the points for Autoresponders Form Submission
Go Through the link - https://www.formget.com/send-copy-of-message-to-form-submitter-use-auto-responder/
I'm completely new to the whole WordPress scene so I kind of don't know the "WordPress way" of doing the desired task:
Create a form where a user would fill in some details (such as name, surname, upload a video or post a youtube iframe link)
Submit it, once it's done - an admin must verify that everything has been filled out correctly and after that the video can be seen on the website.
Should I write a plugin of some sort that would do that or how does it happen?
Thank you.
The Gravity Forms plugin allows you to do exactly what you're looking to do. With it, you can set up a form that creates a post and sets it to be 'Pending Review' in WordPress. This tutorial contains everything you need to know about what you'll need to do.
If you want to create a Custom Post Type (ie. 'User Page') to better separate user submissions, you'll need to employ this special add-on (as mentioned in the tutorial above).
My client would like to give each customer a password and once entered, this should then redirect them to a certain page. I.e. password 'cake' would go to a page about cakes, password 'cats' would go to a page about cats. Sounds simple enough, is there a plugin that you guys are aware of that would do it? Or is it possible straight from WP itself?
Thanks
Take a look at Peter's Login Redirect. I haven't used it myself, but it has good ratings, has been updated recently, and it sounds like it can redirect based on the login criteria entered.
On a side note, I can't wait to see this website that features cats and cakes!
Good luck.
I'm sure there are better solutions out there. I accomplished what you are looking for by using conditional fields and html in Gravity forms. To mimic a password, I removed the Gravity forms submit button, and I basically created my own submit button in the html field to redirect the visitor to my desired url. Using conditional fields, I hide the button until the user enters the exact passphrase.
This method also allowed me to create hide/show multiple buttons matching different passcodes. We give private clients different passcodes to redirect them to different pages and content.
I've searched for hours for that solution! Here You go #ajguk: http://thecodecave.com/plugins/smart-passworded-pages/ or http://wordpress.org/plugins/smart-passworded-pages/
The plugin is called "Smart passwor pages" (for those experts that can't reed what the link says). It is as close as it gets 4 me. The plugin is old, but it works. Instalation is simple. You just need to put shortcode [smartpwpages] on a page which gives You a login field and every childpage under page with shortcode (if passworded protected throug WP) will work exactly like you asked. You will need to enter into login field only a password and it will redirect user to a page that this password protects... Just need to make your passwords unique for every childpage.
Cheers!