Is it possible to make the access permission drop-down box (which appears at the end of each content upload form) 'admin' only ?
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
Override the input access view. Put a test there for isadminloggedin. If not logged in, put in a hidden input value with the hard coded access value that you want.
Cheers Cash. I understand your concept, but not entirely sure where to start.
Basically, I'm setting the site default access permissions to 'Private'. I then want to remove / hide the 'Access permission' field from everyone except admins.
I take it I will have to code the 'isadminloggedin' to each form: eg. profile, comments, topics, file uploads, etc. (Not a problem - the main one I'm after is the profile......
@Mick
e.g. C:\xampp\htdocs\_FBFKIDS\views\default\input\access.php
*All forms use this view --> so if you code changes in here.. you've got your whole site covered ;-)
Cheers buddy ....... On it.
Oops! Trying to be tight with my web space. Upgraded and sorted. Cheers buddy. Wondered why I wasn't getting any mail.
i fwd'ed to blackpool.ac.uk.. chk there else goto gmail/ chat b4 i doze or other trix..
That's cool. Cheers again. Am off to get some sleep myself now.
@mick bullock How can you able to solve this issue?
Can you post up the code mod you made in access.php with the: if 'isadminloggedin', then show the access permisions drop down to user?
I understand the principle, just a little green to the syntax and positioning details.
Thanks!
- Previous
- 1
- 2
- Next
You must log in to post replies.