How to add a module to your smartjobboard software.

February 23rd, 2010 by Joseph Mas Leave a reply »

1. go into the system/modules/whatevercategory and edit the config to add the module into the array
example:
/system/modules/miscellaneous/config.php
add
'contact_form' => array
  (
   'display_name' => 'Contact Form',
   'script'  => 'contact_form.php',
   'type'   => 'user',
   'access_type' => array('user'),
  ),

2. Now in the system/user-scripts directory add the php file to do the work
example:
system/users-cripts
create and add contact_us.php with the code for processing

3. Now in templates add the template: probably best to copy one and modify it.
example:
create and add templates/_system/miscellaneous/contact_form.tpl
email_control.tpl ->copied from contactus
email_control.php ->copied from contactus
EmialControlForm.php ->copied from contactus
AdminNotifications.php -> added function for notification
admin_email_control_form_message.tpl -> copied from the contactus template
ObjectMother.php -> added CreateTemplate function

Advertisement

1 comment

  1. The help above is just my notes while creating a module to send admin all the user information when users register. Employers and Job Seekers.

Leave a Reply

Bookmark & Share