Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated README #2

Closed
wants to merge 1 commit into from
Closed

Updated README #2

wants to merge 1 commit into from

Conversation

jnoir
Copy link
Contributor

@jnoir jnoir commented Feb 5, 2012

Updated README to clarify installation instructions; added brief background, pre-requisites and FAQ

@Danoth
Copy link

Danoth commented Feb 11, 2012

Interesting development.
When using $smf_member_id = $user->getOption('smf_member_id'); , groups are pulled properly from the arrays etc and permissions assigned accordingly during login, but the autoauth doesnt work so your session fails immediately (I think) so you just see "Log in". Seems it sees the user, does everything to the point of the session, and then fails.

However
When using $smf_member_id = $user_settings['id_member'];, groups are not pulled from the arrays at all, but the session works. Maybe this info will help? I hope so. Im dying to get this working

@Danoth
Copy link

Danoth commented Feb 11, 2012

More stuff
I commented out the following

if (empty($smf_member_id) || $smf_member_id != $ID_MEMBER)
{
    // TODO: Log errors if the ids don't match?

    if ($user->isLoggedIn())
        $user->logout();    
    return true;
} 

And it now works :D so something to do with that section :)

@Danoth
Copy link

Danoth commented Feb 11, 2012

$smf_member_id is pulling 0.
EDIT: Nah I can't see where it pulls from. Gone as far as I can with my limited knowledge. Hopefully you guys will be able to find out whats going on :)

@jose-sa
Copy link

jose-sa commented Mar 23, 2012

I used this script on a test suit I have in my computer that replicates a live SMF and mediawiki and noticed a few things, one of them is that it would fail to login because of the code:

if (empty($smf_member_id))
        $smf_member_id = $user->getOption('smf_member_id');

would always return 0 even if the option is set to another value. This happens because MediaWiki always returns the Default (0 in this case) if the option is set to hidden.

$wgHiddenPrefs[] = 'smf_member_id';
$wgHiddenPrefs[] = 'smf_last_update';

There are two options, change getOption parameters in order to force the retrieval of data even if hidden or simply no longer mark the two Options as hidden. I did the latest.

@jdarwood007
Copy link
Member

Jnoir,

I dropped the two references about issues with the authentication. You are correct and I shouldn't of been using the $wgHiddenPrefs and this appears to of been causing those issues since it caused the id to always be 0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants