[dokuwiki] Re: view page source button
- From: Otto Vainio <oiv@xxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Tue, 23 May 2006 20:23:49 +0300
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()?>
</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')?>
</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
- References:
- [dokuwiki] view page source button
- From: Chris Smith
- [dokuwiki] Re: view page source button
- From: Andreas Gohr
Other related posts:
- » [dokuwiki] view page source button
- » [dokuwiki] Re: view page source button
- » [dokuwiki] Re: view page source button
- » [dokuwiki] Re: view page source button
Chris Smith writes:
Should there be a simple mechanism for disabling the view source button?
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'
<?php } else {?> <div class="bar-right" id="bar__bottomright"> <?php tpl_button('login')?> </div> <?php }?> </div>
- [dokuwiki] view page source button
- From: Chris Smith
- [dokuwiki] Re: view page source button
- From: Andreas Gohr