Loading...
 
Themes

Themes


Re: hide links on top of each page?

Japan

> Hi!
>
> Is it possible to hide the links on the top of each page (history, similar, comment, attach files) for anonymous users?

The visibility of these depends on the permissions that anonymous users have, at least for some, so first you should be sure that the perms for the anonymous group are set as you want them. If these are set and the icons are still visible, you can hide them by modifying a few template files.

To hide the links at the bottom of the wiki page from anonymous users, in tiki.tpl, change

Copy to clipboard
{if $show_page_bar eq 'y'}

to

Copy to clipboard
{if $user and $show_page_bar eq 'y'}
(around line 46).


In the case of the icons at the top of the wiki page, the visibility is controlled separately for each (depending on your permissions settings) so, in the file tiki-show_page.tpl, you could add (like in the previous case)

Copy to clipboard
$user and

to each of the conditional statements such as

Copy to clipboard
{if $feature_wiki_pdf eq 'y'}

for any icon visible to anonymous users that you want to hide.

--Gary

There are no comments at this time.