|
Title: Gallery2 issue and fix Post by: pestilence on September 11, 2005, 07:39:12 PM Ok i spotted a problem with gallery2 component and smf installed.
Inside the mambohacks file there is a patch for the index.php which loads the $_REQUEST global to a $_TMP and then reassigns the contents of it back to $_REQUEST. I spotted that there is also the need to pass the $_GET and $_POST vars to a $_TMP holder and reassign them due to smf cleaning this vars and destroying the gallery2 URL's. This will not affect SMF in anyway. so add inside index.php: Code: $_TMP_GET = $_GET; and then reassign them:$_TMP_POST = $_POST; Code: $_GET = $_TMP_GET; $_POST = $_TMP_POST; Add this lines immediately after: Quote: //MAMBOHACKS.COM $_TMP = $_REQUEST; and reassign them after: Code: if (file_exists($smf_path."/SSI.php")) require_once ($smf_path."/SSI.php"); $_REQUEST = $_TMP; Title: Re: Gallery2 issue and fix Post by: caribmon on September 13, 2005, 12:27:22 PM can you extrapolate on this one a bit more?
It's not really clear where and how to put the code in index.php... for me at least. Thanks G. Title: Re: Gallery2 issue and fix Post by: rpmilius on September 13, 2005, 05:26:59 PM Quote from: caribmon on September 13, 2005, 12:27:22 PM can you extrapolate on this one a bit more? It's not really clear where and how to put the code in index.php... for me at least. This is how I interpretted the instructions. In mambo's index.php file, look for Quote: //MAMBOHACKS.COM $_TMP = $_REQUEST; if (file_exists($mosConfig_absolute_path."/administrator/components/com_smf/config.smf.php")) require_once ("administrator/components/com_smf/config.smf.php"); if (file_exists($smf_path."/SSI.php")) require_once ($smf_path."/SSI.php"); $_REQUEST = $_TMP; and change it to Quote: //MAMBOHACKS.COM $_TMP = $_REQUEST; $_TMP_GET = $_GET; $_TMP_POST = $_POST; if (file_exists($mosConfig_absolute_path."/administrator/components/com_smf/config.smf.php")) require_once ("administrator/components/com_smf/config.smf.php"); if (file_exists($smf_path."/SSI.php")) require_once ($smf_path."/SSI.php"); $_REQUEST = $_TMP; $_GET = $_TMP_GET; $_POST = $_TMP_POST; -Bob SMF 1.0.5 Mambo 4.5.2.3 Stable Mambo-SMF 1.3.1.3 Community Builder 1.0 RC1 Gallery 2.0 RC2 com_galler2 2.0.6 Title: Re: Gallery2 issue and fix Post by: pestilence on September 13, 2005, 07:22:55 PM Quote from: rpmilius on September 13, 2005, 05:26:59 PM This is how I interpretted the instructions. In mambo's index.php file, look for and change it to -Bob SMF 1.0.5 Mambo 4.5.2.3 Stable Mambo-SMF 1.3.1.3 Community Builder 1.0 RC1 Gallery 2.0 RC2 com_galler2 2.0.6 Correct :)
Forum | Powered by SMF 1.0.5 & Mambo-SMF.
© 2001-2005, Lewis Media. All Rights Reserved. |