paull Hi all Is it possible to make the toolbox visible only to logged-in users? I could imagine that it would work by creating a group- or a user-sidebar and somehow make the toolbox display there, but how exactly would I have to proceed to achieve this? Background: I'm trying to use doku-wiki with the arctic-template in order to create a cms-like website for our company. Regular website visitors should get to see an index on the left-hand side, but no recent changes links and such. However, for the administrator it would be very useful to have a couple of those functions at hand (recent changes, older version, etc.) Thanks for your help Paull
turnermm I'm not familiar with the particular template you are using, but what you want is to get hold of the user/group data and then apply it to your toolbox or its items in your template: global $INFO; $admin =false; $user = false; if($INFO['userinfo']) { $user_groups = $INFO['userinfo']['grps']; if(in_array ('admin', $user_groups) ) { $admin =true; } if(in_array ('user', $user_groups) ) { $user =true; } } Then: if(!$admin && !$user) { // exclude toolbox }
paull turnermm, many thanks for the reply and sorry for my delayed response! I'll be happy to try out your code. Alternatively probably one can also consider using something similar to thread http://forum.dokuwiki.org/thread/4391
paull And if anyone else is interested: In Arctic Layout it suffices to modify a case-statement on line 193: case 'toolbox'&&auth_quickaclcheck($ID) == AUTH_ADMIN: