I'm using Mambo 4.5.2.1, Apache 2.0.50, SMF 1.0.3, PHP 4.3.8 and Mambo-SMF Forum v1.3.1 and I have these problems:
When accessing the Mambo site without &Itemid=1 the POLLs just shows the title and the query of this module becomes:
Code:
SELECT p.id, p.title FROM mos_poll_menu AS pm, mos_polls AS p WHERE (pm.menuid='0' OR pm.menuid='0') AND p.id=pm.pollid AND p.published=1
So, the first pm.menuid='0' should be pm.menuid='1' . And this is because of the hack in index.php made by Mambohacks.com. The variable $Itemid should be '1' instead of '0' even when the URL parameter is null. The other problem is when I try to vote in the poll (when $Itemid=1) the system gives the message that 'cookies must be enabled'. This all works well when in index.php I comment the line:
Code:
if (file_exists($smf_path."/SSI.php")) require_once ($smf_path."/SSI.php");
But if I comment this line, I can't use the SMF modules in Mambo anymore.
Is this a known issue or its a new one?
Thanks for your help. And congratulations for your hard work.
Thank You.
Jorge
« Last Edit: May 31, 2005, 12:45:14 AM by cowboy »
i just noticed this one since I never used poll. Well, anyone who can figure this out, please just post your temp fix. Just been busy lately.
EDIT: Pls try this fix...
edit mambo's index.php and delete the ff code...
Code:
//MAMBOHACKS.COM global $sc, $context; 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"); $sc = &$context['session_id']; $_SESSION['USER_AGENT'] = $_SERVER['HTTP_USER_AGENT'];
insert the new code after the line...
Code:
require_once( 'configuration.php' );
new code...
Code:
//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;
Or... get the attached file and overwrite your mambo's index.php. This file is from Mambo 4.5.2.x. I'm not sure if this file is the same as the previous versions, but you can try.
Let me know if the issue is fixed. It works on my testing.
thanks for the reply.. wierd is that.. i ahvent made any changes.. and the "unable to load main template" error is not showing in the frontend anymore..
BUT error still shows in the SMF error reports(admin)
None of the text or images in this public website may be copied without the expressed written consent of the authors. Copyright 2005 by MamboHacks.com. Powered by Mambo. All rights reserved. TERMS OF USE