Incompatible changesThe schema of the table
{db_prefix}log_mentions changed to:
array('name' => 'id_mention', 'type' => 'int', 'size' => 10, 'unsigned' => true, 'auto' => true),
array('name' => 'id_member', 'type' => 'mediumint', 'size' => 8, 'unsigned' => true, 'default' => 0),
array('name' => 'id_target', 'type' => 'int', 'size' => 10, 'unsigned' => true, 'default' => 0),
array('name' => 'status', 'type' => 'tinyint', 'size' => 1, 'default' => 0),
array('name' => 'is_accessible', 'type' => 'tinyint', 'size' => 1, 'default' => 0),
array('name' => 'id_member_from', 'type' => 'mediumint', 'size' => 8, 'unsigned' => true, 'default' => 0),
array('name' => 'log_time', 'type' => 'int', 'size' => 10, 'unsigned' => true, 'default' => 0),
array('name' => 'mention_type', 'type' => 'varchar', 'size' => 12, 'default' => ''),
The hook
integrate_add_mention has been removed.
New mentions are now added via files.
Details will follow (and if they don't feel free to ask for them).
Backward compatible relevant changes Introduction of "events" (let's say a sort of hooks under steroids - hopefully).
Introduction of "modules" and "integrations" (pattern-based classes automatically loaded when needed, an hopefully easier way to extend the core).
* Scheduled tasks are now split each one to its own file for easier extension.
Reference for all the items listed here is the following pull request:
https://github.com/elkarte/Elkarte/pull/1950
Incompatible changesProcedural controllers are no more supported in ElkArte 1.1, only controller classes are accepted and used.
If you have a controller in the form:
<?php
function my_controller()
{
}
function my_pre_dispatch_controller()
{
}
Please take your time to convert it into a class in the form:
<?php
class Myaction_Controller extends Action_Controller
{
public function pre_dispatch()
{
// Pre-dispatching code
}
public function action_index()
{
// Default action
}
}
TODO Write documentation about controllers and naming patterns.
TODO Write a todo addon. LOL
Reference: https://github.com/elkarte/Elkarte/pull/1979
I have been thinking on how to do that all this while. May be I'll attempt it in the near future...
It's easier to do than explain. ;)
The code I wrote above, put into a file named Myaction.controller.php and into the controllers directory is already able to "react" to ?action=myaction
I merged your topic in this one so it's easier to keep track. I hope. :P
Quick and dirty: addons can almost entirely work from that particular directory, so you can have an addon there reproducing the directory structure of ElkArte (at least for now in regards to controllers and subs, it should be somehow extended to themes and languages as well). I'm not (yet) sure it works 100% in the intended way, it requires some documentation and testing before.
When will publish a Dokumentation? I am currently doing my addons prepare for the upcoming version 1.1 *.
heh... Don't you have another question? O:-)
Oh I had many, many question 8) But I think most of them can not yet be answered :-[