I'm using a customized script of Jobberbase 1.9 where we collect jobseekers in a database and display their profiles on the website. Part of their profile should only be available for clients. All the other info in their profile is public. Now I need a simple hack that checks if the visitor is logged in and then post this in a variable.
This is already available in the admin, so part of the code can be used from there. Also add/remove clients can already be done from admin, so we don't need code for this.
So basically what I do need is:
- simple client login page. Where you ask for a username and password.
- some code that checks if the visitor has logged in past that in a variable.
- in the head of the page is will show a login link, and when logged in, it should show a logout button.
- What is important is that when a visitor reached a jobseekers profile, and after that successfully logs in, it should redirect to the original profile again.
Please use the following url as reference:
[url removed, login to view]