If you have to add it to the topic, messing with the post order could get ugly. Probably easier to just leave it as an option when creating the topic. You can then add an entry to topicmeta, and use a hook to check if the topic being called is such a wikitopic and add to the roles available to the current user (giving him the edit_topic or rather edit_post capability). That should let him and therefore anyone edit it.
Yes but how would i use the editing edit post template without having to recreate a post editor, etc.
Oh wait, you mean to create it as the 2nd message when a new topic is created. Old topics would not be able to have a wiki post.
Hmm.
If only bbpress actually obeyed post_position, there would be so many nice tricks that would be so easy to do. Argh.
But you’ve already got all the data you need right there in the date created. Post_position just makes things more awkward to move and is just not normal form. At least I’ve never seen an advantage to it, what are you thinking of?
Ah I have another idea that would allow it to use the regular post editor and all it’s features/hooks.
bbpress won’t display any post normally that doesn’t have a status of 0. “1” is deleted. But something like 9 could be the wikipost for the topic. That way even older topics could get a wikipost. All we have to do is check for a post status of 9 with the topic id and if so, display it after the topic summary on top. Hook it to show an edit button that works for any subscriber (or maybe a level setting so only mods, etc can edit it) and of course a button within the topic summary to start a wikipost if there is no post with a status of “9”.
Too exhausted to start on this project this week but will look at it next. If anyone wants to have a go at it, please do.
Well this and the karma reputation plugin are two on the top of my list. Going through a bit of burn out so I might give them a go next month.