Topic: PunBB Login Integration

How to integrate my own login system with punBB forum system?

I want to provide only one login form so the users will be logged into both the website and the forum when they log into the website at the homepage.
For example (this is for phpBB but I dont like it ): http://www.phpbb.com/kb/article.php?article_id=143

2

Re: PunBB Login Integration

This sounds similar to another thread started a few days ago: User Registration, Login script modeled after punbb 1.2

Re: PunBB Login Integration

In any files that you want to use the PunBB login, you need to add this to it (then it will put the user info into $pun_user)

define('PUN_ROOT', './');
require PUN_ROOT.'include/common.php';

Its that easy smile

Indocron
$theQuestion = (2*b) || !(2*b);

Re: PunBB Login Integration

No way!? Is it really THAT easy? I have struggled with functions and crap for several days now and still have problems with it! .... could someone confirm that it's this easy before a actually overwrite all my work and try this out?

Re: PunBB Login Integration

Actually, I wrote a piece on it for the docs: http://punbb.org/docs/dev.html#integration

"Programming is like sex: one mistake and you have to support it for the rest of your life."