Topic: Managing PunBB Sessions

I ran across this thread which (from what I am gathering) if I include common.php I will essentially harness the sessions from a punBB forum.  Well, when I do that I get this error:

The constant PUN_ROOT must be defined and point to a valid PunBB installation root directory.

So I tried adding this to my config.php file which did nothing.

define('PUN_ROOT', '[domaininfo]');

Two questions:
1.  Where should I define PUN_ROOT?
2.  How do I echo out a userid once I have the sessions running?

Thanks!
Dolbex

Re: Managing PunBB Sessions

1. Before including common.php. It should be a relative path to the forum files
2. the current user ID? $pun_user['id']

3 (edited by dolbex 2008-02-15 14:49)

Re: Managing PunBB Sessions

Thanks Smartys!

Found the answer on this thread:

http://punbb.org/forums/viewtopic.php?id=15581