Jump to content

Topic on Extension talk:GetUserName/Archive 2

Loizbec (talkcontribs)

Hi, I have developed for my personal needs an extension that gets the user name, but that also allows to display different content for logged in users vs anonymous users.

When I updated from MW 1.35 to MW 1.42 (!!!), I relied pretty heavily on your work to correct my extension (which is not mature enough for sharing: as far as mw is concerned I don't code, I tweak ;) ). > https://gitlab.liris.cnrs.fr/mloiseau/mw_connected

I'm not sure it is of any interest to you, but if you want to merge our work, we can.

Tinss (talkcontribs)

Salut ! Merci pour le partage !

Adding a parser function to indicate if a user is connected (anonymous or not in fact) could be useful. I suppose having a different stylesheet could be handy as well.

I could add those features ? Or maybe you can do a pull request on github ?

It however does not make sense to have this extension tweak the sidebar.

Let me know.

Loizbec (talkcontribs)

The sidebar tweak was for my needs as I added links to many namespaces for logged-in users, and I don't want external users to see them as they won't have access to the rest.

But I agree, that this should not be default behavior. It could be a parameter in the LocalSettings.php.

I've got a lot of work these days, and I still need to work out a few things. When they work, I'll do a pull request :-)

Reply to "if connected…"