2 Issues with SMF/Bridge

Started by ddonzal, January 27, 2005, 06:54:50 PM

Previous topic - Next topic

ddonzal

So far so good on the integration for http://www.certifiedsecuritypro.com:

Mambo 4.5.1a installed OK.
SMF 1.0.1 installed OK.
Bridge 2.2 Installed OK.
Performed all steps in Combined Readme

I have 2 issues where I could use some help:

1. Logout doesn't work correctly. I can register, get the email, confirm from the link in the response email, and the user shows up in the Mambo users list. I can login on the main page of my site, but when I logout from either the menu component or the forum page, the login module and the forum react properly, but my 'Who's Online' component still says I'm on. If I wait long enough, they will eventually disappear. But before then it allows me to login again leading to it indicating that 2 reg users are online. I'm the only one registered on my site, so I know it's not another person.

Facts for #1:
  • Step #6e in the Readme: In /forum/themes/default/boardindex.template.php I did not find any occurences of ?action=logout. I did find ?action=login2 and made the proper change. I also found an instance of ?action=login while I was looking for ?action=login2. Should I change this one also?
  • In several places in step #6, it states to 'replace ?action=logout with mambo_logout' where I think it should be 'replace ?action=logout with ?action=mambo_logout'. Is this a good assumption?
  • Both local cookies and subdomain indep. cookies are off.

2. I have a variable length mambo template body section with plenty of room, but portions of the forum (not the whole thing) overlap into my right menu. It seems to work just fine in Firefox but not IE.

Thanks in advance,
ddonzal

[Unknown]

Have you tried turning off database-driven sessions?

-[Unknown]

Orstio

QuoteI can login on the main page of my site, but when I logout from either the menu component or the forum page, the login module and the forum react properly, but my 'Who's Online' component still says I'm on. If I wait long enough, they will eventually disappear.

The default Mambo Whosonline component is rather daft.  It will think you are online for exactly the time that you set in your Mambo config for session cookie length.  It doesn't matter if you login or logout, it shows you as online for that length of time.

QuoteI also found an instance of ?action=login while I was looking for ?action=login2. Should I change this one also?

Absolutely not.

QuoteIn several places in step #6, it states to 'replace ?action=logout with mambo_logout' where I think it should be 'replace ?action=logout with ?action=mambo_logout'. Is this a good assumption?

Yes, that is correct.

QuoteBoth local cookies and subdomain indep. cookies are off.

I think your cookie settings are OK.  There is definitely something wrong with the Whosonline component, however.

Quote2. I have a variable length mambo template body section with plenty of room, but portions of the forum (not the whole thing) overlap into my right menu. It seems to work just fine in Firefox but not IE.

IE doesn't seem to like <div>'s very much.  In your SMF theme, right after the <body> tag, you'll find a <div>.  Change the width of it to 95%, and everything will fit.

Kindred

Thanks for the correction on the readme post. I've fixed it now.

You might want to try using my smf_online module... 
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

ddonzal

Orstio,

Thanks for the response. A few follow up questions:

1. Should I worry about not finding an instance of ?action=logout in Boardindex.template.php?
2. You mention to change the width in the div tag. Forgive my ignorance, but for which file do I do this? I tried index.template.php in the default template folder, but it seemed to make no change.
3. Another user suggested trying to remove the database driven session option. It also seemed to make no difference. If this option can speed up the site, I would prefer keeping it on. Your thoughts?

Kindred,

Where would I find your smf_online module?

Thanks everyone,
ddonzal

Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

ddonzal

The mod works perfectly! I tried every combination of logging on from mambo_login on my front page and the login from the forum main page, logging out from each of them and a mixture of the 2. Now the user and guest counts are spot on perfect regardless of where or how I login & logout. Awesome.

Here's a new question. When I login from either place (site front page or forum front page), it always takes me back to my site homepage. That's OK if I use the mambo_login that's on my site homepage, but if I go to my forum homepage, then login, it takes me back to my site homepage. All works fine, but it adds an extra step to get back to the forum. What can I change to make the forum take you back to the forum main page after a successful login?

Thanks again,
ddonzal

ddonzal

Looks like I solved the overlap problem in my wrapped forum.

Instead of changing the width in the div tag, I left that at 100% and went down a little to the main table and changed it's width to 95%. Works like a charm.

Thanks for your help. It looks great.

Orstio

QuoteHere's a new question. When I login from either place (site front page or forum front page), it always takes me back to my site homepage. That's OK if I use the mambo_login that's on my site homepage, but if I go to my forum homepage, then login, it takes me back to my site homepage. All works fine, but it adds an extra step to get back to the forum. What can I change to make the forum take you back to the forum main page after a successful login?

In MOS_SMF.php, find this line:

    $_SESSION['login_url'] = $mosConfig_live_site;


and change it to:
     $_SESSION['login_url'] = $_SESSION['HTTP_REFERER'];

This hsould take them directly back to the page from which they logged in.

This is something I am going to have add as a parameter from Mambo in the future.

ddonzal

I tested it, and now no matter how I login, it always goes to the forum main page. Not a big deal. I prefer it that way as opposed to going to the site main page, but would still prefer the user staying where they were. Any additional help is greatly appreciated, since this is low on the priority list.

On a previous question, in Step #6e in the Readme: In /forum/themes/default/boardindex.template.php I did not find any occurences of ?action=logout. Should I worry about this? Should the Readme be changed?

Thanks,
ddonzal

Orstio

QuoteI tested it, and now no matter how I login, it always goes to the forum main page. Not a big deal. I prefer it that way as opposed to going to the site main page, but would still prefer the user staying where they were. Any additional help is greatly appreciated, since this is low on the priority list.

Something else I will have to take a closer look at.

QuoteOn a previous question, in Step #6e in the Readme: In /forum/themes/default/boardindex.template.php I did not find any occurences of ?action=logout. Should I worry about this? Should the Readme be changed?

It will depend on which theme you are using.  I do not think the default theme boardindex.template.php has any instances of ?action=logout, but other themes might.

Kindred

The readme post has been corrected....  I was definitely working with a non-standard theme when I searched for the instances. :)
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: