ZenphotoCMS Forum
Registration Form - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Registration Form (/thread-11506.html)



Registration Form - haroon - 2013-11-25

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




Registration Form - acrylian - 2013-11-25

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.




Registration Form - acrylian - 2013-11-25

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




Registration Form - haroon - 2013-11-27

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.




Registration Form - acrylian - 2013-11-27

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.




Registration Form - haroon - 2013-11-27

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.




Registration Form - acrylian - 2013-11-27

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




Registration Form - haroon - 2013-11-27

ok, till then:

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




Registration Form - sbillard - 2013-11-27

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.




Registration Form - haroon - 2013-11-28

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:




Registration Form - acrylian - 2013-11-28

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




Registration Form - haroon - 2013-11-29

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




Registration Form - kafarama - 2016-10-25

Where is the registration form?




Registration Form - acrylian - 2016-10-25

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.