Go to the FreeLists Home Page Home Signup Help Login
 



[dokuwiki] || [Date Prev] [11-2006 Date Index] [Date Next] || [Thread Prev] [11-2006 Thread Index] [Thread Next]

[dokuwiki] Re: disableactions for user or group

  • From: "William Lee" <william.lee@xxxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Wed, 08 Nov 2006 10:01:35 +0000
I did this by a messy method:

In the template, make the buttons for 'old revisions' etc only appear if someone is logged in.

This means the info is still available if the user knows exactly what to type in the address box at the top, but the buttons do not appear so there is no easy way to see the history etc.

I did this for all the buttons except the login button. See www.sailingsource.com/cherub/test/doku.php/news

This is the bottom bar bit in main.php in /lib/tpl/default :

   <div class="bar">

      <div class="bar-left" >
      <?php if($_SERVER["REMOTE_USER"]) { ?>
        <?php tpl_button('edit')?>
        <?php tpl_button('history')?>
        <?php tpl_button('recent')?>
      </div>

      <div class="bar-right">
        <?php tpl_searchform()?>
        <?php tpl_button('subscription')?>
        <?php tpl_button('admin')?>
        <?php tpl_button('index'); } ?>
        <?php tpl_button('login')?>&nbsp;
      </div>

    </div>


Will



On Wed, 08 Nov 2006 09:28:33 +0000
 "Bradley Schick" <schickb@xxxxxxxxxxx> wrote:
Is there any way to configure disableactions for specific users or groups? If not, this would be a nice feature.

Specifically, we have a closed wiki and would like authors to be able to see old revisions but not read-only users.


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






This message has been scanned for viruses by BlackSpider MailControl - 
www.blackspider.com
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist




[ Home | Signup | Help | Login | Archives | Lists ]

All trademarks and copyrights within the FreeLists archives are owned by their respective owners.
Everything else ©2007 Avenir Technologies, LLC.