This seemed to work for me in 1.2.16.  I tested the forum login, logout and logins / logouts from my own pages and everything seemed to work fine.

change this on line 852 of includes/functions.php:

    // Prefix with o_base_url (unless it's there already)
    if (strpos($destination_url, $pun_config['o_base_url']) !== 0)
        $destination_url = $pun_config['o_base_url'].'/'.$destination_url;

to

    /* Prefix with o_base_url (unless it's there already)
    if (strpos($destination_url, $pun_config['o_base_url']) !== 0)
        $destination_url = $pun_config['o_base_url'].'/'.$destination_url;*/
lostcoin wrote:

ah, okay...so basically any files I use with the login script need to be within the forums directory.

Thanks Smartys,

Is this true?  Is there any way I can pass an additional variable to it and override that so I can return the user to the page they came from?

3

(2 replies, posted in PunBB 1.2 discussion)

Thanks Smartys!

Found the answer on this thread:

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

4

(2 replies, posted in PunBB 1.2 discussion)

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