Topic on Extension talk:SocialProfile

Add and edit existing fields

4
177.82.255.90 (talkcontribs)

Is there any way to edit the fields to be filled in by the user, or even add new fields?

NOTE: I'm using Miraheze for mediawiki.


Best regards, Virgil

Jack Phoenix (talkcontribs)

Do you mean the "Custom information" snippets shown on social profile pages? They are customizable by editing MediaWiki:Custom-info-field1, MediaWiki:Custom-info-field2, MediaWiki:Custom-info-field3 and MediaWiki:Custom-info-field4. For example, Halopedia, the Halo wiki uses these fields for Xbox gamer tag and favorite/worst favorite Halo moment.

Krabina (talkcontribs)

Is it also possible to remove or change the existing snippets? e. g. if I want to remove the "Movies" field completely.

Jack Phoenix (talkcontribs)

There's no proper, native support for removing the built-in fields. If you want to hide them on Special:UpdateProfile, you can probably hack something together with CSS, but it seems to be a bit more complicated than I initially thought.

If you visit the Special:UpdateProfile special page and append ?uselang=qqx to the URL, you'll see what MediaWiki: interface messages/message keys the page uses. So to rename the "movies" field, for example, you could edit MediaWiki:User-profile-interests-movies to repurpose it to something more fitting for your site. (Of course that field will still continue to be internally called "movies" by the SocialProfile codebase, but that's probably of little to no relevance to you.)

Reply to "Add and edit existing fields"