Extension talk:HideSidebar
Latest comment: 2 years ago by Hgmaerkle in topic Doesn´t work for vector skin 1.38.1
error
editI 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)
Doesn't work for monobook
editThis 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)
- 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)
Doesnt work for vector mediawiki 1.19
editDoesn´t work for vector skin 1.38.1
editUser:Hgmaerkle 12:58, 21 June 2022 (UTC)
- See the issue #4 and the linked Pull Request #5 I just submitted. ~ Seb35 [^_^] 15:24, 29 November 2022 (UTC)
- Thanks for your reply - I´m using Extension:UserFunctions as kgh told Hgmaerkle (talk) 13:34, 5 December 2022 (UTC)