I'm looking to change the DOB box to include a Calendar popup... Where would I edit the form details to enable something like this?![]()
I'm looking to change the DOB box to include a Calendar popup... Where would I edit the form details to enable something like this?![]()
tpl_modules_create_account.php
You might also want to take a look at the add-on that replaces the DOB text field by a series of drop down menus.
Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)
That code snippet is called from line 140 of tpl_modules_create_account.php, but I suspect that's not really the question that you meant to ask. I recommend rephrasing.
As to the second question, I'm getting a headache just thinking about all the different ways that it could be answered. Before my head explodes, could you indicate more specifically the type of options about which you are thinking.
Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)
Sorry, where is the hardcoded form stuff located? zen_draw_input_field, etc.
And how do I know what the extras mean, like ('dob','', 'id="dob"'), etc. some of these might need changing to get the calendar pop up working.
There isn't any hard-coded form stuff. zen_draw_input_field is a function defined in function/html_output.php.
It's full structure iswhere $name is the name of the field and can be almost anything that you wish, $value (if set) is the initial value, $parameters is used to add attributes such as an id or class, $type = 'text' (usually) or 'password' (occasionally) and $re-insert_value would be used if the form was not processed for some reason.zen_draw_input_field($name, $value, $parameters, $type, $reinsert_value)
In most cases you can leave the last two parameters off. The aim of the function is to output the entire html needed for an input field, and there are other functions in the same file such as zen_draw_pull_down_menu to draw other types of form field.
Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)