Not logged in. · Lost password · Register
Forum: General Help and Support Installation and Configuration RSS
How to disable "Edit this page" button ?
Avatar
kun4 #1
Member since Aug 2006 · 3 posts
Group memberships: Members
Show profile · Link to this post
Subject: How to disable "Edit this page" button ?
HI

I can't disable this button :(

I have my own script: It add information to data/pages/file.txt and  i can't change permission to this file, because my script can't write :(

And I must diffrent way disable this button.

sorry for my bad english :)
Avatar
zorg #2
Member since Jul 2006 · 7 posts · Location: paris
Group memberships: Members
Show profile · Link to this post
hello,

this button is disabled for the users who have no write permission.
Have a look here : http://wiki.splitbrain.org/wiki:acl

greetings.
Avatar
kun4 #3
Member since Aug 2006 · 3 posts
Group memberships: Members
Show profile · Link to this post
but  I disabled ACL

Diffrent way ?
Avatar
koko #4
Member since May 2006 · 161 posts · Location: Zonhoven Belgium
Group memberships: Members
Show profile · Link to this post
hi,

If you enable ACL, everyone who isn't logged in, won't see any 'edit' button (only the button to login)
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Avatar
kun4 #5
Member since Aug 2006 · 3 posts
Group memberships: Members
Show profile · Link to this post
but where i can in  php code disable this button ?
Avatar
purplepaisley #6
Member since May 2006 · 142 posts · Location: UK
Group memberships: Members
Show profile · Link to this post
You can remove it from the template, /lib/tpl/default/main.php.

       <?php tpl_button('edit')?>
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2020-02-26, 15:31:22 (UTC +01:00)