other people have had problems with this hack and vBPortal. i have always referred them to
www.phpportals.com for help.
however...
if the chat php files are not in the forum directory then you should be able to use a chdir line at the top of the script to make it so the script is executed from the forum directory:
PHP Code:
chdir('/full/server/path/to/forum/directory');
by adding this line below the first
<?php line at the top it will allow you to run the file from any directory and the global.php include will always work. if this doesn't work then the problem must be with vBPortal... perhaps vBPortal does something differently that this hack doesn't like. i couldn't say. all i know is this hack works fine with vBulletin version 2.2.1 through 2.2.6 . it should work ok with any version of 2.0 but it hasn't been tested on those earlier versions.