The register_user plugin has options to show the following address fields:
Street, City, State, Country, Postal Code
Which file contains the the form for this?
e.g. the comment form is located in zp-core/zp-extensions/commentform/comment_form.php
where is the registration form?
zp-core/zp-extensions/register_user/register_user_form.php does not contain the address fields
Regards
Comments
Anway, with 1.4.6 this will be separated as it should have been.
disabling the plugin removes all the fields. I am interested in blocking only 2 fields.
which file has the registration form. Its not contact and comment form as I have checked that.
Anyway, there is no need for you to wait until 1.4.6 is released if you need its features. It is available as a branch on GitHub. But since it is not released you are strongly urged to test any version you download before making it go live.
Regarding the comment form we have in the "comment_form.php" file the following code:
<input <?php if($disabled['street']) echo 'READONLY'; ?> type="text" name="0-comment_form_street" id="0-comment_form_street" class="inputbox" size="22" value="<?php echo html_encode($stored['street']); ?>" />
But I cannot find anything of this sort for the registration form. Since the registration form displays this field when it is set to "required", it must be somewhere?
I removed the "$required" from the following code:
'<p>
<label for="comment_form_street">' . sprintf(gettext('Street%s'), $required) .'</label>
And blocked the following:
1) <!-- <input type="text" name="0-comment_form_street" id="comment_form_street" class="inputbox" size="40" value="' . @$address['street'] . '"> --> </p>
2) /* if (!isset($userinfo['street']) || empty($userinfo['street'])) {
$user->transient = true;
$user->msg .= ' ' . gettext('You must supply the street field.');
}*/
It works fine see: http://www.outzeal.com/index.php?p=register