Results 1 to 9 of 9

Thread: Custom fields

  1. #1
    Join Date
    Mar 2005
    Posts
    8

    Default Custom fields

    Hi,

    I have read the custom fields documentation, but I am still struggling to come to terms with adding custom fields to the submit listing form.

    I have no problem creating the field, so it shows up on the submission form, but I can't work out how to make the extra information appear in the admin section.

    For example, say I wanted to add the extra field "address" in the submission form. I have created the table in the database "address", then added the following to add_form.html

    <tr class="tbl_normal">
    <td>Email</td>
    <td><input class=text3 type=text name=address size=40 value="<%address%>"></td>
    </tr>

    But what I can't work out is how to to get this "address information" to come up in both the "verify link" section of the admin area, and in the actual listings themselves.

    If anyone could help me out, it would be greatly appreciated.

    Thanks in advance!

  2. #2
    Join Date
    Mar 2005
    Posts
    8

    Default

    cmon guys...there's gotta be someone who can help me....please

  3. #3
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    Just to be sure, you must email support@nicecoder.com to receive official support for INDEXU. The forums are not the official form of support.

    well, all custom fields will automatically show up in the admin "validate" link section.

    how did you add the fields? thru the alter database feature of the admin control panel???

    if you used some other method, you will also need to add the same exact field in the same order to the idx_link_temp table.



    .
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  4. #4
    Join Date
    Mar 2005
    Posts
    8

    Default

    Thanks esm.

    Yep, I didn't mean the previous post in a bad way....I probably should have put a smiley on the end of it....

    I created the extra field "info" in the alter DB section of the control panel.
    Then I went into add_form.html and added the following
    <tr class="tbl_normal">
    <td>Info</td>
    <td><input class=text3 type=text name=address size=40 value="<%info%>"></td>
    </tr>

    I also deleted the WHOLE custom field section in the add_form.html section. I don't know if this is correct, but the commented section just above the code for custom fields said to delete it if you want to create a custom field.

    Is this correct...anything else I need to do?

  5. #5
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    Quote Originally Posted by zopm
    Thanks esm.

    Yep, I didn't mean the previous post in a bad way....I probably should have put a smiley on the end of it....
    I should have done the same as I did not mean for you to interpret my post in that way. I did not take either of your posts in bad way!


    Quote Originally Posted by zopm
    I also deleted the WHOLE custom field section in the add_form.html section. I don't know if this is correct, but the commented section just above the code for custom fields said to delete it if you want to create a custom field.

    Is this correct...anything else I need to do?
    why not just put it back and see what happens???

    did you edit any HTML files in the admin_tpl folder? the files there are used when you are in the admin control panel.

    should the following:
    Code:
    <input class=text3 type=text name=address size=40 value="<%info%>">
    be:
    Code:
    <input class=text3 type=text name=address size=40 value="<%address%>">

    .
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  6. #6
    Join Date
    Mar 2005
    Posts
    8

    Default

    Thanks esm for the help. Much appreciated.

  7. #7
    Join Date
    Apr 2005
    Posts
    4

    Default

    I have 2 questions on custom fields.

    1. where did you find the documentation on it? I could not find it in the manual.

    2. I wanted in input selection and tried the following in add_form_html

    <tr class="tbl_normal">
    <td>area</td>
    <td>
    <select class=text3 name=area>
    <option value=>all
    <option>dirt
    <option>street
    <option>atv
    <option>snow
    <option>water
    </select> (choose area, more specific = greater clicks)
    </td>
    </tr>

    But then on the Link input form (http://www.motopad.com/indexu/add.php?cat=61) I got two rows with title Area, and in the admin Edit Link Submission, the area value was not filled in.

  8. #8
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    remove the <%custom_field_form%> tag.

    that should take care of both problems.



    .
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  9. #9
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    Quote Originally Posted by motoman
    I have 2 questions on custom fields.

    1. where did you find the documentation on it? I could not find it in the manual.
    see the technotes: http://www.nicecoder.com/idx_technotes.php



    .
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

Similar Threads

  1. Replies: 1
    Last Post: 11-04-2003, 11:47 AM
  2. Replies: 4
    Last Post: 05-28-2003, 06:39 AM
  3. Ability to search custom fields
    By Hart_House in forum v3.2
    Replies: 1
    Last Post: 08-07-2002, 01:38 AM
  4. Are the custom fields searchable?
    By Phil Latio in forum v5.x
    Replies: 0
    Last Post: 02-04-2002, 10:16 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
  •