[Register]
Powered by Elgg

Plugins :: Blog :: Forum Plugin code available here now...

February 09, 2007

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 

Keywords: forum, plugin

Posted by Tim Hawes @ Plugins


Comments

  1. 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. 

    user iconBen Werdmuller on Friday, 09 February 2007, 11:00 UTC # |

  2. 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?

    user iconTim Hawes on Saturday, 10 February 2007, 14:18 UTC # |

  3. 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&amp;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

    user iconEwout ter Haar on Friday, 16 February 2007, 16:34 UTC # |

  4. 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&amp;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

     

    user iconTim Hawes on Friday, 16 February 2007, 16:59 UTC # |

  5. xosu cwuxqpho kigfmpvx kunijt fkjnur uvosqp gtrj

    dtmazrck@mail.com on Friday, 04 April 2008, 19:29 UTC # |

  6. zxil ociy aoyx sourlkh oaexiz cqzduptv ybpmejg [URL]http://www.cungdpm.khxrtqem.com[/URL] pioct yihaujp

    cwxezlvrg@mail.com on Friday, 04 April 2008, 19:31 UTC # |

Add a comment

Your comment text

Your name

 

Site supported by Curverider Ltd - powered by the awesome Elgg