README.txt 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. LInE - http://www.ime.usp.br/line
  2. The following steps should get you up and running with
  3. this module template code.
  4. * DO NOT PANIC!
  5. * Unzip the archive and read this file
  6. * Rename the nasatlx/ folder to the name of your module (eg "widget").
  7. The module folder MUST be lower case and can't contain underscores. You should check the CVS contrib
  8. area at http://cvs.moodle.org/contrib/plugins/mod/ to make sure that
  9. your name is not already used by an other module. Registering the plugin
  10. name @ http://moodle.org/plugins will secure it for you.
  11. * Edit all the files in this directory and its subdirectories and change
  12. all the instances of the string "nasatlx" to your module name
  13. (eg "widget"). If you are using Linux, you can use the following command
  14. $ find . -type f -exec sed -i 's/nasatlx/widget/g' {} \;
  15. On a mac, use:
  16. $ find . -type f -exec sed -i '' 's/nasatlx/widget/g' {} \;
  17. * Rename the file lang/en/nasatlx.php to lang/en/widget.php
  18. where "widget" is the name of your module
  19. * Place the widget folder into the /mod folder of the moodle
  20. directory.
  21. * Go to Settings > Site Administration > Development > XMLDB editor
  22. and modify the module's tables.
  23. Make sure, that the web server has write-access to the db/ folder.
  24. You need at least one table, even if your module doesn't use it.
  25. * Modify version.php and set the initial version of you module.
  26. * Visit Settings > Site Administration > Notifications, you should find
  27. the module's tables successfully created
  28. * Go to Site Administration > Plugins > Activity modules > Manage activities
  29. and you should find that this nasatlx has been added to the list of
  30. installed modules.
  31. * You may now proceed to run your own code in an attempt to develop
  32. your module. You will probably want to modify mod_form.php and view.php
  33. as a first step. Check db/access.php to add capabilities.
  34. We encourage you to share your code and experience - visit http://moodle.org
  35. Good luck!