Writing a new module allows you to extend PHP-Nuke to get it to do exactly what you want it to do. What we will do here is to create a general-purpose module that will allow users to submit content for modules that do not support user-submitted material. We'll call it UserSubmissions
. It will work in the way the Submit News module works for stories:
The user will submit the material through a form.
The administrator will be notified of the new submission by email.
The administrator will be able to see a list of the submitted material in the administration area, and can edit, delete, or approve the material to go into the database.
The point of this module is that it does not touch the modules for which it allows the submission of content; everything will happen in the UserSubmissions
module. In this chapter, we will only code in functionality for users to submit encyclopedia entries. It is straightforward to extend this to allow submissions for the Content
...