Jump to content

Topic on Extension talk:SocialProfile

Problem displaying user profiles correctly

5
213.204.92.222 (talkcontribs)

I installed SocialProfile and set it up correctly, but it seems that any version I install is having the same problem: the user page isn't displaying properly, the section titles aren't vertically aligned with the lines and the columns are horizontally getting inside each other...

My wiki is naturalibanotica.org and you can access an example profile on naturalibanotica.org/User:Haig

If it's a problem on CSS, I don't know the codes of the sections to add custom CSS on my wiki. If anyone can help me definitively correct this problem I'd be grateful!

Note that I tried different versions of the extension, from master to stable.

Jack Phoenix (talkcontribs)

First things first, as per social tools/MediaWiki compatibility, master version (of SocialProfile and/or other social tools extensions) is the only stable, supported version when used on the latest long-term support (LTS) release of MediaWiki. :) The release branches should be treated as arbitrarily created and 100% unsupported versions. One day I hope this can change when there are more people working on social tools, but so far that day hasn't come. Support for any and all other versions is coincidental at best.

Your problem is quite literally a skin problem. You're using the newer version of the Vector skin ("Vector-2022", informally also "new Vector"). The Wikimedia Foundation's developers working on that skin decided to intentionally "no longer" support the visualClear CSS class. See also phab:T328235 and e.g. phab:T287962. The bad news is that they're unwilling to fix this properly in Vector. The good news are that 1) pretty much any other non-Vector skin supports visualClear out of the box: take your pick from Dusk to MonoBook to Timeless and beyond; and 2) fixing it locally should be literally as simple as adding this to your wiki's MediaWiki:Vector.css page (no need to use MediaWiki:Common.css because, again, most other skins already include the definition):

/* visualClear CSS class definition for [[mw:Extension:SocialProfile]] because Vector does not include the definition anymore; see e.g. https://phabricator.wikimedia.org/T328235 and https://phabricator.wikimedia.org/T287962 */
.visualClear { clear: both; }
213.204.92.222 (talkcontribs)

Thanks a lot, that was helpful!

Also another question, can the "Custom Information" section title be changed? If yes, how do I do it?

Jack Phoenix (talkcontribs)

Glad to have helped. :-)

Yes, that can be changed by editing MediaWiki:Custom-info-title. More info about customizing that (and other aspects of the social user profile) can be found at Help:Extension:SocialProfile/User profile and you may find other subpages of that "user manual" helpful as well, please see Help:Extension:SocialProfile for an overview and let me know if you have questions, suggestions or other feedback not covered by the help pages. (I'm sure at least some of those help pages incorrectly assume that the reader has knowledge probably only I have; I've been working on the social tools for long enough to become "blind" to such issues, alas, so any and all feedback you can provide is most valuable and will be helpful to other users of SocialProfile and related social tools!)

89.108.148.55 (talkcontribs)

It worked perfectly again, thanks for the help!

Yes indeed, some parts of the extension and help pages need a bit more detailed instructions...

Reply to "Problem displaying user profiles correctly"