Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2007
    Posts
    34
    Plugin Contributions
    0

    Default Create Account Changes

    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?

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Create Account Changes

    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)

  3. #3
    Join Date
    Jan 2007
    Posts
    34
    Plugin Contributions
    0

    Default Re: Create Account Changes

    Quote Originally Posted by kuroi View Post
    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.
    Ooooh thanks, I'll look into that :)

    I was looking through tpl_modules_create_account.php, but was wondering where zen_draw_input_field('dob','', 'id="dob"') was called from, and also what options are available to me without playing with the hardcoded stuff.

  4. #4
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Create Account Changes

    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)

  5. #5
    Join Date
    Jan 2007
    Posts
    34
    Plugin Contributions
    0

    Default Re: Create Account Changes

    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.

  6. #6
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Create Account Changes

    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 is
    zen_draw_input_field($name, $value, $parameters, $type, $reinsert_value)
    where $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.

    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)

 

 

Similar Threads

  1. Suddenly Create Account Page re-loads after account created.
    By voluntaryist.only in forum General Questions
    Replies: 7
    Last Post: 9 Aug 2013, 07:36 AM
  2. How to set/create another manager account than admin account?
    By andy_lau in forum Basic Configuration
    Replies: 1
    Last Post: 15 Apr 2009, 09:19 AM
  3. Create Account Info Changes
    By spiralmedia in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 27 Oct 2008, 10:22 PM
  4. Bypass create account success page and go to My Account instead?
    By dealbyethan.com in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 3 Dec 2007, 01:50 PM
  5. Replies: 59
    Last Post: 30 Dec 2006, 05:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg