Unchecking 'Allow Guests to view forum' option causing login error

Started by mindfriction, January 31, 2005, 10:25:51 AM

Previous topic - Next topic

mindfriction

Hi guys,

Small error I just noticed. Im using version 2.2 (just upgraded) of the bridge, and I was just checking for errors and i've found disabling guests from viewing my message board has stopped my members from being able to log in successfully with the bridged login. It's strange since version 2.11 was working completely without a hitch. There's something Im overlooking isnt there? ::)

*********
RESOLVED (see below)
*********

chadness

No, in the readme it specifically states that disabling guests will cause Login and registration problems.  The reason is that it doesn't allow Mambo to see it as well.  I'm surprised it worked at all with 2.11 - I know it didn't for me.

profile


[Unknown]

Well, the easiest way would be to add the mambo_login action to the guest whitelist in smf.php...

-[Unknown]

profile

I changed from 0 to 1 in allow_guestAccess the board is now visible again without showing the login box.

mindfriction

Hi guys, appreciate your replies.

Chadness: Chadness i think you're right, it probably wasn't working in 2.11 i just didnt realise this problem as I was still playing with settings  :-X. Has this got something to do with the access rights?

Profile: What do you mean that
Quote0 to 1 in allow_guestAccess the board is now visible again without showing the login box.
Isn't this just the same as using the checkbox anyway? Dont think manually changing it will solve the problem..or did it?

[Uknown]: What is this 'whitelist' you are referring to Unknown? Are you referring to this bit

// If guest access is off, a guest can only do one of the very few following actions.
elseif (empty($modSettings['allow_guestAccess']) && $user_info['is_guest'] && (!isset($_REQUEST['action']) || !in_array($_REQUEST['action'], array('login', 'login2', 'register', 'register2', 'reminder', 'activate', 'help', '.xml'))))
{


..and i just add mambo_login after say 'login2' in the array on the right?

Thanks again :D

mindfriction

Wohoo!!!!!

[Unknown] thats fantastic!, I took a stab an added 'mambo_login' to the actions array line 119 components/smf.php and administrator/components/smf.php and unchecked 'Allow Guests.to view board' in the smf admin and now it works!


// If guest access is off, a guest can only do one of the very few following actions.
elseif (empty($modSettings['allow_guestAccess']) && $user_info['is_guest'] && (!isset($_REQUEST['action']) || !in_array($_REQUEST['action'], array('login', 'login2', 'mambo_login', 'register', 'register2', 'reminder', 'activate', 'help', '.xml'))))

profile

I'm sure it's the same setting and result.  I used phpmyadmin to change the setting I mentioned.  Can the experts confirm that it's the same?

[Unknown]

Quote from: profile on January 31, 2005, 11:15:50 PM
I'm sure it's the same setting and result.  I used phpmyadmin to change the setting I mentioned.  Can the experts confirm that it's the same?

Yes, sorry, that's the value.  I was just meaning, you can have your cake and eat it too - guest access off, login working.

-[Unknown]

mindfriction

Hi Unknown
So what I did above was correct?  Seems to be working...

[Unknown]


basis

Hi all,

I am terribly sorry to necro this thread up, but I am now experiencing the same problem as the Thread Starter.

Current Version of SMF: SMF v1.1 Beta 3.
Current Version of SMF-Mambo-bridge: MOS_SMF_BRIDGEv3.19a_SMF1.1b3.zip

I have read the replies and solutions posted in this thread and in the Mambo-SMF-Bridge FAQ, but I am having difficulty locating the exactly SMF.php file mentioned in both solutions.

Could I trouble someone to help me please? The forum was working, before curiosity got the better of me and now even I am locked out of it :( I am now regretting experimenting with the Server Features...

Thanks in advance and again sorry to bring this topic up.
SMF Version: Ver 2.0.8
Running Mods:
SimplePortal v2.3.5 (disabled)
AEVA 7.2 (enabled)
Stop Spammer 2.3.9 (disabled)
Bad Behaviour mod 1.5.17 (disabled)

Orstio

QuoteI have read the replies and solutions posted in this thread and in the Mambo-SMF-Bridge FAQ, but I am having difficulty locating the exactly SMF.php file mentioned in both solutions.

That was for older versions of the bridge.

You'll want to change that in SMF's index.php now.

basis

Quote from: Orstio on July 20, 2005, 06:25:07 AM
That was for older versions of the bridge.

You'll want to change that in SMF's index.php now.

Thanks Orstio, you are a lifesaver! I can access my board again.
SMF Version: Ver 2.0.8
Running Mods:
SimplePortal v2.3.5 (disabled)
AEVA 7.2 (enabled)
Stop Spammer 2.3.9 (disabled)
Bad Behaviour mod 1.5.17 (disabled)

Advertisement: