I'm currently building a forum in Drupal 5.x but having some problems... I'm wondering if anybody has some experience in building one in D6 and what the pros and cons might be.

In particular, in D5 I can't seem to get the granularity I want for your basic "authenticated user" abilities in the forum... I want them to be able to start threads and edit their own (nobody else's) thread-posts for a limited time (w/some kind of "edited on" stamp) but not be able to delete them.

And for comments, I want them to be able to edit their own comments for a limited time (15 minutes?) w/"edited on" stamp.

In both cases, I could live with "delete" ability if it's also time limited.
What I can't have is folks deleting threads after two dozen people have commented 10 times each! And it breeds confusion if old comments get edited or deleted after people have replied to them or quoted them.

So far, haven't found a way to achieve these in D5. Is it more doable in D6? I think I'd be willing to give up some of the other D5 modules I like (that aren't D6 ready yet) if I gain these features in the trade.

Comments

nevets’s picture

D6 separates delete permissions from edit permissions. I am not aware of away to make the edit permission time sensitive.

pkej’s picture

I think rules,triggers and nodeaccess might be modules to check out. or else integration of external forum (phpbb or similar) Apart from that I think nevets is on the ball.

You should try to get involved with http://drupal.org/project/advanced_forum which might be the one place to implement much of what you want, if it isn't achieveable through those other modules.

Node access would of course lead you to use a module where forums are nodes, so it might be out of the window because of that. Setting up rules, triggers etc for something like you wish is possible, but time consuming, but with a node based forum and node access I think possible.

You might need relative date tokens (a module which name I can't remember) to set the time 15 minutes into the future before revoking edit/delete access to a posted forum topic/reply.

Paul K Egell-Johnsen

aharown07’s picture

Looks like I can't go D6 yet anyway... too many mod's I need not ready for D6 (Ad, Advanced Forum being two biggies).

Found some solutions to my D5 forum problems.

There's a comment.module hack that allows time limited comment editing of one's own comments only. (Why somebody hasn't made a module of that I don't know... wd do it myself if I knew how). Details here: http://drupal.org/node/54788

And there's instructions for making a little module to prevent deleting of one's own posts (if they have any comments) here: http://drupal.org/node/261925
(This one is pretty limiting because, so far, it only allows user1 to delete and you can't turn it on or off for particular node types... but I don't need to for this project)

Would still love to time limit edit access to the forum thread/post. Still looking for ways to do that.

michelle’s picture

Advanced Forum is just as ready for D6 as it is for D5. It won't help you with access control, though.

Michelle

--------------------------------------
See my Drupal articles and tutorials or come check out life in the Coulee Region.

aharown07’s picture

Sorry... thought I read that AF wasn't prime time yet for D6. Thanks for straightening the record there.
Yeah, the access stuff is a different piece of the puzzle. D6 helps some because--I hear--"delete" is generally separated from "edit." That's a big improvement. Still needs more edit-comments control though and I haven't seen a D6 or D5 module that really does that. Other than the core patching approaches I mentioned.

Maybe I'm closer to being ready for D6 than I thought. Need to go through my mods list more comprehensively and see what's stable and working for D6 and what isn't. ...my template would have to be converted though. Still, I'd like to go live w/D6 if I can so we'll have a longer period to settle in before the next major upgrade is necessary.

michelle’s picture

AF is being developed in parrallel between D5 and D6. D6 is actually probably _more_ ready just because the problems with core in D5 make the D5 branch more bug prone. I'm fighting a nasty one, now, that's making AF unusable for some but it's only a D5 problem.

Having discrete add/edit/delete permissions is _very_nice in D6. The reason you can't edit your own post in the forum here is because that would also give you the ability to delete the whole thread, including everyone else's comments.

For more complex access permissions, you may have to look at forum access / taxonomy access control.

If you can do D6, go for it. I know it's hard. There's still some key modules that I'm waiting on for some sites. But I'm moving my sites over as fast as I can because D6 is just so much nicer to work with.

Michelle

--------------------------------------
See my Drupal articles and tutorials or come check out life in the Coulee Region.

aharown07’s picture

Update: the delete preventing custom mod quit working (maybe I only imagined it worked... or something I installed broke it)
In any case, a better option is Formfilter Module (http://drupal.org/project/formfilter)
You can set it to hide the delete button (or anything else on a form) from anyone who doesn't have "can view filtered forms unfiltered" (or something like that) permission.

Result is that posters can start threads and edit them but cannot delete them.
I rather liked the idea of being able to delete them [i]until[/i] comments were posted on them, but this will do.

aharown07’s picture

Found a solution for the "edited by... on..." stamp part.

Nice start here: http://drupal.org/node/81242
But for Advanced Forum, you put the code in advf-forum-post.tpl.php. To display it where it makes sense (topic post only), you have to add the condition if ($top_post):at the begging (and the required endif afterwards).
Not sure I'm doing all this correctly, but I also added a div= and named a class... and added css to advanced_forum.css. It works.

End result: nice little line (I put mine below the teaser links for now... not sure I like it there) reporting when it was last edited and by whom.

michelle’s picture

#331525: Add "last edited" to posts

Michelle

--------------------------------------
See my Drupal articles and tutorials or come check out life in the Coulee Region.