Registration Form

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

  • acrylian Administrator, Developer
    Actually they are from the comment_form. I have no idea why that is so (I rarely use both plugins myself). Maybe my colleague has any idea.
  • acrylian Administrator, Developer
    Btw, forgot myself, this will be changed and be a separate plugin with 1.4.6 coming next year.
  • it can not be from the comment form because when i block some fields in the comments form like e.g. street then it does not show up in the comment form but does show in the registration form.
  • acrylian Administrator, Developer
    An 1.4.5.x and earlier it is. The user forms (and the accounts) do use them. You can disable the comment_from plugin to see they are gone then as well (unless it is loaded on request always).

    Anway, with 1.4.6 this will be separated as it should have been.
  • any estimate in which month 1.4.6 will be released.

    disabling the plugin removes all the fields. I am interested in blocking only 2 fields.
  • acrylian Administrator, Developer
    Sorry, no exact date yet (schedule was January 1st but we don't manage that), somewhere beginning of next year.
  • ok, till then:

    which file has the registration form. Its not contact and comment form as I have checked that.
  • The 1.4.6 release will not give you the option of blocking individual fields. That you will have to code.

    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.
  • Thanks for the info however I still cant understand one thing:

    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?
  • acrylian Administrator, Developer
    There is nothing implemented to disable individual fields on this. All or nothing.
  • ok, the file was in zp-extension / comment form / functions.php

    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
  • Where is the registration form?
  • acrylian Administrator, Developer
    If you mean how to login that's under `/admin` (assuming you are using modrewrite). If you mean for users to self register that's a plugin that also the theme used must support.
Sign In or Register to comment.