Topic on Extension talk:DynamicSidebar

Hiding Toolbox for anonymous user

2
Omda4wady (talkcontribs)

How to hide Toolbox for anonymous user ??

108.64.211.41 (talkcontribs)

This will make the toolbox disappear for everyone


$wgHooks['SidebarBeforeOutput'][] = function ( $skin, &$bar ) {

$temp = [];

foreach ($bar as $key => $innerArray) {

if ($key != "TOOLBOX")

{

$temp[$key] = $innerArray;

}

}

$bar = $temp;

};

Reply to "Hiding Toolbox for anonymous user"