Amount: $
Last times doc updated : 6 january 2008 (Joomla 1.5 + no more gzip hack)
The purpose of this section is to describe the hacks required for the Joomla-Coppermine Bridge. Please read the main section first, because it might not be necessary to apply any of the hacks below. Inside your Coppermine's folder, edit the file bridgemgr.php . Look for the following lines: // 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', );
Then copy and paste just after the following lines: // status: bridge ok, manager ok $default_bridge_data['joomla'] = array( 'full_name' => 'Joomla! 1.0.x', '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', ); // status: bridge ok, manager ok $default_bridge_data['joomla15'] = array( 'full_name' => 'Joomla! 1.5', 'short_name' => 'joomla15', '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', );
Now in the include subfolder , edit the file functions.inc.php . Look for the line: Replace it with the following lines: //----------------------------------------------------------------------- global $BRIDGE; $integrateTest= false; $shortN=$BRIDGE['short_name']; if($shortN=='joomla' || $shortN=='joomla15') $integrateTest=file_exists("bridge/". $shortN .".integ.php"); if($integrateTest) include ("bridge/". $shortN .".integ.php"); //integrate.php will affect $template var else { $template = fread($fileres = fopen($template_file, 'r'), filesize($template_file)); fclose($fileres); } //----------------------------------------------------------------------