Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Moderation Tools
this extension should give the ability to adminstrators to quickly accomplish some basic moderation task, like:
split selected comments from a discussion and start a new discussion with them.
merge selected comments from a discussion and move them to another discussion.
when you ran a forum with lot of members this is a must have....
0
This discussion has been closed.
Comments
$s = $this->Context->ObjectFactory->NewContextObject($this->Context, 'sqlBuilder');
$s->SetMainTable('Discussion','d');
$s->AddSelect('DiscussionID', 'd');
$s->AddOrderBy('DiscussionID', 'd', 'desc');
$s->AddLimit(0, 1);
whit this you get the last id created....or at least I think....
What about the case if a user creates a new discussion in exactly the same moment and then you will get a wrong DicussionID
Isn't the Id auto_increment, and mysql does all the work?
Tiggr