Extension:Phalanx/Writing a new module

How to write a new module for the Phalanx integrated anti-spam extension.


 * 1) If necessary, create a MyNewModule.class.php file and place it in the blocks/ subdirectory in the Phalanx directory; sometimes you won't need a new module file at all!
 * 2) Add a new TYPE_ constant to Phalanx.class.php
 * 3) Update the static $typeNames variable in Phalanx.class.php accordingly
 * 4) Update the GUI template (in the templates directory) to add your new block type to the GUI so that people can use it
 * 5) Update Phalanx.js accordingly (use the same number there that you used in Phalanx.class.php)
 * 6) Add the hook calls to efPhalanxInit function in Phalanx.php (if applicable)
 * 7) Add internationalization (i18n) messages; you need at least a help message that is shown whenever the user hovers their mouse over this new block option in Special:Phalanx (if you have no idea what I'm talking about, see the screenshot of the Phalanx UI)

If you need any help, feel free to ask me.