Member
Member
haroon   2013-11-25, 05:58
#1

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

Administrator
Administrator
acrylian   2013-11-25, 10:47
#2

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.

Administrator
Administrator
acrylian   2013-11-25, 19:16
#3

Btw, forgot myself, this will be changed and be a separate plugin with 1.4.6 coming next year.

Member
Member
haroon   2013-11-27, 15:11
#4

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.

Administrator
Administrator
acrylian   2013-11-27, 15:18
#5

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.

Member
Member
haroon   2013-11-27, 16:01
#6

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.

Administrator
Administrator
acrylian   2013-11-27, 16:16
#7

Sorry, no exact date yet (schedule was January 1st but we don't manage that), somewhere beginning of next year.

Member
Member
haroon   2013-11-27, 16:55
#8

ok, till then:

which file has the registration form. Its not contact and comment form as I have checked that.

Member
Member
sbillard   2013-11-27, 18:25
#9

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.

Member
Member
haroon   2013-11-28, 17:08
#10

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:

Administrator
Administrator
acrylian   2013-11-28, 18:06
#11

There is nothing implemented to disable individual fields on this. All or nothing.

Member
Member
haroon   2013-11-29, 13:08
#12

ok, the file was in zp-extension / comment form / functions.php

I removed the "$required" from the following code:

'
' . sprintf(gettext('Street%s'), $required) .'

And blocked the following:

  1. / 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

Junior Member
Junior Member
kafarama   2016-10-25, 04:40
#13

Where is the registration form?

Administrator
Administrator
acrylian   2016-10-25, 08:15
#14

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.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.