Ok man, i just found your post on google(don't you just love google?!
lol) because i was trying to do the same thing as you and i was searching for answers. I found them myself several minutes later but i just thought i should help you, in case you still haven't figured it out (or anyone else for that matter).
So, the code for checking if a user is logged in or not is found in the sessions.php(phpbb/includes/sessions.php) file, there you will find several functions that deal with, well sessions. The function you'll want to look at is called "session_begin". Scroll to the end of that function and you'll see that there is an array called '$userdata', now you can check if a user is logged in or not just by checking the value of $userdata['session_logged_in']. There is also alot more useful information about the user in that array.
Another way would be to examin these 2 lines:
Code:
setcookie($cookiename . '_data', serialize($sessiondata), $current_time + 31536000, $cookiepath, $cookiedomain, $cookiesecure);
setcookie($cookiename . '_sid', $session_id, 0, $cookiepath, $cookiedomain, $cookiesecure);
You can check the cookies to see if user is logged in or not too i believe.
In addition, you might find it useful to look at the login.php to help you log the user into your forum.
Hope that helped, good luck!
Bookmarks