I'm sorry, Officer - But I have a Camaro - and it has only one speed: FAST!
Home arrow PhpBB/Joomla Comments
PhpBB/Joomla Comments PDF Print E-mail
Written by Chris   
Sunday, 17 April 2005
Article Index
PhpBB/Joomla Comments
Page 2
Page 3
Page 4
Page 5
Page 6

Edit /components/com_forum/common.php
 
At about line 91 
----FIND---- 
unset($input['input']);
unset($input['not_unset']);
while (list($var,) = @each($input)) {
if (!in_array($var, $not_unset))  { 
unset($$var); 

}
unset($input);

----REPLACE WITH---- 
      unset($input['input']);
   unset($input['not_unset']);

   while (list($var,) = @each($input))
   {
      if (!in_array($var, $not_unset))
      {
         if ($var=="option"){
         }    elseif ($var=="Itemid") {
         }    elseif ($var=="id") {
         }    elseif ($var=="task") {
         }
       else {unset($$var);} 
      }
   } 
   
   unset($input);



---- at approx. line 248 ---- 
---- FIND ---- 
$query = "SELECT id FROM " . $mosConfig_dbprefix . "menu WHERE link = 'index.php?option=com_forum'";
 $db->sql_query($query);
 $Itemid = $db->sql_fetchfield('id');

----REPLACE WITH----
//$query = "SELECT id FROM " . $mosConfig_dbprefix . "menu WHERE link = 'index.php?option=com_forum'";
//$db->sql_query($query);
//$Itemid = $db->sql_fetchfield('id');

Much thanks to Alkor from TIM_online for help here.

PhpBB here normally throws out the variables here, this will mess up your frontpage when you include common.php. This hack prevents PhpBB from dumping the values of option and Itemid. I've yet to see any major negative effects from these edits, as they are necessary to get this working, but I am not 100% sure that they won't affect something else. My site has been running fine for a few months, so I think we're okay.



Last Updated ( Wednesday, 23 August 2006 )