Extension talk:Vector

From MediaWiki.org
Jump to: navigation, search
Start a new discussion

Contents

Thread titleRepliesLast modified
CollapsibleLeftNav Set Default Status207:19, 19 May 2012
Clarity needed for Vector default options like $wgDefaultUserOptions['vector-simplesearch']223:27, 12 May 2012
What does the 'simplesearch' do?416:59, 11 May 2012
My left menu won't collapse912:23, 10 April 2012
How to use Vector features for new skin?421:29, 22 March 2012
Vector sidebar Functionality Broken?003:28, 12 March 2012
Conflict!! When ExpandableSearch and SimpleSearch enable at the same time002:17, 24 February 2012
Does vector ignores $wgUseFileCache?520:14, 16 February 2012
How to enable SectionEditLinks?413:45, 24 December 2011
What does 'footercleanup' do?012:39, 13 December 2011
Problem with tab names.503:44, 24 November 2011
(Un)CollapsibleTabs318:42, 19 November 2011
How to remove "Take me Back" and "New Features" at top of every page?016:09, 23 October 2011
EditWarning non working108:55, 29 September 2011
Setting Portlets Non-collapsible105:40, 2 September 2011
Delay before collapsing on page load114:18, 30 August 2011
Complete slow down016:27, 24 August 2011
Alignment of search suggestions013:08, 9 August 2011
Suggestions204:23, 4 August 2011
Set the number of search suggestions?021:10, 27 July 2011
First page
First page
Previous page
Previous page
Last page
Last page

CollapsibleLeftNav Set Default Status

How would I set the default status on this?

It always shows the first portal, which you can't collapse. The second portal seems to default to uncollapsed. The third and other portals seem to default to collapsed.

How can I make the third default to uncollapsed?

Thank you.

24.40.138.18505:18, 23 June 2011

I also need to set the default status (collapsed / uncollapsed) for the left navigation. Is this possible?

195.37.78.24007:33, 12 April 2012

Anyone had any luck finding a solution? Perhaps via css?

Varnent (talk)07:19, 19 May 2012
 
 

Clarity needed for Vector default options like $wgDefaultUserOptions['vector-simplesearch']

This edit by me was undone as "not unnecessary". I disagree and ask to have it reinserted into the page in an appropriate way. We just struggled for two days trying to figure out why the simple search box wasn't displaying in our mediawiki. We couldn't find any references to these default terms, especially

$wgDefaultUserOptions['vector-simplesearch'] = 1;

Even when googling that exact variable, this wiki does not show up in the first 10 results. This seems to indicate there is a gap in the documentation and that is what I was trying to address with my edit. The default user options for Vector need to be more clearly spelled out and this extension page would seem like the appropriate page to do so. Thank you. Don

205.254.147.820:38, 11 May 2012

Works for me without that.

Jasper Deng (talk)23:04, 11 May 2012
 

Works for me as well.

You did set:

$wgVectorUseSimpleSearch = true;

right ?

Krinkle (talk)23:27, 12 May 2012
 

What does the 'simplesearch' do?

$wgDefaultSkin = 'vector';
require_once("$IP/extensions/Vector/Vector.php");
$wgVectorUseSimpleSearch = true;

has no effect on the search in Vector skin for me.

Subfader12:38, 13 December 2011

The search bar should look very different. Check this screenshot for example. On the right is with SimpleSearch enabled.

Krinkle01:08, 15 December 2011

Ah, works now. Thanks.

Subfader09:33, 15 December 2011

Here its not working either, how did you fix it? I wrote the same lines that Subfader..

177.69.29.11313:05, 24 April 2012
 
 

We are setting $wgVectorUseSimpleSearch to true but our user preferences are not taking the value. We have to go into user preferences -> search options -> Enable enhanced search suggestions and manually set the flag. Any idea why this might be the case?

205.254.147.816:59, 11 May 2012
 

My left menu won't collapse

I have installed the extension as described, I have inserted the necessary text into local.php, yet the menu won't collapse. Stranger yet: I have 2 wikis: collapsible menu works in one wiki, but not int the other. Same extensions installed, same localsettings.php. Could there be some problem with style sheets? I have differences there. Thanks for any tip. Anja

129.233.51.1213:03, 26 July 2011

I have the same. It just won't collapse. Its not the browser, since the collapse of the SideBar here works. Any requirements on the links on the SideBar page? I just have a bunch of

  • title
    • Pagename1|alias1
    • Pagename2|alias2
    • Pagename3|alias3
    • Pagename4|alias4
  • title2
    • Category:name1|alias5
    • Category:name2|alias6

....LocalSettings.php :

require_once( "$IP/extensions/Vector/Vector.php" );

$wgDefaultUserOptions['useeditwarning'] = true;

$wgVectorFeatures['editwarning']['global'] = true;

$wgVectorFeatures['editwarning']['user'] = true;

$wgVectorUseSimpleSearch = true;

$wgVectorFeatures['collapsiblenav']['global'] = true;

$wgVectorFeatures['collapsiblenav']['user'] = false;


MediaWiki 1.17.0 PHP 5.3.8 (apache2handler) MySQL 5.0.91-community Installed extensions Special pages ChangeAuthor (Version 1.1) EditUser (Version 1.6.1) Password Reset (Version 1.7) User Merge and Delete (Version 1.6.1) Cite DynamicPageList (Version 1.8.9) MobileDetect (Version 1.0b) ParserFunctions (Version 1.4.0) RegexFunctions (Version 1.4.1) Author Protect (Version 1.2) ConfirmEdit FCKeditor Lockdown Vector (Version 0.3.0)

84.196.119.5500:17, 22 October 2011

Its working now. In Localsettings i removed all the options. only require_once( "$IP/extensions/Vector/Vector.php" ); remains. I also moved it up. it is now the first extension defined, just after the $wgDefaultSkin = "vector"; Maybe that is related

84.196.119.5511:31, 24 October 2011

Thank you. That did it for me. There is inherent confusion in that having the 'Vector' style as your default does not automatically give you the collapsing menus. You MUST add this line in LocalSettings.php as well.

require_once("extensions/Vector/Vector.php" );

173.10.110.10800:56, 16 March 2012
 
 

MW 1.18.0 and none of the settings work. I also tried moving it up and down in LocalSettings.php

$wgDefaultSkin = 'vector';

require_once("$IP/extensions/Vector/Vector.php");
$wgVectorFeatures['collapsibletabs']['global'] = false;
$wgVectorFeatures['collapsibletabs']['user'] = false;
$wgVectorFeatures['collapsiblenav']['admin_tools'] = false;
$wgVectorFeatures['collapsiblenav']['user'] = false;
$wgVectorFeatures['editwarning']['global'] = true;
$wgVectorFeatures['editwarning']['user'] = true;
$wgVectorFeatures['expandablesearch']['global'] = false;
$wgVectorFeatures['expandablesearch']['user'] = false;
Subfader22:08, 10 December 2011

Tried on second clean installion. The same. Also the user setting doesn't appear in the prefs. No effect and not working at all!

Subfader11:17, 12 December 2011

I guess this is worth a bug report. Cheers

[[kgh]]13:15, 12 December 2011

I don't care much anymore since I decided to go for Monobook as default skin for another while, but here you go https://bugzilla.wikimedia.org/show_bug.cgi?id=32989

Subfader17:15, 12 December 2011

I never went Vector. Still I believe it was the right decision to let them know that there is something not working as it is expected or as it should. Cheers

[[kgh]]20:00, 12 December 2011
 
 
 
 
 

How to use Vector features for new skin?

Hi,

we created a nice new skin for our Wiki - and now we want to integrate the simplesearch-feature, as well as the collapsible sidebar. Any advice on how we can that?

Would it be an idea to copy the Vector-Extension, rename it after our new Skin or something similar? Cheers --Fxk2 13:38, 20 December 2011 (UTC)

Fxk213:38, 20 December 2011

How to create a skin FooBar based on the default skin Vector

Pastakhov13:32, 21 December 2011

That's not what he asked. He wants to know how to use the Vector extension with a skin that is based on Vector.

194.80.246.121:24, 4 February 2012

I'de love to know the answer to this too.. It must be a simple switch somewhere that sets the Vector extension to rely upon the Vector skin, but i can't see it anywhere in the code upon first look.

Ashimema (talk)18:49, 22 March 2012

The one I know of is in Vector.hooks.php, function beforePageDisplay, which looks like this:

public static function beforePageDisplay( $out, $skin ) {
        if ( $skin instanceof SkinVector ) {
                // Add modules for enabled features

Starting on line 96 in MW 1.17. Obviously, you need to change SkinVector to the appropriate class for your skin... but I haven't tested it personally.

Of course, there might be other hidden ones...

FreedomFighterSparrow (talk)21:27, 22 March 2012
 
 
 
 

Vector sidebar Functionality Broken?

I have been banging my head against the wall trying to figure out why this is not working. Maybee someone can help.

When I use this in the markup: {{#subpages:format=sidebar}}

It outputs a line of code like this: *MediaWiki:Sidebar/testing|testing

And on the MediaWiki:Sidebar page it looks like it should but on the actual sidebar it is not parsing it into a list item. I am not understanding why because as a preprocessor it should render the output before the nav bar processes the rest of the page. This was proven by: ** {{# ifeq: Extension talk:Vector/Vector sidebar Functionality Broken? | Extension talk:Vector/Vector sidebar Functionality Broken? | True | False }} | {{# ifeq: Extension talk:Vector/Vector sidebar Functionality Broken? | Extension talk:Vector/Vector sidebar Functionality Broken? | True | False }} as well as by pasting the output into the markup section alone.

Any help is appreciated.

Thrasmion (talk)03:28, 12 March 2012

Conflict!! When ExpandableSearch and SimpleSearch enable at the same time

I think a expandable simple search bar will be gorgeous.

Can anyone fix it?

Zoglun (talk)02:17, 24 February 2012

Does vector ignores $wgUseFileCache?

Hello,

im using vector now and its causing a very high CPU load, like Im disabling $wgUseFileCache. When i delete the cache and let it build up again, its done in 1-2 hours, but Vector is causing this load over days. Is vector ignoring or disturbing the cache?

77.1.84.22919:44, 15 February 2012

Did you recently upgrade? MySQL load / CPU usage raised since MW 1.17

Subfader (talk)11:06, 16 February 2012

No i didnt upgrade recently. I deinstalled Vector yesterday and now the CPU usage is low again.

77.1.94.5415:34, 16 February 2012

I skipped MW 1.17 and 1.18 for other reasons. It didn't feel faster at all. The Ressource Loader is evil. MW 1.19 will be released soon. Waiting may be worth it.

Subfader (talk)17:39, 16 February 2012

Do you think that MW 1.19 will overcome this shortcoming observed here? I guess it very uncool to cause a high CPU load in case it is not necessary. So far I skipped Vector (skin and this extension) for various reasons but I guess it will become inevitable to use it one day. Cheers

[[kgh]] (talk)18:41, 16 February 2012

CPU: Most probably it won't be solved.

ResourceLoader 2 is scheduled for later this year.

Subfader (talk)20:13, 16 February 2012
 
 
 
 
 

How to enable SectionEditLinks?

I don't know how to use it. Does this figure really exist?

Zoglun13:53, 12 July 2011

Not working for me either. The module files are missing. I grabbed them from the trunk version, but that still does not get them enabled.

85.80.205.11217:10, 15 August 2011

SectionEditLinks is enabled by default, you can enable it via your preference under editing, then right click on sections to edit.

97.115.150.6617:53, 24 August 2011

This thread is about the Vector extension feature "SectionEditLinks", not about the ability itself to edit a page by section.

The feature is that the editsection-links are positioned to the left with a pencil, which, according to usability research and edit statistics makes it easier to users to recognize which links belongs to which section, and it also resulted it more people going to edit.

Krinkle21:46, 24 August 2011
 
 

Same problem here. I spent a couple of hours of trying to get it to work or finding information about it.

It is really unfortunate that an Extension so widely in use and in the install bundle is documented that poorly...

Is SectionEditLinks supposed to work or not? Under what conditions? And how?

For those who know it shouldn't be too hard to add a line or two in the section potentially saving people hundreds of hours of trying to get this feature to work...

87.179.165.913:45, 24 December 2011
 

What does 'footercleanup' do?

This extension is poorly explained. What does 'footercleanup' do?

$wgDefaultSkin = 'vector';
require_once("$IP/extensions/Vector/Vector.php");
$wgVectorFeatures['footercleanup']['global'] = true;

seems to have no effect on the footer.

Subfader12:05, 13 December 2011

Problem with tab names.

Edited by author.
Last edit: 14:46, 20 September 2011

Hi, after our wiki upgrade to MediaWiki 1.17.0 and Vector (Version 0.3.0) (r95680). Something got messed up with the tab names, most of the tab names has lost it's names (for example on this page I wont see the extension and duscussion text) the special pages show as <vector-namespace-special> and User pages shouw user and user ... here is an screenshot to ilustrate the problem.

any Ideas on how to fix that, because it really driving me mad.Mor2 23:45, 19 September 2011 (UTC)

Mor223:45, 19 September 2011

I'm also having this problem, would love to see a fix. Can see http://gamification.org for example of the problem.

76.21.57.8801:05, 20 September 2011
 

It seems that we had a problem with the older 1.16 Vector extension that wasnt compatible, we fixed and now it works, however there is another tiny problem, that I would appreciate some help with. The 'new pages' tabs do not show in red and the new pages itself has some weird numbers popping at the corner of the screen. i realise that my description probably isnt that good so I have created an illustration for you guys.

Any ideas what the problem might be or what is the relevant code that we should be looking into? Mor2 12:58, 9 October 2011 (UTC)

Mor212:58, 9 October 2011

Sorry to bump this thread up, but could you please tell how did you fix it? I also having this problem too. Thanks very much :)

Korrawit04:40, 15 November 2011

Hi guys,

I had the same problem and I could solve it:

The vector skin from 1.16.x is not compatible with MediaWiki 1.17. There e.g. are breaking changes inside the file skins/Vector.php, which is why you do no longer see the right tab names (but something like <vector-namespace-special> instead.

Do the following: Remove the folder skins/vector/ and the file skins/Vector.php and replace them by the version which comes with your MediaWiki 1.17 package. After that the skin should be working correctly again.

Things are more tricky if you (like me) have created a custom skin based on vector, which now shows these errors. I think in that case the only solution is to compare the old and the new version of vector and to adjust your skin by hand. :-(

88.130.100.23821:39, 20 November 2011

Thanks very much. It really helps!

Korrawit03:44, 24 November 2011
 
 
 

It seems that we had a problem with the older 1.16 Vector extension that wasnt compatible, we fixed and now it works, however there is another tiny problem, that I would appreciate some help with. The 'new pages' tabs do not show in red and the new pages itself has some weird numbers popping at the corner of the screen. i realise that my description probably isnt that good so I have created an illustration for you guys.

Any ideas what the problem might be or what is the relevant code that we should be looking into? Mor2 12:58, 9 October 2011 (UTC)

Mor212:58, 9 October 2011
 

(Un)CollapsibleTabs

Edited by author.
Last edit: 14:40, 19 November 2011

I made a script that makes the menu turn to tabs and vice-versa, by clicking the arrow. Would this be a feature worth adding to the extension?

Edokter (talk) — 22:09, 10 July 2011

Bump?

Edokter (talk) — 18:36, 18 November 2011
 
Edited by author.
Last edit: 18:42, 19 November 2011

As far as I know the click event is used in core already as of 1.18 or 1.19; Use case being tablets viewing a MediaWiki site, unable to do :hover on a touch device.

Krinkle23:32, 18 November 2011

I know there is a click event to make the menu appear, but not the turn it into tabs (and vice versa). (Although I never considerd touch devices, there are ways around that; touch 1: appear, touch 2: toggle.)

Edokter (talk) — 14:37, 19 November 2011
 
 

How to remove "Take me Back" and "New Features" at top of every page?

I am a sysop and I administer a site with this vector extension installed. However, when logged in I see two links with text "take me back" and "New features" left of my user name on top of every page. Clicking these links takes to a wiki description of the vector skin and other things unrelated to my site. How can I disable/remove these two links. Wikimanz 16:09, 23 October 2011 (UTC)

Wikimanz16:09, 23 October 2011

EditWarning non working

Hi folks, I just setup the Vector extension on a vector style 1.17 Mediawiki (french). I checked any parameters needed as well as users preferences, but nothing helps... I still face no warning when I quit the editor (FCKEditor), allowing to loose all changes in case of navigator error (ie : especially on laptop which handles specific shortcuts for previous page). Any idea ?

212.74.185.2215:31, 28 September 2011

Hi all... The extension is finally working... After a few hours of patience. Something with the browser cache I guess. Cheers.

212.74.185.2208:55, 29 September 2011
 

Setting Portlets Non-collapsible

I've been hunting high and low for an explanation for how to set left sidebar nav elements selectively non-collapsible -- specifically, the Google Adsense 2 extension's portlet. Any suggestions? --Balerion 00:05, 5 June 2011 (UTC)

Wikinaut06:20, 14 June 2011
Edited by 0 users.
Last edit: 05:37, 2 September 2011

If you view the source of the page and get the id of the element you want to stay non-collapsed....Example for adsense:

Adsense:

<!-- googleadsense -->
<div class="portal" id='p-googleadsense'>

Then you can add that id in the if statement near line 170 of modules/ext.vector.collapsibleNav.js:

Original:

if (
                                state == 'true' ||
                                ( state == null && i < 1 ) ||
                                ( state == null && version == 1 && id == 'p-lang' )
                        ) {
                                $(this)
                                        .addClass( 'expanded' )
                                        .find( 'div.body' )
                                        .show();
                        } else {
                                $(this).addClass( 'collapsed' );
                        }

New:

if (
                                state == 'true' || id == "p-googleadsense" ||
                                ( state == null && i < 1 ) ||
                                ( state == null && version == 1 && id == 'p-lang' )
                        ) {
                                $(this)
                                        .addClass( 'expanded' )
                                        .find( 'div.body' )
                                        .show();
                        } else {
                                $(this).addClass( 'collapsed' );
                        }
Miigotu05:37, 2 September 2011
 

Delay before collapsing on page load

When I reload this page, the collapsible sidebar is shown at once. But when I reload a page on my own mediawiki install with Vector installed, it first shows the old menu, then on page load replaces it with the new collapsible version. How can it be prevented that the old version is briefly shown first?

83.117.230.810:03, 29 July 2011

i'm getting the same problem with my wiki. also, i kept navigation as a header, it disappears on reloading a page.

112.207.218.13414:18, 30 August 2011
 

Complete slow down

This theme completely slowed down my wiki.

147.188.254.15616:27, 24 August 2011

Alignment of search suggestions

On MediaWiki-wikis the search suggestions are aligned with the right side of the search box, so that long titles expand towards the left. (Example: Search for "Category:Discussion and forum extensions" on this wiki). On my test-wiki, 1.17.0 basic install, Vector skin with the latest Vector extension, the search suggestions align with the left side of the search box. This causes long titles to widen the site enough to produce horisontal scroll bars.

How and where do I configure the wiki to align the results with the right side of the search box?

Thanks for any answer or comment.

KristianS13:08, 9 August 2011

Suggestions

Hi,

from the code I can see that your extension tries to handle the suggestions by itself. However if I don't comment out the part where you disable the mwsuggest feature, I don't get any suggestions at all? Nothing popping up, just as if there would be no suggestion feature at all? Do I need to do something special? (The documentation is rather sparse...)

I'm using 1.17.0 and latest Vector from svn

83.65.127.17811:55, 27 June 2011

So far I've got the same problem. Can't seem to get search suggestions without MWSuggest enabled and commented out from the Vector-code.

KristianS20:46, 3 August 2011
 

We got a similar problem with the latest trunk versions (r93825) on our test system where MWSuggest does not work while our production system uses a more outdated Vector version (trunk r89954) with MWSuggest working as advertised.

MWJames04:23, 4 August 2011
 

Set the number of search suggestions?

Is there any way to change the number of AJAX search suggestions displayed in the SimpleSearch box? In Monobook you can change $wgMWSuggestTemplate to append &limit=20. SimpleSearch does not respect $wgMWSuggestTemplate however. (It probably should....)

Thank you.

Maiden taiwan21:10, 27 July 2011
First page
First page
Previous page
Previous page
Last page
Last page
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox