Make login form in wordpress - wordpress

I did a login form with this link http://wplift.com/how-to-create-a-custom-login-page-for-your-wordpress-theme
When I login it redirects to the page of the profile, but I wanted to stay on the same page with a user's session! Is it possible?
I have knowledge in PHP, but it is the first time I am using wordpress and I'm not used to.

There are a couple of good login redirect plugins that can be set to return users (based on role, for example) back to the referral page, or to a predetermined page, instead of to the dashboard.
Here's one I've used a few times, it's got some great options
http://wordpress.org/extend/plugins/peters-login-redirect/

Related

How to set a login page to see the website in wordpress?

i'm a beginner and I'm trying to set a login page on my website build in wordpress. Searching on google I don't find a solution for my issue. There are a lot of plugins that customize the login page in wp-admin to acces at the backend. What I'm trying to do is different. I'd like to put a login page at my website www.example.com (home page) and after the user has insered the credentials, he can see everything on the website. I don't know how to start. Every suggests are appreciate. Thank you in advance
If you're ok with using WP users table and auth systems you could put template content inside a conditional to check if users are logged in.
It isn't elegant but it would get you what you want.

Tracking login in user time on page on Wordpress

I have a simple informative website built in Wordpress. Users must login befor they can view pages ,I would like to track the time each user is viewing each page. Is there a simple plugin or JavaScript I can use to make a database of this information.
Would something like the following suffice?
https://en-gb.wordpress.org/plugins/aryo-activity-log/

Login to wordpress website using an existing google

I have a wordpress site.
currently I don't have any login/registration page/form in our website.
I need to create a login page where user can login using an existing google account. it should be the only way to login to our website. Please note, I'm not talking about login page to wordpress admin pages...I'm talking about login page for website.
Steps:
1) user goes to my website
2) click login link
3) navigates to goole sign in page
4) sign in
5) back to the website , the user is logged in
Is there any WP plugin for such case.
TIA, Anna
Bear in mind that the login page for the WP admin pages is the default login screen for users as WP understands them. I don't know what you expect logged-in users to be able to do or see, but you'd have to manage that access at a different level if you're not using the WP users.
If you just want commenting but with Google logins (and others) I'd recommend Disqus.
You need to sign up with Google for this: https://developers.google.com/accounts/ There are several options there like using Google+ log-in, etc.
I haven't seen a wordpress plug-in for it, and even if there is, you'd probably have to register with Google somewhere in the above link because they need to give your specific website permission.
If you want to cut to the chase, look at this link which talks about installing the google button using HTML https://developers.google.com/+/web/signin/add-button

Change WordPress Permalink for a plugin page

I am using Age Verification WordPress plugin. It asks the users to submit their age to enter the website. It does everything fine but the URL of the page is too long and do not look professional.
You can check the page here - sun.idwtestrun.info
When you open the webpage you will be taken to a page to verify your age. The URL of that page is too long. I want to make it shorter. Is there anybody who can help me?
You could create separate page for this porpuse. When user enters the site redirect user to this page and run the plugin. Url which user is to redirected on you could store in session. It is not necessary to store it as GET-parameter.
I hope it will be helpfull.

Redirect referring page after login and template the profile page in wordpress

I'm having a wordpress site(still offline) which is basically a news paper site. Users has to registered to comment. My problem is that when users login for commenting on any article, they are redirected to profile page (or to home page if i use some plugins)... but the standard should be redirecting them to the referring page as to comment on that was the reason they logged in. What is the solution for this?
And another thing is the user profile, my site actually don't need a user profile but need option to change the password. By default the profile is same like the wp dashboard, how do i template it? Is it author.php file that i have to work on?
Regarding the redirection. You can simply specify the wp login url, where it should take them after they login..
For example.
Login
Takes you to the current page, after the login.. So place a link after the comment.
for disabling profile page modify wp-admin/profile.php like
define('IS_PROFILE_PAGE', true);
Change to:
define('IS_PROFILE_PAGE', false);
I hope you can find the wp comments login link easily in template files.

Resources