Home arrow Forum
Frontpage Poll Issue [Fix]
  Welcome, Guest. Please login or register.
January 07, 2009, 01:20:46 PM
Home New Posts Search Calendar


Login with username, password and session length
Forum  |  MamboHacks.com  |  Mambo-SMF Forum 1.3.0 Support  |  Topic: Frontpage Poll Issue [Fix] « previous next »
Pages: [1] Go Down Print
Author Topic: Frontpage Poll Issue [Fix]  (Read 7672 times)
Jorge Nunes
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 2


View Profile
Frontpage Poll Issue [Fix]
« on: May 09, 2005, 06:54:27 AM »

Hi all!

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 » Logged
Heart
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 3


View Profile
Re: Problem with Mambo-SMF Forum v1.3.1
« Reply #1 on: May 28, 2005, 05:23:27 AM »

i have the same problem with SMF Forum v1.3.1.2

does anybody have a fix for this ...
Cheers
Heart
Logged
cowboy
Administrator
Hero Member
*****

Karma: +30/-0
Offline Offline

Posts: 663



View Profile WWW
Re: Problem with Mambo-SMF Forum v1.3.1
« Reply #2 on: May 28, 2005, 01:33:34 PM »

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.

* index.php (5.75 KB - downloaded 59 times.)
« Last Edit: May 31, 2005, 12:42:28 AM by cowboy » Logged
Heart
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 3


View Profile
Re: Problem with Mambo-SMF Forum v1.3.1
« Reply #3 on: May 30, 2005, 08:08:59 AM »

Thank you Cowboy...
that did the job...
seems all right now again...
Logged
Jorge Nunes
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 2


View Profile
Re: Problem with Mambo-SMF Forum v1.3.1
« Reply #4 on: May 30, 2005, 09:11:15 AM »

Hi!

Well, IŽll try this later.

Thanks for your posts.

Jorge
Logged
guilliam
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 15



View Profile WWW
Re: Frontpage Poll Issue [Fix]
« Reply #5 on: June 15, 2005, 11:13:21 AM »

@cowboy,

will this fix be also be used to solve this error:


have posted the same question in other threads but havent got any satisfactory reply.

hope to hear from you.

guilliam
Logged

----

smf ported on mamboserver:
www.kanocorp.com
cowboy
Administrator
Hero Member
*****

Karma: +30/-0
Offline Offline

Posts: 663



View Profile WWW
Re: Frontpage Poll Issue [Fix]
« Reply #6 on: June 17, 2005, 05:16:51 PM »

Guilliam,

I have any idea about your error. Because I never encountered this error on my testing.
Logged
guilliam
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 15



View Profile WWW
Re: Frontpage Poll Issue [Fix]
« Reply #7 on: June 17, 2005, 05:37:53 PM »

hi cowboy,

long time no hear.

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)

guilliam
Logged

----

smf ported on mamboserver:
www.kanocorp.com
Pages: [1] Go Up Print 
Forum  |  MamboHacks.com  |  Mambo-SMF Forum 1.3.0 Support  |  Topic: Frontpage Poll Issue [Fix] « previous next »
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Forum | Powered by SMF 1.0.5 & Mambo-SMF.
© 2001-2005, Lewis Media. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!
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