another note (cant edit my post)
the bridge was installed after the modpack by including the codes into the existing files (no overwrite)
changes:
bridgemgr.php
// status: bridge ok, manager ok
$default_bridge_data['mambo'] = array(
'full_name' => 'Mambo server',
'short_name' => 'mambo',
'support_url' => 'http://www.mamboserver.com/',
'full_forum_url_default' => 'http://www.yoursite.com/board',
'full_forum_url_used' => 'mandatory,not_empty,no_trailing_slash',
'relative_path_to_config_file_default' => '../board/',
'relative_path_to_config_file_used' => 'lookfor,configuration.php',
'use_post_based_groups_default' => '0',
'use_post_based_groups_used' => 'radio,1,0',
);
//-----------------------------------------------------------------------------
//Mehdi Plugin hack
// status: bridge ok, manager ok
$default_bridge_data['joomla'] = array(
'full_name' => 'Joomla!',
'short_name' => 'joomla',
'support_url' => 'http://www.joomla.org/',
'full_forum_url_default' => 'http://localhost',
'full_forum_url_used' => 'mandatory,not_empty,no_trailing_slash',
'relative_path_to_config_file_default' => '../',
'relative_path_to_config_file_used' => 'lookfor,configuration.php',
'use_post_based_groups_default' => '0',
'use_post_based_groups_used' => 'radio,1,0',
);
//-----------------------------------------------------------------------------
functions.inc.php
//-----------------------------------------------------------------------------
//Mehdi Plugin hack
//deactivated original line
//$template = fread(fopen($template_file, 'r'), filesize($template_file));
//new
global $BRIDGE;
$integrateTest= strcasecmp($BRIDGE['short_name'],"joomla") == 0;
$integrateTest= $integrateTest && file_exists("bridge/joomla.integ.php");
$integrateTest= $integrateTest && isset($BRIDGE['relative_path_to_config_file']);
$integrateTest= $integrateTest && isset($BRIDGE['full_forum_url']);
if($integrateTest) include ("bridge/joomla.integ.php"); //integrate.php will affect $template var
else {
$template = fread($fileres = fopen($template_file, 'r'), filesize($template_file));
fclose($fileres);
}
//---------------------------------------------------------------------------