Hmmm i think its only a goog starting point for developers.
That's right. Maybe listed under a new category "development".
The addons page should be the starting page with all modules listed. I mean, now the forum contains n versions of the hello world module which could even be in different threads. When I'm looking for a module, the page I expect the latest version to find should be the addons page. This applies to all available modules, development modules included.
To add upgrade functionality, increment the version number and add a new file named "upgrade.php".Thought about a similar solution. The problem is that with your solution we have to add an improovement to the upgrade.php wich adds databases entries depending on the previous installed version. This is needed when somenone upgrades from an older version. Mean someone has version1.0 of a modul and wanna now upgrade to version 1.5. This needs other scripts then when he upgrades frm version 1.4 to 1.5.
RSmith had the idea to write an improovement in the modify.php of the modules, wich checks everytime when the modul is called in the admin area of wb if all tables are present and if not install them.
This can be solved easily.
Add for every upgrade during time a new function to your upgrade script. When upgrading, check the current version number and determine which functions to call, start with the oldest first.
An user has an example module with version 1.0 installed. In the mean time development has progressed and the current version number is 1.4. Not every release has some DB changes.
Now when the user upgrades the script checks the current version and calls the function for upgrade from 1.0 to 1.1 first, then in sequence the function for upgrade for 1.2 to 1.3 (1.2 has no DB changes) and then the function for upgrade from 1.3 to 1.4. Now it updates its version number in the addons table. The module is current now.
When another user has version 1.3 of the same module installed and starts an upgrade, the upgrade function will only start the script for upgrading from 1.3 to 1.4 and updates the version number in the addons table.
I think you shouldn't touch modify.php for this task. Modify.php should modify the content and not something else you would not expect in that file. Keeping these tasks separated.