Using dolphin variables in 3rd party script

Can you please help?

I've installed the forum script phpBB into a /phpbb subfolder within my Dolphin directory. I'm trying to add the appropriate code such that anyone who creates or deletes a post will have points added or subtracted to their profile (from Modzzz's Points mod). I've found the right location within the phpBB script where to insert the codes.
The code I have (from Modzzz's mod) is as follows:

if ($mode == 'post')
{
require_once( '../../modules/boonex/forum/classes/OrcaPoints.php' );
$user = $post_data['username'];
$topicID = (int) $topic_id;

//[begin] points mods (modzzz.com)
$oPoint = new OrcaPoints();
$iId = $oPoint->getID($user);
$oPoint->assignOrcaPoints($iId, 'forum', 'post_add', 'add', $topicID);
//[end] points mods (modzzz.com)
}

The problem I have is that the required_once code is not sufficient. I'm getting function or class 'cannot found' errors. Somehow, I have to invoke or call upon all the appropriate variables/functions of Dolphin into the phpBB script such that assignOrcaPoints and function getID are understood.

What code do I need to add such that if I am within a 3rd party script in Dolphin subfolder that is outside of the 'Dolphin' environment, the 3rd party script will recognize functions/variable of Dolphin?

Thanks

Quote · 18 Jul 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.