Is there a way to define areas that a user can and cannot edit? I am having problems with my users deleting php code, and I wondered if there was a way to "lock" the code so that it can't be edited...
Any help is HIGHLY appreciated (possible reward!)
Thanks!
Jon
Any help is HIGHLY appreciated (possible reward!)
Thanks!
Jon
RE: How To DEFINE EDITABLE REGIONS?
You can look at the following plugin/patch: https://sourceforge.net/tracker/index.p ... tid=737639
It might be more complex than your needs because it also supports custom XML tags, but you'll have to mess with the code if you want to have only one editor with several editable/non-editable parts in it.
RE: How To DEFINE EDITABLE REGIONS?
RE: How To DEFINE EDITABLE REGIONS?
That patch tries to avoid those problems (and I mean that it *TRIES* not that it's bulletproof), the perfect solution is to not include anything non-editable inside the editor.
RE: How To DEFINE EDITABLE REGIONS?
see, the problem is that we use templates with php code on them which is necessary to generate the dynamic content like menus and photogalleries... that's great, but when someone goes to edit their site, they end up deleting important stuff, and get "php" errors on their page...
any more ideas?
Jon