erm... for those who are using this mini mod for sub-domains, you have to add these two steps for it work:
find
PHP Code:
require_once('./global.php');
and add this before it
PHP Code:
define('CHDIR_PATH', '/usr/local/psa/home/vhosts/yourdomain.com/subdomains/forums/httpdocs'); //just an example, please change to your own forum's full path
chdir(CHDIR_PATH);
next you'll need to copy the login.php from your forums folder and paste it in your sub-domain directory. also find
PHP Code:
require_once('./global.php');
and add this before it
PHP Code:
define('CHDIR_PATH', '/usr/local/psa/home/vhosts/yourdomain.com/subdomains/forums/httpdocs'); //just an example, please change to your own forum's full path
chdir(CHDIR_PATH);
after that the mod will work for your sub-domain... just something i discovered while trying it for my own site... hope it helps!