Jump to content

Extension talk:HideSidebar

Add topic
From mediawiki.org
Latest comment: 1 year ago by Hgmaerkle in topic Doesn´t work for vector skin 1.38.1

error

[edit]

I think there's an error in your php syntax. As far as I tried it out, there are missing some " ", that's why I got a notice which said that the constants navigation, text, href, id and active are undefined. When I added "" round these words, the notice disappeared.

Here's the corrected code section, I think it should be like this.

                $bar = array(
                        "navigation" => array(
                                array("text"   => 'Login',
                                      "href"   => $url,
                                      "id"     => 'n-login',
                                      "active" => '')
                        )
                );


Thank you and regards,

Sidian

I've added single quotes around the strings. It should work now, although I haven't tested it. Reach Out to the Truth 00:28, 21 September 2010 (UTC)Reply

Doesn't work for monobook

[edit]

This doesn't seem to work for monobook, any reason why?

Affirmative. I would be cool to use it with monobook too. Cheers --[[kgh]] 15:33, 7 September 2011 (UTC)Reply
I found another solution to achieve this, though only advisable on closed wikis. Use Extension:UserFunctions and put the parser function into MediaWiki:Sidebar. $wgEnableSidebarCache must be set to false (standard anyway). Cheers --[[kgh]] 19:20, 25 October 2011 (UTC)Reply

Doesnt work for vector mediawiki 1.19

[edit]

Calendar2 (talk) 17:08, 19 October 2012 (UTC)Reply

see: https://www.mediawiki.org/wiki/Thread:Project:Support_desk/removing_sidebar_permanently_from_all_wiki_pages./reply

Moscowamerican (talk) 04:21, 25 May 2016 (UTC)Reply

Doesn´t work for vector skin 1.38.1

[edit]

User:Hgmaerkle 12:58, 21 June 2022 (UTC)Reply

See the issue #4 and the linked Pull Request #5 I just submitted. ~ Seb35 [^_^] 15:24, 29 November 2022 (UTC)Reply
Thanks for your reply - I´m using Extension:UserFunctions as kgh told Hgmaerkle (talk) 13:34, 5 December 2022 (UTC)Reply