I've just uploaded the latest code for the forum plugin (see the "Files" repository). This is the same code that is running on this site and on elgg.net.
Thanks go out to Ben and Dave for their assistance in fine tuning this plugin. Hope people find it useful.
./tim
www.commun-IT.org

Comments
Would it be cheeky of me to post a forum wishlist? ;)
In actual forum software, a thread returns to the top when someone adds to it - because this is essentially a different view on a blog, it doesn't happen. I've been wondering how to achieve this, and the only way I can think of is a 'last_updated' field. We've been talking about adding this as generalised metadata across all objects, and this is definitely a good application for it.
This is an excellent plugin. Thanks again for providing it.
Done.
Well, almost. I have in working on commun-IT.org now. I just need to write some code to update the weblog_post table if the "last_updated" field doesn't exist yet. I've done this all by just listening for weblog/comment events and updating the last modified if the post or comments are added/editied/deleted.
It would be good to get this all into subversion. Can I get setup with access?
I just fixed a bug in version 8/2/2007: I think there should be permission check before adding a link to "add item" in the sub menu, like so:
[code=PHP]
if(run("permissions:check", "weblog")){
$num = $num + 1;
$PAGE->menu_sub[$num]['name'] = "forum:add_discussion";
$PAGE->menu_sub[$num]['html'] = "<a href=\"{$CFG->wwwroot}_weblog/edit.php?action=edit&owner={$profile_id}\">".__gettext("Add New Item")."</a>";
}
[/code]
I would also like for Tim to have subversion access, so I can pull his plugin in with svn:external
Thanks, Ewout.
I've done the same around line 98 or so:
$body .= '</table><br>';
if(run("permissions:check", "weblog")){
$body .=<a href="' . $CFG->wwwroot . '_weblog/edit.php?action=edit&owner=' . $profile_id . '" title="Add New Item">Add New Item...</a><br><br>';
}
I'm going to wait to add a few features that will be dependent on elgg 0.7 before I release an updated build
./tim