BBModule Editing and Deleting & Status list
chasetec Oct 3, 2004 10:21 AMI've commited some bug fixes that should enable both user and moderator editing and deleting of messages.
Moderators can edit and delete any message. And for anyone else who had trouble figuring it out, Moderators are configured from the Permissions module and not the Forum Security Module. Users, if granted permissions from the Forum Security Module can delete any post they own as long as it hasn't been replied to and they can edit any of their messages.
The main problem that was keep the existing code from working(but not the only thing) is that isIdentical() doesn't seem to work as expected. Most places in the BBModule where calling this indirectly through EJB.areIdentical(). Apparently the bug has been discovered before(of course I didn't find out till after hunting it down myself). http://www.jboss.org/index.html?module=bb&op=viewtopic&t=51307
Other bug fixes besides the work arounds for isIdentical include:
In BBModule.java - Fixed Edit message, it was "Last edited by Sun Oct 3, 2004 05:22 AM on 2; edited"
In BBModule.java - Added the display of the status message when a poll or message is deleted(was blank info box)
In Context.java - Fixed Poster name not being set
In EditPostCommand.java - Made it so that even moderators affect the time and count of modification
In EditPostCommand.java - Trying to create a poll by modifiy a message is ignored now
In DeletePostCommand.java - Put the code that detects which post is the last in a topic in the right place so users can delete a post as long as it hasen't been replied to.
Other issues that need addressing include:
Shouldn't the defaults for Permissions->bb->Admins be .*:.*: instead of ::
Viewing a Forum shows no moderators "Moderators: None"
An anonymous user adding a poll or message doesn't have their username saved even though there is a field
Would be really nice if the redirect after stuff worked...
Comment out the avatar stuff till it's fully implemented
Setting the vote permissions to all doesn't stay
Permissions page needs to be layed out to fit on the screen.
What is Repost supposed to do? only shows with mod permissions.
The show IP link doesn't work, not sure how much or the Mod Control Panel works...
All the attachement stuff needs to be removed? Would the BB tables stay the same even on the next version of Nukes(should we leave the attachement stuff in the EntityBeans only?)
That url bug still needs to be looked at(http://sourceforge.net/tracker/index.php?func=detail&aid=1020227&group_id=22866&atid=376685)
The Moderators topic splitting doesn't work...
That's all folks!(so far this week anyway)