For an extension I am working on, I want to add a new "visibility", different from the standard ones.
What I want to achieve is a post that is only visible to the poster and moderators, that may be edited by either, even (soft)deleted. But that nobody can reply, quote or otherwise see (except for the above). This is in "general" forums, so, not forum wide, but post specific (it does not need to be a new topic, could be a reply to an existing topic). Another way to describe the required functionality would be as a "Draft" message, but may be seen and edited by moderators, and may include Poll and Attachments (so Drafts are ruled out).
The characteristics of this mode would be as I explained: unlimited edit and delete for the poster (like a draft), moderator access according to permissions (edit/delete), NO approval possible, and everybody else should not even know it exists. Of course it should not appear in searches (for poster and moderator, whatever happens now for UNAPPROVED would be fine).
It is very similar to an "UNAPPROVED" post, except for the poster being able to modify/delete it, and the fact that the moderators cannot approve it (this is done by the extension itself) but can edit/delete themselves if they have the right permissions.
I have seen the
content_visibilityclass, but I have also seen a very big amount of places where the actual visibilities are hardcoded, so this cannot be used in a simple way.
My question here is what is your advice as to how and where to deal with this situation?
Some options I see, but may be "undoable", are:
- New visibility mode (other than APPROVED, UNAPPROVED, REAPPROVE, DELETED); pros, the most clear, cons, there is no simple way to achieve this, might require a very high number of events and possibly even places where no event is available.
- Use UNAPPROVED, and add the post to the topic page for the poster (moderators already see UNAPPROVED posts), but remove moderator approval, from viewtopic and MCP; also remove moderator notification (or at least change it) and remove from approval queue.
- Use APPROVED, and remove the post from the viewtopic page except for poster and mod; this I see very complicated, because of search indexing and first/last post id for topic and forum.
- Any other?
Thanks a lot,
PS: It does not have anything to do with this extension, althoug some requirements might look similar