Jetmatt777 Posted November 19, 2006 Share Posted November 19, 2006 Hey,Need a function that you can log in with, preferably php. Like when you Sign up it is automatic and saves your info to a mysql db, preferably a shared MySQL that can be used with a PHPbb forum so you don't have to Sign up for access and then sign up for forum access. Hope any of that made sense.-Matt Link to comment Share on other sites More sharing options...
jlhaslip Posted November 19, 2006 Share Posted November 19, 2006 Yes, actually, it did.Check over at the phpbbhacks.org site. I think they may have a Portal Modification available to unify the site and Forum log-in. Link to comment Share on other sites More sharing options...
Jetmatt777 Posted November 19, 2006 Author Share Posted November 19, 2006 hey, Glad it made sense. Umm...do you think maybe you could link me to that certain file. I've been looking but couldn't find it... Thanz for you help though, there are some other stuff I am interested in from that site also. Link to comment Share on other sites More sharing options...
Jetmatt777 Posted November 22, 2006 Author Share Posted November 22, 2006 Anyone? Link to comment Share on other sites More sharing options...
Jetmatt777 Posted November 22, 2006 Author Share Posted November 22, 2006 Here is exactly what I need/want. When you click the link to get to the user only section. you must be logged in to view the member only section, So, when you click to get to the user only section, it takes you to a login page. When you login you will be logged in on the whole user only section, which includes chat, forums, and other stuff. I need it shared Mysql database but don't know how to do that. I am on a short deadline to get this up. December 1st is when I have to get this section done. Please help me Link to comment Share on other sites More sharing options...
reportingsjr Posted November 22, 2006 Share Posted November 22, 2006 Just make a form on one page and the action for the form goes to the login page for the phpbb forum. So.. Just go to the forums login page, right click and hit view source (firefox, view->source in IE). Find the html code for the form and copy it. Then you just paste it on to your own custom login page! Link to comment Share on other sites More sharing options...
justsomeguy Posted November 22, 2006 Share Posted November 22, 2006 To check if a person is logged in, check in the session. You will want to do some researching on sessions, but you will want to store a username/password in the session and check it on every other page. If it is not there or is invalid, then you kick them back to the login page.http://www.php.net/manual/en/ref.session.phpIf you are integrating multiple products, like a third-party forum and other third-party software, you will need to look at the login routines for those pieces of software and make sure that the login that you make does the same thing. Link to comment Share on other sites More sharing options...
Jetmatt777 Posted November 25, 2006 Author Share Posted November 25, 2006 To check if a person is logged in, check in the session. You will want to do some researching on sessions, but you will want to store a username/password in the session and check it on every other page. If it is not there or is invalid, then you kick them back to the login page.http://www.php.net/manual/en/ref.session.phpIf you are integrating multiple products, like a third-party forum and other third-party software, you will need to look at the login routines for those pieces of software and make sure that the login that you make does the same thing.Do you think you could give me a code onto how to kick a user to the login page if they don't have a session, also could you help me make a seesion, im pretty mucha n00b with php. Link to comment Share on other sites More sharing options...
Tarte Posted November 25, 2006 Share Posted November 25, 2006 You should try and make the code, and then ask for modification and help in hereYou can learn Sessions on w3schools or simply www.php.net/Sessions Link to comment Share on other sites More sharing options...
justsomeguy Posted November 27, 2006 Share Posted November 27, 2006 To redirect, you can send a location header. You can check like this: if ($_SESSION['user_id'] == ""){ header("Location: login.php"); exit();} Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now