Posted on: 08/16/03 01:42pm
By: amckay
I\'m finally getting around to trying out users static pages as discussed in
this thread, and I can\'t figure out how to give the user that control. I log into my non-privelaged account and cannot see how to add a page. I go to this URL : http://www.neap.net/admin/plugins/staticpages/index.php?mode=edit and of course it says I need admin privs.
Can you be a bit more explicit with details on how this might be done? To recap, I want users to be able to create and manage their own static pages (and only their own).
Re:User Static Pages again
Posted on: 08/16/03 01:58pm
By: Anonymous (Mark)
You have to give these users staticpage priveleges first. When they create a page, they need to uncheck the edit under the Group.
Re:User Static Pages again
Posted on: 08/16/03 02:05pm
By: Dirk
[QUOTE BY= amckay]To recap, I want users to be able to create and manage their own static pages (and only their own).[/QUOTE]
That last bit (\"and only their own\") could be a bit of a problem. Static Pages weren\'t really made for this ...
The steps are as follows:
- create a new group, say \"Static Page User\"
- give that group \"staticpage.edit\" permissions
- assign users to this group
Possible problems are:
- users can create new static pages - as many as they want
- if they don\'t set their permissions properly, other users will be able to edit their pages
The problem with editing other people\'s pages is that per default, a new static page will (in this scenario) be assigned to group \"All Users\". Your users will need to change that manually to group \"Static Page User\"
and they need to make sure that the \"Group E\" checkbox (i.e. giving edit access to members of the same group) is
unchecked (which it is by default).
To work around this problem, you could modify the static pages plugin or its template files to hide the permission settings and/or set them to the desired defaults automatically.
To repeat, the static pages plugin wasn\'t really made for this, but it\'s the closest option available for what you want ...
bye, Dirk
Re:User Static Pages again
Posted on: 08/16/03 03:58pm
By: amckay
[QUOTE BY= Dirk]
To work around this problem, you could modify the static pages plugin or its template files to hide the permission settings and/or set them to the desired defaults automatically.
[/QUOTE]
Hmmm, yeah, I\'m thinking that perhaps the thing to do is copy index.php to something like spuser.php and hack it a bit to ensure a user can only manipulate his own pages. I definitely do not want Joe User to be able to mess with my static pages.
cheers,
-Alan
Re:User Static Pages again
Posted on: 08/16/03 04:11pm
By: Dirk
[QUOTE BY= amckay]I definitely do not want Joe User to be able to mess with my static pages.[/QUOTE]
The problems outlined above only exist with pages created by members of that \"Static Page User\" group. If you as the Admin of the site create your static pages with group Root or Static Page Admin, they won\'t even see your pages.
bye, Dirk