Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => Mambo Bridge Support => Topic started by: mindfriction on January 31, 2005, 10:25:51 AM

Title: Unchecking 'Allow Guests to view forum' option causing login error
Post by: mindfriction on January 31, 2005, 10:25:51 AM
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)
*********
Title: Re: Unchecking 'Allow Guests to view forum' option causing login error
Post by: chadness on January 31, 2005, 10:40:35 AM
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.
Title: Re: Unchecking 'Allow Guests to view forum' option causing login error
Post by: profile on January 31, 2005, 04:57:49 PM
Can this be unchecked by editing a particuliar php file?
Title: Re: Unchecking 'Allow Guests to view forum' option causing login error
Post by: [Unknown] on January 31, 2005, 05:11:22 PM
Well, the easiest way would be to add the mambo_login action to the guest whitelist in smf.php...

-[Unknown]
Title: Re: Unchecking 'Allow Guests to view forum' option causing login error
Post by: profile on January 31, 2005, 07:05:59 PM
I changed from 0 to 1 in allow_guestAccess the board is now visible again without showing the login box.
Title: Re: Unchecking 'Allow Guests to view forum' option causing login error
Post by: mindfriction on January 31, 2005, 10:19:29 PM
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
Title: Re: Unchecking 'Allow Guests to view forum' option causing login error
Post by: mindfriction on January 31, 2005, 10:59:02 PM
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'))))
Title: Re: Unchecking 'Allow Guests to view forum' option causing login error
Post by: 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?
Title: Re: Unchecking 'Allow Guests to view forum' option causing login error
Post by: [Unknown] on February 01, 2005, 12:43:27 AM
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]
Title: Re: Unchecking 'Allow Guests to view forum' option causing login error
Post by: mindfriction on February 01, 2005, 01:44:01 AM
Hi Unknown
So what I did above was correct?  Seems to be working...
Title: Re: Unchecking 'Allow Guests to view forum' option causing login error
Post by: [Unknown] on February 01, 2005, 02:56:02 AM
Yep, that's exactly what I meant ;).

-[Unknown]
Title: Re: Unchecking 'Allow Guests to view forum' option causing login error
Post by: basis on July 20, 2005, 01:27:21 AM
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 (http://www.simplemachines.org/community/index.php?topic=20952.msg206330#msg206330), 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.
Title: Re: Unchecking 'Allow Guests to view forum' option causing login error
Post by: Orstio on July 20, 2005, 06:25:07 AM
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.
Title: Re: Unchecking 'Allow Guests to view forum' option causing login error
Post by: basis on July 20, 2005, 07:40:46 AM
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.