as far I can understand :
there is two different behaviors :
- comment_form plugin:
if you check 'show' or 'require' for adress_fields options, adress fields are displayed in comment form, even if userAddressField plugin is not enabled.
- register_user plugin:
if you check 'show' or 'require' for adress_fields options, you have to enable userAddressField plugin to see them in register page.
according to me, it should be a common behavior (maybe the 2nd one).
with this 2nd behavior, it should a notice in admin>options>plugins mentionning something like:
Quote:Address fields are handled by the userAddressField. you have to enable this plugin if 'show' or 'require' options are checked.
Finally, I do not understand the usefulness of this code in zp-core/zp-extentions/register_user/register_user_form.php, lines 91 to 113 :
`
$html = zp_apply_filter('register_user_form', '');
if (!empty($html)) {
$rows = explode('</tr>', $html);
foreach ($rows as $row) {
if (!empty($row)) {
$row = str_replace('<tr>', '', $row);
$elements = explode('</td>', $row);
$col1 = trim(str_replace(array('<td>', ':'), '', $elements[0]));
if (count($elements) == 1) { // new style form
echo $col1;
} else { // old table style form
$col2 = str_replace('size="40"', 'size="' . TEXT_INPUT_SIZE . '"', $elements[1]);
$col2 = str_replace('class="inputbox"', '', $input);
?>
<label><?php echo $col1; ?></label>
<?php echo trim(str_replace('<td>', '', $col2)); ?>
<?php
}
}
}
}
`