Welcome to Geeklog, Anonymous Wednesday, October 09 2024 @ 04:03 pm EDT
Geeklog Forums
Small hack of Static Pages 1.2
jhk
Sometimes it is nice to allow specific users to edit certain static pages to do simple updates without allowing them full access to all sorts of things they should not mess with. This hack takes care of the problem.
Tony's original Static Pages Plugin is an excellent addition to any site, however I missed a small bit of extra functionality, so I have edited the two index.php files which are part of the Static Pages 1.2 plugin. My changes allow members of the designated Group to edit the page if the Edit checkbox has been checked. This works even if they are not members of the special staticpages.edit subgroup. Thus there are two distinct ways of getting to the Static Pages editor: Being a member of the staticpages.edit group and being a member of the "owning" group.
The editing form has reduced functionality for the group members: They are unable to alter ownership/group and access rights. In other words, they can change the contents and that's it. Also, when they are done editing, they are taken back to the static page and not to the Static Pages Admin list.
You can grab the tarball here. The locations of the files on your own site should be obvious from the directory structure in the tarball.
All the usual caveats apply!
Anonymous
bedek
bedek
jhk
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content