[dokuwiki] Re: view page source button

Andreas Gohr wrote:
Chris Smith writes:

Should there be a simple mechanism for disabling the view source button?

--snip--

I thought about this my self recently but I'd like to go one step further, I want to be able to disable any action (eg. I want to disallow viewing recent changes)


My suggestion:

$conf['disableaction'] = 'source, recent'

--snip--
Andi
While waiting for this. You can change your template to have something like this. I only keep the login button. Everything else is hidden.

The header button. Near header include line

    <?php /*old includehook*/ @include(dirname(__FILE__).'/header.html')?>
    <?php if($INFO['perm'] > AUTH_READ){?>
    <div class="bar" id="bar__top">
      <div class="bar-left" id="bar__topleft">
        <?php tpl_button('edit')?>
        <?php tpl_button('history')?>
      </div>
      <div class="bar-right" id="bar__topright">
        <?php tpl_button('recent')?>
        <?php tpl_searchform()?>&nbsp;
      </div>

      <div class="clearer"></div>
    </div>

    <?php } ?>

And footer. Between pagefooter and footer include lines

<?php /*old includehook*/ @include(dirname(__FILE__).'/pagefooter.html')?>
<?php if($INFO['perm'] > AUTH_READ){?>


    <div class="bar" id="bar__bottom">
      <div class="bar-left" id="bar__bottomleft">
        <?php tpl_button('edit')?>
        <?php tpl_button('history')?>
      </div>
      <div class="bar-right" id="bar__bottomright">
        <?php tpl_button('subscription')?>
        <?php tpl_button('admin')?>
        <?php tpl_button('profile')?>
        <?php tpl_button('login')?>
        <?php tpl_button('index')?>
        <?php tpl_button('top')?>&nbsp;
      </div>
      <div class="clearer"></div>
    </div>


<?php } else {?> <div class="bar-right" id="bar__bottomright"> <?php tpl_button('login')?> </div> <?php }?> </div>

Otto
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: