CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Custom Registration Page Help
Pages: [1]

Author Topic: Custom Registration Page Help  (Read 1079 times)

tjjansma

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 3.1
  • CMS version: Drupal 6
  • MySQL version: 5.1.41
  • PHP version: 5
Custom Registration Page Help
November 02, 2011, 08:20:09 am
Hi everyone,
I hope you can help me.  This custom module was created by a third party and subsequently when I moved our site from staging, school_affiliation and school_role are not showing up in the registration page. I can find no reference to either of these fields in the staging database, the production database or in the custom fields.  I'm new to custom forms in Civi and I'm sure I'm missing a piece of the puzzle.  We are running Drupal 6, CiviCRM 3.1, and MYSQL 5.1.41.  I will be upgrading everything, but this is a must fix before upgrades.

The first code is from the custom module and the second is from the modified Register.tpl file.  Thanks for your input.

Quote
  // For event which is paid and includes workshop profile add custom fields
  if ($formName == 'CRM_Event_Form_Registration_Register' &&
      $form->_values['custom_pre_id'] == $workshop_profile &&
      $form->_values['event']['is_monetary']) {
    $options = focusdc_civicrm_get_group_options($group_id);
    $form->addElement('select', 'school_affiliated', 'School affiliated with: ', array('' => 'Not affiliated with a school') + $options);
    $options = focusdc_civicrm_get_vsp_roles(TRUE);
    $form->addElement('select', 'school_role', 'Role: ', array('' => '<- select ->') + $options);
  }
Quote
{if $form.school_affiliation && $form.school_role}
<fieldset>
  <legend>{ts}Affiliation{/ts}</legend>
  {if $form.school_affiliation}
  <div class="section">
      <div class="label">{$form.school_affiliation.label}</div>
      <div class="content">{$form.school_affiliation.html}</div>
      <div class="clear"></div>
  </div>
  {/if}
  {if $form.school_role}
  <div class="section">
      <div class="label">{$form.school_role.label}</div>
      <div class="content">{$form<dot>school_role.html}</div>
      <div class="clear"></div>
  </div>
  {/if}
</fieldset>
{/if}

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Custom Registration Page Help
November 02, 2011, 12:38:12 pm
I don't think it will be possible to answer a question specific to your custom code without seeing all of the code, and your database.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

tjjansma

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 3.1
  • CMS version: Drupal 6
  • MySQL version: 5.1.41
  • PHP version: 5
Re: Custom Registration Page Help
November 02, 2011, 02:29:11 pm
Quote from: Hershel on November 02, 2011, 12:38:12 pm
I don't think it will be possible to answer a question specific to your custom code without seeing all of the code, and your database.

Thank you very much for your help.  Let me ask one quick question and then I'll be glad to post the files (although I'm not sure what you would need from the database).  I have a custom civicrm.module file and a custom Registry.tpl file.  Are there other files that would need to be modified for the registration page to function properly?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Custom Registration Page Help
November 03, 2011, 06:05:13 am
I don't think so but I can't know what other custom code might be on your site.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Custom Registration Page Help

This forum was archived on 2017-11-26.