Topic on Extension talk:Create User Page

Jump to navigation Jump to search

existing user pages and existing user pages with subpages

8
Summary by Cindy.cicalese

Added $wgCreateUserPage_OnLogin

Revansx (talkcontribs)

Hi Cindy, the extension installed without issue, but it did not re-write/re-create my user page as I was thinking it would.

In my LocalSettings.php I have:

wfLoadExtension( 'CreateUserPage' );
$wgCreateUserPage_PageContent= "{{UserDetails|UserUsername=test1|UserDisplayName=test2|UserWorkEmail=test3|UserWorkOrgCode=test4}}";

I did a page refresh of my user page: no effect

I deleted my existing user page: no effect

My user page has subpages. Could that affect the way it works?

Here's my system:

Product Version
MediaWiki 1.28.2
PHP 5.6.31 (apache2handler)
MariaDB 5.5.56-MariaDB
ICU 50.1.2
Cindy.cicalese (talkcontribs)

I tested to be sure, and subpages do not prevent the user page from being created. Did you log out and log back in? The extension creates the users's user pages if it does not exist when the user logs in.

Cindy

Revansx (talkcontribs)

ok. hmm.. could it be because I am being auto-logged in with "Auth_remoteuser" extension that the "Create User Page" extension isn't being triggered?

Cindy.cicalese (talkcontribs)

Oh, yes, that's it. CreateUserPage relies upon the UserLoginComplete hook, which doesn't get invoked for Auth_remoteuser. I could add a flag that would optionally allow the check to be done on each page load.

Revansx (talkcontribs)

Please do!

Cindy.cicalese (talkcontribs)

I just released version 1.2 with a $wgCreateUserPage_OnLogin configuration variable. Set it to false to check for the user page on each page load rather than at login.

Revansx (talkcontribs)

Works great! You Rock, Cindy.. Thank you!!!

Cindy.cicalese (talkcontribs)

Excellent! You are very welcome!