Giter Club home page Giter Club logo

paypal-donations-block's Introduction

$Id$

HOW TO STARTUP WITH A NEW ACTIVITY MODULE
=========================================

The following steps should get you up and running with
this module template code.

As you are able to read this file, you have probably managed to get this
source code from either the CVS repository or from the zip archive. Well done!

Read this README file.

Make sure you have read this file :-)

Rename the NEWMODULE folder into a lower case name of your module. Make sure
your name is not used by any standard or contributed modules (see
http://cvs.moodle.org/contrib/plugins/mod/ for the list of currently
contributed modules).  

Edit all the files in this directory and its subdirectories and change all the
instances of string "newmodule" to your new module name (eg "widget").
   
Rename the file lang/en_utf8/newmodule.php to widget.php or whatever your
module name is.

Place the widget folder into the /mod folder of your development moodle
directory.

Go to http://localhost/your/moodle/admin/xmldb/ directory. Try to not to visit
the main admin page (Notifications) so the module is not installed yet.  If it
gets installed accidentaly, uninstall it from the database via Manage
activities admin page. You will probably uninstall and reinstall the module
quite often during the early stages of the development.

In XMLDB editor, add all tables, fields and statements needed to implement the
module features. See http://docs.moodle.org/en/Development:Using_XMLDB for
more information. Do not forget to use the [Save] link at the XMLDB main page
so the changes are written into install.xml file. If the link is not active,
the web server process (eg. apache user) does not have permission to write
into mod/widget/db/install.xml file

Visit the admin Notifications page (admin/index.php). The module tables should
get installed.

You can go to Modules > Activities in the Site Administration block. You
should find that this newmodule has been added to the list of recognized
modules.  

You may now proceed to run your own code in an attempt to develop for moodle.
Good luck with that. For help with developing code for moodle, visit the
"Activity modules" developers forum in the online course called "Using Moodle"
at http://moodle.org.


What to do next
---------------

Go through the lib.php, index.php and view.php files.

You will probably want to add some capabilities regarding your module. Look at
db/access.php. Note that you have to increase the version number defined in
version.php to let Moodle update the capabilities information.

If you do any change to the database structure (adding a field, changing the
field definition etc.) use XMLDB editor again. Use the PHP code generated by
XMLDB and push it into db/upgrade.php. Save the change into install.xml (for
fresh installations), increase the version number and go to admin/index.php
again. During upgrade, Moodle calls a function in db/upgrade.php to perform
the DB changes.

Credits for work on this NEWMODULE template
-------------------------------------------
Martin Dougiamas for the original work
Chris B Stones (http://www.welcometochrisworld.com) for revision of the code

paypal-donations-block's People

Contributors

mudrd8mz avatar

Stargazers

Ben Bowler avatar

Watchers

Ben Bowler avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.