Hello
We are using Monobook as template and we would like to hide the "Show pagesource" and "Old revisions" buttons from people who are not logged in.
What I found in the forum:
In the /wiki/lib/tpl/monobook/main.php replace the line
<?php tpl_button('edit') ?>
with the line
<?php if(isset($_SERVER['REMOTE_USER'])) tpl_button('edit') ?>
in the main.php of the Monobook template you
canNOT find anything simelar to <?php tpl_button('edit') ?> or <?php tpl_actionlink('edit') ?. (in opposite to the /wiki/lib/tpl/default/main.php)
I tried just to add at the end/the beginning of main.php <?php if(isset($_SERVER['REMOTE_USER'])) tpl_button('edit') ?> but this does not work.
Could it be so diffecult to hide these buttons ??
A French guy had the same problem, without any solution:
http://forum.dokuwiki.org/post/10316
Has anybody an idea ??
Thomas