1 (edited by D9r 2005-01-12 22:50)

Topic: User Registration, Login script modeled after punbb 1.2

I want to put together a stripped down, stand-alone version of a user registration/login script.  I have a basic understanding of PHP so I thought I'd use PunBB v1.2 as a model to work from.  I'm planning to use it as a generic script for creating users that have access to secure webpages, to add a commenting feature later, etc.  Just the usual except I'd like it to be a stand-alone script separate from the forum.

That's what this is, right?
>>> "- A proper user group system with global and forum specific permission settings."

How much is punbb's script integrated into the forum?  Would it be simple enough to take the login part out of the forum and use it on it's own?  I'll look at the code and start studying it to see. 

Any tips, suggestions in the meantime would be appreciated.

2

Re: User Registration, Login script modeled after punbb 1.2

Thinking about it further (and not having studied the source code yet), it seems like what I want to do would be relatively easy:

* create a database table for 'users' - either manually with phpMyadmin or using the code from the install file
* then there's a registration page, login page, admin page, userlist page, etc
* there's some code in each page detecting whether I'm logged in or not - session id?  cookies?
* that determines what links display: 'login', 'logout', 'register', etc.
* and it determines whether the user is allowed into certain directories or webpages

It sounds simple in concept.  We'll see how it goes in theory.  wink

3

Re: User Registration, Login script modeled after punbb 1.2

I see your post with a great interest ... I would like to use
- system login on my whole site
- use parser.php on my whole site
... that's all ... but this "all" is GREAT ... and even if a lot of posts are talking about this issue, ANY OF THEM shows simply "HOW TO".

4 (edited by D9r 2005-01-26 13:36)

Re: User Registration, Login script modeled after punbb 1.2

I'm not sure what your point is.  Are you saying you want to do the same thing?  "a lot of posts are talking about this issue" - Really?  Which ones?  I went back 6 months and didn't find any.

It isn't as simple and easy as your post implies.

I don't want to just use punbb's login on my whole site, which is what the other posts refer to.  I want a stand-alone login system -- 'stand-alone' means it doesn't require installation of the forum; it works all by itself.  I haven't seen that discussion in the other posts; if I missed it I'd appreciate a link, but in the ones I've seen they don't talk about this at all.

I want to set up a login system that works all by itself without the installation of the forum.  For example, below are some introductory tutorials on user login.  I'm planning to start with them to learn more about what exactly is going on with the sessions, cookies, passwords, etc.  Then I'll try separating punbb's user login system from the forum code and see about making it a stand-alone system (or by then I may just write my own).

Managing Users with PHP Sessions and MySQL - http://www.sitepoint.com/article/users- … ions-mysql
Authenticate and Track Users with PHP - http://webmonkey.wired.com/webmonkey/00 … rogramming
PHP Sessions Introduction - http://www.phpfreaks.com/tutorials/41/0.php

5 (edited by D9r 2005-01-26 18:57)

Re: User Registration, Login script modeled after punbb 1.2

Related punBB Threads:
* Login Detection - http://punbb.org/forums/viewtopic.php?id=5539
* Cookie parameter Httponly, does it work outside MSIE? - http://punbb.org/forums/viewtopic.php?id=3306
* Sessions & Cookies - http://punbb.org/forums/viewtopic.php?id=2626
* PunBB Login Integration - http://punbb.org/forums/viewtopic.php?id=6041
* Multiple group membership - http://punbb.org/forums/viewtopic.php?id=5609
* Apply parser.php on a whole site ? - http://punbb.org/forums/viewtopic.php?id=4795
* Separate authentication module for sharing applications? - http://punbb.org/forums/viewtopic.php?id=4806
* Admin / Moderator confirm registration - http://punbb.org/forums/viewtopic.php?id=4071
* Coding .htaccess - http://punbb.org/forums/viewtopic.php?id=6008