Skin talk:Vector

About this board

Nekky-chan (talkcontribs)

How do I enable the sticky header in the new vector skin? I am on MW 1.37.1.

Reply to "Sticky header"

No switch to new vector skin for logged in users

3
83.69.192.2 (talkcontribs)

Hi, I have made following settings for the skin:

wfLoadSkin( 'Vector' );
$wgDefaultSkin = 'vector';
$wgVectorDefaultSkinVersion = '2';
$wgVectorDefaultSkinVersionForExistingAccounts = '2';
$wgVectorDefaultSkinVersionForNewAccounts = '2';

So the website is switched to the new version of vector skin, but as soon as I login to any account the website displays old version of vector.

Please help me to have new vector skin for all guests, users as default one.

Fokebox (talkcontribs)

I still cannot exclude old version of vector skin for logged in users. Please help.

Sokote zaman (talkcontribs)

$wgDefaultSkin = "vector";

wfLoadSkin( 'Vector' );

$wgVectorResponsive = true;

$wgVectorDefaultSkinVersion = '2';

$wgVectorDefaultSkinVersionForExistingAccounts = '2';

$wgVectorDefaultSkinVersionForNewAccounts = '2';

$wgVectorIsSearchInHeader = true;

$wgVectorLanguageInHeader = true;

$wgVectorUseWvuiSearch = true;

$wgVectorUseIconWatch = true;

$wgVectorUseSimpleSearch  = true;

Reply to "No switch to new vector skin for logged in users"

The logo is not visible

4
Summary by Jdlrobson

Manual:$wgLogos has updated information on how to configure logos for skins.

Jelican9 (talkcontribs)

Hi, when I select the modern vector theme, only the name appears instead of the logo. How can I solve this?

Anerisys (talkcontribs)

Do you mean on MediaWiki.org or your own installation? Does the issue occur on other devices as well? Perhaps the browser cache needs clearing.

Jelican9 (talkcontribs)

Yes, I asked for I installed it on my own localhost.

Jdlrobson (talkcontribs)

How to set new vector as default for all users?

7
Activede (talkcontribs)

I have set vector as default via $wgVectorDefaultSkinVersion = '2'; – however that doesn't apply for registered users. The "classic vector" box is still ticked. Any ideas?

Activede (talkcontribs)

I just found out. Just add:

$wgVectorDefaultSkinVersionForExistingAccounts = '2'; $wgVectorDefaultSkinVersionForNewAccounts = '2';

Fokebox (talkcontribs)

I have added such setting, but they haven't applied to users who logged in their accounts. Any ideas to resolve the problem?

Beginneruser (talkcontribs)

Hi Fokebox

Use this $wgVectorDefaultSkinVersion = '2';

Other options for Vector skin see in this

Fokebox (talkcontribs)

I have made such setting and I have Vector 2022 as a default, but as soon as I login any account I see old vector version.

Beginneruser (talkcontribs)
Fokebox (talkcontribs)

I have MW 1.37 included with new vector skin

Reply to "How to set new vector as default for all users?"

vector.css apparently affects Vector 2022.

2
Anerisys (talkcontribs)

I got switched automatically to Vector-2022 on MediaWiki.org, but my vector.css affects the appearance of Vector 2022. Is this intentional?

Tacsipacsi (talkcontribs)

Yes, it’s intentional (but only temporary), see phab:T301212 about the planned removal of this feature.

Reply to "vector.css apparently affects Vector 2022."
GhostInTheMachine (talkcontribs)

What is the official / correct way for a user script to test for a page being viewed by a user that is configured to use the new evil Vector rather than the real Vector? They both show up as

mw.config.get('skin') = "vector"

~~~~

Tacsipacsi (talkcontribs)

I don’t know how official or future proof this is, but

$('body').is('.skin-vector-legacy')

is the original Vector. (It works 100% correctly at the moment.)

GhostInTheMachine (talkcontribs)

Real Vector returns -- mw.config.get('skin') = 'vector'
and has body tag classes -- "skin-vector" and "skin-vector-legacy"

Evil Vector now returns -- mw.config.get('skin') = 'vector-2022'
and has body tag classes -- "skin-vector" and "skin-vector-2022"
(not sure when that started)

Tacsipacsi (talkcontribs)
Reply to "New Vector?"

Folder to rest.api

3
Summary by Tacsipacsi
176.134.90.110 (talkcontribs)

Bonjour,

Nous utilisons la dernière version de Vector pour mediawiki 1.38.0-wmf.13 de mediawiki et tout fonctionne, sauf la barre de recherche principale.

En effet, nous installation est directement dans le répertoire principale, mais il semble que vector appel :

mysite/w/rest.php

Au lieu de

mysite/rest.php

Savez-vous comment résoudre ce problème pour faire fonctionner la barre de recherche (celle de mobilefrontend fonctionne elle normalement)?

Cordialement.

Tacsipacsi (talkcontribs)

Unfortunately it’s not possible in new Vector yet, see phab:T288686. You can temporarily switch back to the old Vector by setting $wgVectorDefaultSkinVersion = '1'; in your LocalSettings.php, or try setting a symlink named w in your wiki root directory (ln -s w, if you have shell access and the server runs some sort of Linux). I couldn’t get the latter work, though, probably it would require some .htaccess magic that I don’t have.

176.134.90.110 (talkcontribs)

Hello,

Thank you for your lead, I just modified directly the :

wvui-search.commonjs2.js and wvui-commonjs2.js

And it works :)

Kims

Reply to "Folder to rest.api"

Logo by namespace in "new" Vector

2
Loizbec (talkcontribs)

Hi,

I recently started using the new Vector. It used to be possible to handle one logo per namespace, using the vector skin, by modifying ''mediawiki:Vector.css'' and using lines like :

.ns-750 #p-logo a, .ns-751 #p-logo a{background-image: url('images/thumb/Projets.svg/120px-logo.svg.png') !important;}

But this does not seem possible anymore, especially since the css does not define the logos anymore. Any idea on how to do that (choose the logo depending on the namespace) with the new Vector skin ?

Thanks in advance

Jdforrester (WMF) (talkcontribs)

You would need to write a hook handler that changes the value of $wgLogos based on the namespace, I think. Probably something pretty early post-render, like ContentAlterParserOutput.

Reply to "Logo by namespace in "new" Vector"
193.251.162.173 (talkcontribs)

Hi,

I recently upgraded a site (BikeWOW) that uses Vector to MediaWiki 1.36. After the upgrade, I noticed that the sidebar does not display the extensions that I have, including AddThis and PCRGuiInserts.

Is this due to some modification to Vector? I have attempted to use this:

$wgVectorDefaultSkinVersion = '1';

I have also tried using:

$wgVectorResponsive = true;

$wgVectorDefaultSkinVersion = '2';

In addition to those I have made numerous other modifications, but the issue remains. When I use MonoBook, the sidebar extensions appear normally. I have updated and reinstalled the extensions, as well as disabling each of the extensions and other extensions. These same extensions (AddThis and PCRGuiInserts) both work fine in other parts of the page.

Would any additional information assist in fixing this? I have looked through the documentation and not found a method to show extensions in the sidebar in Vector on 1.36.

Reply to "Sidebar in 1.36?"

Why was a 1×1 PNG used to depict the light blue border in the early 2010s?

2
Bricomsci (talkcontribs)

When I browsed Wikipedia through the Wayback Machine, I noticed that one edge of the content area (div#content)'s light blue border sometimes appears thicker than another. I examined it through developer tools, and noticed that the border was depicted through an embedded single-pixel PNG graphic (background-image: url(data:image/png;base64,iVBORw0KGgoAAAAN […] and a "border.png" file as fallback) rather than a CSS code border. Since approximately 2013, a pure CSS code border is used.

Just asking out of curiousity, why was a PNG graphic once used? A technical reason? Monobook apparently used CSS borders since at least 2005, possibly since the beginning. How come Vector didn't?

Tacsipacsi (talkcontribs)

It was changed in February 2013. According to the Bugzilla bug referenced in that commit, it was probably for compatibility with ancient IE versions.

Reply to "Why was a 1×1 PNG used to depict the light blue border in the early 2010s?"