The Technical Bits

… and pieces

Wednesday, December 20, 2006

Integrating phpBB and gallery2

Nuked Gallery has an excellent integration module for interfacing phpBB, et al., with the gallery2 image software. It was fairly straightforward to do this, but I had some trouble getting the phpBB header link bar working correctly when the gallery was being displayed. This forum post describes the problem and the solution.

For reference, the solution is to comment out this code in the gallery2.php file:

/*
$template->assign_block_vars('switch_phpbb_base', array(
'PHPBB_BASE' => strtolower(substr($_SERVER['SERVER_PROTOCOL'], 0,
strpos($_SERVER['SERVER_PROTOCOL'], '/'))) . '://' . $_SERVER['HTTP_HOST'] .
substr($_SERVER['SCRIPT_NAME'], 0, strrpos($_SERVER['SCRIPT_NAME'], '/') + 1)) );
*/
posted by gurnaik at 3:17 pm  

Powered by WordPress