Considering both these modules aren't working, I feel It's because they clash.
If you're quite familiar with the international date format code, then here's the drop down menu code changes. If you could take a quick look to see if it clashes, that would be really appreciated:
**For Versions v1.2.3 and above:
Dropdown menu for dob when create an account. short and easy.
Only five files are changed:
/includes/templates/template_default/templates/tpl_login_default.php
/includes/templates/template_default/templates/tpl_create_account_default.php
/includes/modules/pages/create_account/header_php.php
/includes/modules/pages/account_edit/header_php.php
/includes/templates/template_default/templates/tpl_account_edit_default.php
/includes/modules/pages/create_account/header_php.php (around line 34)
/includes/modules/pages/account_edit/header_php.php (around line 32)
=======
FIND THIS CODE:
if (ACCOUNT_DOB == 'true') $dob = zen_db_prepare_input($_POST['dob']);
AND REPLACE WITH THIS CODE:
//MOD Date of Birth Dropdowns v1.0d
if (ACCOUNT_DOB == 'true') $dob = zen_db_prepare_input($_POST[dob_month] . '/' . $_POST[dob_day] . '/' . $_POST[dob_year]);
//MOD_eof Date of Birth Dropdowns v1.0d
======================================================================
/includes/templates/template_default/templates/tpl_create_account_default.php (around line 84)
/includes/templates/template_default/templates/tpl_login_default.php (around line 141)
======================================================================
FIND THIS CODE:
<td class="main"><?php echo zen_draw_input_field('dob') . '' . (zen_not_null(ENTRY_DATE_OF_BIRTH_TEXT) ? '<span class="inputRequirement">' . ENTRY_DATE_OF_BIRTH_TEXT . '</span>': ''); ?></td>
AND REPLACE WITH THIS CODE:
<?php //MOD Date of Birth Dropdowns v1.0d ?>
<td class="main">
<?php
for ($i=1; $i<32; $i++) {
$dob_day_array[] = array('id' => sprintf('%02d', $i), 'text' => sprintf('%02d', $i));
}
for ($i=1; $i<13; $i++) {
$dob_month_array[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B',mktime(0,0,0,$i,1,2000)));
}
$today = getdate();
$first_year = $today['year'] - 100;
$last_year = $today['year'] - 15;
for ($i=$first_year; $i < $last_year; $i++) {
$dob_year_array[] = array('id' => sprintf('%02d', $i), 'text' => sprintf('%02d', $i));
}
echo zen_draw_pull_down_menu('dob_month', $dob_month_array);
echo zen_draw_pull_down_menu('dob_day', $dob_day_array);
echo zen_draw_pull_down_menu('dob_year', $dob_year_array);
echo '' . (zen_not_null(ENTRY_DATE_OF_BIRTH_TEXT) ? '<span class="inputRequirement">' . ENTRY_DATE_OF_BIRTH_TEXT . '</span>': '');
?>
</td>
<?php //MOD_eof Date of Birth Dropdowns v1.0d ?>
======================================================================
/includes/templates/template_default/templates/tpl_account_edit_default.php (around line 65)
======================================================================
FIND THIS CODE:
<td class="main"><?php echo zen_draw_input_field('dob') . '' . (zen_not_null(ENTRY_DATE_OF_BIRTH_TEXT) ? '<span class="inputRequirement">' . ENTRY_DATE_OF_BIRTH_TEXT . '</span>': ''); ?></td>
AND REPLACE WITH THIS CODE:
<?php //MOD Date of Birth Dropdowns v1.0d ?>
<td class="main">
<?php
for ($i=1; $i<32; $i++) {
$dob_day_array[] = array('id' => sprintf('%02d', $i), 'text' => sprintf('%02d', $i));
}
for ($i=1; $i<13; $i++) {
$dob_month_array[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B',mktime(0,0,0,$i,1,2000)));
}
$today = getdate();
$first_year = $today['year'] - 100;
$last_year = $today['year'] - 15;
for ($i=$first_year; $i < $last_year; $i++) {
$dob_year_array[] = array('id' => sprintf('%02d', $i), 'text' => sprintf('%02d', $i));
}
$dob_raw = $account->fields['customers_dob'];
$dob_year_val = substr($dob_raw, 0, 4);
$dob_month_val = (int)substr($dob_raw, 5, 2);
$dob_day_val = (int)substr($dob_raw, 8, 2);
echo zen_draw_pull_down_menu('dob_month', $dob_month_array, $dob_month_val);
echo zen_draw_pull_down_menu('dob_day', $dob_day_array, $dob_day_val);
echo zen_draw_pull_down_menu('dob_year', $dob_year_array, $dob_year_val);
echo '' . (zen_not_null(ENTRY_DATE_OF_BIRTH_TEXT) ? '<span class="inputRequirement">' . ENTRY_DATE_OF_BIRTH_TEXT . '</span>': '');
?>
</td>
<?php //MOD_eof Date of Birth Dropdowns v1.0d ?>**