Topic on Extension talk:SocialProfile

delete profile sections

5
Lmdg2000 (talkcontribs)

Hi there, how to delete two sections from "social profile" ?

namely: I want to delete "other information" and "custom information"

meaning that I don't want users of my wiki to see such sections in their profile

Thank you !

Jack Phoenix (talkcontribs)

There isn't a built-in, clean way to do that currently. You could mess around with CSS and/or JS to try to achieve the desired effect, but...judging from a quick look at the HTML output, I guess that won't be very easy, because profile page section titles nor the sections have any unique classes or IDs, so you can't blindly hide all elements which have e.g. the class user-section-heading or profile-info-container. :-(

Just out of general curiosity, why do you desire to do this? Most sites repurpose these fields for site-specific information, e.g. Brickipedia, the LEGO wiki has repurposed the "Custom information" section as "Favorites", allowing registered users to display stuff like their favorite LEGO theme or minifigure on their profiles.

Lmdg2000 (talkcontribs)

Thank you Jack, I would be more than happy to have profiles looking like the Brickipedia ones... Any suggestion on how to get there? We probably need a WikiMedia developer willing to contribute to a non-profit project..Let me know if you have any idea on how to find him/her..Thank you !

Jack Phoenix (talkcontribs)

As a quick terminological clarification: the software is called MediaWiki, whereas the Wikimedia Foundation, Inc. (no capital M there :-) is the US-based non-profit hosting Wikipedia and several other wiki sites using the MediaWiki engine. The page Differences between Wikipedia, Wikimedia, MediaWiki, and wiki should hopefully provide a more useful, in-depth look into all the similar-looking yet distinct words that start with or contain "wiki" in them.

As for customizing the profile sections' names, it's deceptively simple, even. Just edit the pages called MediaWiki:Custom-info-field1, MediaWiki:Custom-info-field2, MediaWiki:Custom-info-field3 and MediaWiki:Custom-info-field4. (To do this, you need to have the editinterface user right; by default the "interface editors" group should have this right...but also by default nobody is in that brand new group, so you may need to add your user account to that group via Special:UserRights.) For example, on Brickipedia MediaWiki:Custom-info-field1 has been set to "Favorite Set".

More in-depth customization can be done; for example, Halopedia, the Halo wiki has a social "Accounts" section for Xbox gamer ID, Twitter account, etc. In the past, the Xbox gamer ID was implemented as described on Extension:SocialProfile/Developer information but Halopedia's current implementation is neither FOSS nor supported out-of-the-box by SocialProfile. (Just to clarify, while I have an account on Halopedia and I use the site often as an example, I haven't been actively involved with its development in ages and I'm generally speaking extremely critical of tivoization. That said, perhaps the current site tech admin is willing to share their modifications if you ask him nicely. Personally I think it would've made a lot more sense for everyone to have Halopedia implement the accounts section and whatnot in a lot more structured, forwards-compatible way. Still, should you want something similar and should Halopedia not be willing to share, I'm sure it's easy enough to reimplement that.)

Lmdg2000 (talkcontribs)

Thank you very much @Jack Phoenix for your extensive explanation !

Reply to "delete profile sections"