Like so:

Robin

Comments

robin monks’s picture

StatusFileSize
new237.6 KB

Attaching screenshot for those who will recieve this issue via email.

Robin

EmanueleQuinto’s picture

StatusFileSize
new66.8 KB

You can modify the code as follows:

Changing: MySQL table volunteer_contact_event

  ALTER TABLE `volunteer_contact_event`
  ADD `message` TEXT NULL DEFAULT NULL AFTER`comments`

Changing: volunteer_volunteer_form (v 1.58 2006/05/16 20:22:37 killes) line 674

    //Either an error occurred, or we haven't
    //done anything yet.
    $form['#action'] = url("volunteer/volunteer/$nid/$vid");
    $form['#method'] = 'post';
    $form['crm_form'] = array(
      '#value' => $crm_form,
    );
    $form['submit'] = array(
      '#type' => 'submit',
      '#value' => t('Volunteer'),
    );

to

    //Either an error occurred, or we haven't
    //done anything yet.
    $form['#action'] = url("volunteer/volunteer/$nid/$vid");
    $form['#method'] = 'post';
    $form['crm_form'] = array(
      '#value' => $crm_form,
    );
    $form['volunteer_message'] = array(
      '#type' => 'textarea',
      '#title' => t('Volunteer message'),
      '#cols' => 75,
      '#rows' => 5,
      '#description' => t('Message sent by the user to coordinator.'),
    );   
    $form['submit'] = array(
      '#type' => 'submit',
      '#value' => t('Volunteer'),
    );

Changing: volunteer_volunteer (v 1.58 2006/05/16 20:22:37 killes) line 582

      db_set_active();
      $stage = $wait_list ? 1 : 2;
      db_query('INSERT INTO {volunteer_contact_event} (cid, nid, vid, timestamp, stage)
         VALUES (%d, %d, %d, %d, %d)', $contact_id, $nid, $vid, time(), $stage);
      volunteer_mail($contact_id, $nid, $vid, 'new_volunteer');

to

      db_set_active();
      $stage = $wait_list ? 1 : 2;
      $msg = $edit[volunteer_message];
      db_query("INSERT INTO {volunteer_contact_event} (cid, nid, message, timestamp, stage)
         VALUES (%d, %d, '%s', %d, %d)", $contact_id, $nid,$msg, time(), $stage);
      volunteer_mail($contact_id, $nid, $vid, 'new_volunteer');

Attached a png with volunteer form modified. You can use the new field in table `volunteer_contact_event` for email to coordinator, volunteer list and so on.

ema