![]() |
|
Disable editable fields for admin users with no edit rigths - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Disable editable fields for admin users with no edit rigths (/thread-5271.html) |
Disable editable fields for admin users with no edit rigths - bic - 2009-06-04 They can't actually edit those fields, but the layout of the page is the same as for admin with edit rigths. For example printTags() gives to ALL admin users a not styled list of tags with no link to the proper search. If no tags are present they also see the (no tags) label. Disable editable fields for admin users with no edit rigths - acrylian - 2009-06-05 What theme? Disable editable fields for admin users with no edit rigths - bic - 2009-06-05 I've noticed it with a custom theme but it also occurs with zenpage default. I think it's not theme related. I know that I can disable this using The Disable editable fields for admin users with no edit rigths - bic - 2009-06-05
Edit: This seems to work in all cases: after adding to global $_zp_current_album and modifying a few lines above:
with:
to prevent the 'no tags' text if there are no tags Disable editable fields for admin users with no edit rigths - bic - 2009-06-05 This could be the modifyed part of printTags() function:
... Disable editable fields for admin users with no edit rigths - bic - 2009-06-05 Ok, I've found an easy theme based solution so don't bother with my request.
so that I can use it to pass the proper true or false value to all the print editable functions of the page, included album and image description. Disable editable fields for admin users with no edit rigths - acrylian - 2009-06-05 Everything that works for you is fine..:-) I had no time to check on this at all yet. |