Forum

MamboHacks.com => Mambo-SMF Forum 1.3.0 Support => Topic started by: Sylvain Amyot on June 15, 2005, 02:19:32 PM



Title: Mambo-SMF Forum Login Module Problem
Post by: Sylvain Amyot on June 15, 2005, 02:19:32 PM
Hi,

Mambo's Login Session Lifetime is set to 1800, so after 30 mins it kills the session. My problem is that the login box does show you as logged out but the User Menu is still visible. I am using the Mambo-SMF Forum Login Module v.1.3.1a

I am also using 404SEF which could be what is causing the problem but I wanted to check here to see if this is a known problem.

server platform: linux
mambo version: 4.5.2.2
smf version: 1.0.4
php version: 4.3.10
webserver: apache


Thank you in advanced

Sylvain


Title: Re: Mambo-SMF Forum Login Module Problem
Post by: cowboy on June 17, 2005, 06:02:02 PM
this is not really a major issue, but we will address this on the next major release.


Title: Re: Mambo-SMF Forum Login Module Problem
Post by: Sylvain Amyot on June 22, 2005, 03:20:57 PM
Ok, Thanks!  :)

So I assume that this is a known issue with the Mambo-SMF Forum Login Module v.1.3.1a and not a problem with 404SEF, it this correct?

Looking forward to the next release....


Title: Re: Mambo-SMF Forum Login Module Problem
Post by: Sylvain Amyot on July 12, 2005, 11:26:12 AM
Any idea when the next release with this fix will be available?

Is there a temporary hack I could apply to fix this?

This is driving me nuts!


Title: Re: Mambo-SMF Forum Login Module Problem
Post by: Sylvain Amyot on August 29, 2005, 02:50:53 PM
anybody?!??


Title: Re: Mambo-SMF Forum Login Module Problem
Post by: cowboy on August 30, 2005, 12:09:06 PM
I guess no one working on a hack. Ill try to work on this when I'm done with the other priorities.


Title: Re: Mambo-SMF Forum Login Module Problem
Post by: Sylvain Amyot on August 30, 2005, 12:16:33 PM
That's great! Thank You cowboy


Title: Re: Mambo-SMF Forum Login Module Problem
Post by: pestilence on August 30, 2005, 03:43:20 PM
Ok i am not sure if this is gonna work (i will test it today) but i think this should do the trick:
inside mambo.php
Hack function: purge
Code:
function purge( $inc=1800 ) {
  $past = time() - $inc;
  //SMF Hack
  $query = "DELETE FROM smf_sessions"
  . "\nWHERE (last_update < $past)";
  $this->_db->setQuery($query);
  $this->_db->query();
  //End SMF Hack
  $query = "DELETE FROM $this->_tbl"
  . "\nWHERE (time < $past)";
  $this->_db->setQuery($query);
  return $this->_db->query();
}


Title: Re: Mambo-SMF Forum Login Module Problem
Post by: Sylvain Amyot on August 31, 2005, 10:10:16 AM
Hi,

Thank you for your hack.

Unfortunately the User Menu still appears even though I was logged out after my session expired.


Title: Re: Mambo-SMF Forum Login Module Problem
Post by: pestilence on August 31, 2005, 06:09:51 PM
Check my latest post, i think i found a solution up to now it seems its working ok...


Title: Re: Mambo-SMF Forum Login Module Problem
Post by: Sylvain Amyot on August 31, 2005, 06:59:32 PM
Hi Pestilence,

I tried your hack but the User Menu is still displayed once my session expires


Title: Re: Mambo-SMF Forum Login Module Problem
Post by: pestilence on September 01, 2005, 05:05:33 AM
Quote from: Sylvain Amyot on August 31, 2005, 06:59:32 PM
Hi Pestilence,

I tried your hack but the User Menu is still displayed once my session expires


Hmm wierd, mine works ok now, my actuall problem was that when mambo session expired the SMF session continued to exist, with the smf.php hack the user is correctly deleted once the mambo session expires and the SMF session is killed.


Title: Re: Mambo-SMF Forum Login Module Problem
Post by: pestilence on September 01, 2005, 05:25:09 AM
Quote from: Sylvain Amyot on June 15, 2005, 02:19:32 PM
Hi,

Mambo's Login Session Lifetime is set to 1800, so after 30 mins it kills the session. My problem is that the login box does show you as logged out but the User Menu is still visible. I am using the Mambo-SMF Forum Login Module v.1.3.1a

I am also using 404SEF which could be what is causing the problem but I wanted to check here to see if this is a known problem.

server platform: linux
mambo version: 4.5.2.2
smf version: 1.0.4
php version: 4.3.10
webserver: apache


Thank you in advanced

Sylvain


I forgot to ask...when you say user menu, which user menu do you mean? the SMF default forum menu? or something else?


Title: Re: Mambo-SMF Forum Login Module Problem
Post by: Sylvain Amyot on September 01, 2005, 09:47:08 AM
I'm talking about the Mambo User Menu that is displayed once you log in.

Is it possible that this is a Mambo bug and has nothing to do with the SMF bridge?


Title: Re: Mambo-SMF Forum Login Module Problem
Post by: pestilence on September 01, 2005, 01:19:14 PM
Quote from: Sylvain Amyot on September 01, 2005, 09:47:08 AM
I'm talking about the Mambo User Menu that is displayed once you log in.

Is it possible that this is a Mambo bug and has nothing to do with the SMF bridge?


Are you using a custom mambo template? or one that came with the mambo installation?
If you are using a custom template then there is a big chance that the loadmodule function is not called correctly.
Check your template index.php file and see if there is something wrong, compare it to a default installed template and see what is wrong.


Title: Re: Mambo-SMF Forum Login Module Problem
Post by: Sylvain Amyot on September 01, 2005, 01:47:00 PM
Hi,

I am using a custom template.
If you're talking about "mosLoadModules", they are all the same

Thank you for your help!


Forum | Powered by SMF 1.0.5 & Mambo-SMF.
© 2001-2005, Lewis Media. All Rights Reserved.