1 (edited by AndersB 2009-03-05 22:26)

Topic: Validate user on main site using PunBB

Hello,

In the old 1.2 it was rather easy to validate a user outside the forum using the forums login-routines.
By checking the $pun_user-array it was an easy task to determine if the user was logged in or not.

I have searched and looked into the source but I cannot figure out how to do this in 1.3, does anyone know?

EDIT: Ahh, I understand it's related to the $forum_user-array.

echo "<pre>";
Print_r($forum_user);
echo "</pre>";

A quick question, is the id-variable unique to each user?

Re: Validate user on main site using PunBB

Yes, it is. For guests id = 1.