Page 1 of 2 12 LastLast
Results 1 to 15 of 21

Thread: Manually entering custom fields in add page

  1. #1
    Join Date
    Jan 2008
    Posts
    141

    Default Manually entering custom fields in add page

    Hello,

    I need to change the order my custom fields are displayed, but I'm not really sure what to code. I believe this is how to add standar text field:

    It showed up, is this correct?

    Code:
        <tr class="tbl_normal">
          <td>Original Movie Title</td>
          <td><input class="text3" type="text" name="title" size="40" value="<%$omtitle%>" /></td>
        </tr>
    Also I found another topic in this forum which talked about drop down menu...
    In this case in my admin panel the custom field is like this:
    field: caseformat
    Type: SELECT
    1|DVD
    2|CD
    Now, would this code be correct?

    Code:
        <tr class="tbl_normal">
           <td valign="top"><b>Format</b></td>
           <td><select name="caseformat">
           <option value='DVD' >DVD case</option>
           <option value='CD' >CD case</option>
           </select><br /></td>
        </tr>
    Last, could anyone tell me the code for thumbs upload and radio button?

    Thanks a lot

  2. #2
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    If you're creating a custom field that is a menu, you do not need to add html code, you simply call the custom field with the following

    <%$customfield%>

    So in your case you would use

    <tr class="tbl_normal">
    <td valign="top"><b>Format</b></td>
    <td><%$customfield%><br /></td>
    </tr>

  3. #3
    Join Date
    Jan 2008
    Posts
    141

    Default

    Do you mean that I should write this for every custom field that I have, and it will automaticly become the kind of form it's supposed to be?

    Code:
    <tr class="tbl_normal">
    <td valign="top"><b>Format</b></td>
    <td><%$customfield%><br /></td>
    </tr>

  4. #4
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    That's correct

  5. #5
    Join Date
    Jan 2008
    Posts
    141

    Default

    Hi,

    I just tried this, but what happens is that you can't write anything, all I see is the text in bold (in your example that would be "Format")...

    I removed the line <!-- <%$custom_field_form%> --> too...

  6. #6
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    Then you didn't add the custom fields in the admin panel

  7. #7
    Join Date
    Jan 2008
    Posts
    141

    Default

    Yes I did I have made all the custom fields...
    This is in the admin area:

    This is the add.php look:

    And this is the code I inserted:
    Code:
    <tr class="tbl_normal">
    <td valign="top"><b>Original movie title:</b></td>
    <td><%$omtitle%><br /></td>
    </tr>
    <tr class="tbl_normal">
    <td valign="top"><b>Thumb:</b></td>
    <td><%$thumbs%><br /></td>
    </tr>
    <tr class="tbl_normal">
    <td valign="top"><b>Covertype:</b></td>
    <td><%$covertype%><br /></td>
    </tr>
    <tr class="tbl_normal">
    <td valign="top"><b>Resolution (widthxheight):</b></td>
    <td><%$resolution%><br /></td>
    </tr>
    <tr class="tbl_normal">
    <td valign="top"><b>Size:</b></td>
    <td><%$size%><br /></td>
    </tr>
    <tr class="tbl_normal">
    <td valign="top"><b>Direct link 2</b></td>
    <td><%$link2%><br /></td>
    </tr>
    <tr class="tbl_normal">
    <td valign="top"><b>Direct link 3</b></td>
    <td><%$link3%><br /></td>
    </tr>
    <tr class="tbl_normal">
    <td valign="top"><b>Direct link 4</b></td>
    <td><%$link4%><br /></td>
    </tr>
    <tr class="tbl_normal">
    <td valign="top"><b>Direct link 5</b></td>
    <td><%$link5%><br /></td>
    </tr>
    <tr class="tbl_normal">
    <td valign="top"><b>Indirect link 1</b></td>
    <td><%$inlink1%><br /></td>
    </tr>
    <tr class="tbl_normal">
    <td valign="top"><b>Indirect link 2</b></td>
    <td><%$inlink2%><br /></td>
    </tr>
    <tr class="tbl_normal">
    <td valign="top"><b>Indirect link 3</b></td>
    <td><%$inlink3%><br /></td>
    </tr>
    <tr class="tbl_normal">
    <td valign="top"><b>Year:</b></td>
    <td><%$myear%><br /></td>
    </tr>
    <tr class="tbl_normal">
    <td valign="top"><b>Case Format:</b></td>
    <td><%$caseformat%><br /></td>
    </tr>
    <tr class="tbl_normal">
    <td valign="top"><b>Region code:</b></td>
    <td><%$region%><br /></td>
    </tr>
    <tr class="tbl_normal">
    <td valign="top"><b>Cover artist (only for custom):</b></td>
    <td><%$coverartist%><br /></td>
    </tr>
    <tr class="tbl_normal">
    <td valign="top"><b>IMDB.com URL:</b></td>
    <td><%$imdb%><br /></td>
    </tr>

  8. #8
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    I will assume you added all of these via the admin panel correct? If you did not and you added them via phpmyadmin to ONLY the idx_customfield table then they won't work.

    That's what it looks like to me right now, otherwise you are doing everything correctly.

  9. #9
    Join Date
    Jan 2008
    Posts
    141

    Default

    Yes I added all the custom fields in admin panel (I wouldn't know how to do it manually into the database either)

  10. #10
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    They should be working correctly then. All I can do now is to ask you to send me your admin login and phpmyadmin login (or cpanel) and I can check it for you. You can send it via PM or to support [at] nicecoder.com

  11. #11
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    Here's the question of the day. Did you clear your cache?

    Everything is working fine now

  12. #12
    Join Date
    Jan 2008
    Posts
    141

    Default

    No, I had set it back to auto custom field (because I have people submitting pages), I put up the non working code again now, check it out...

  13. #13
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    If you want me to look at it you can't do that. I'll check it now.

  14. #14
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    The code on the page is fine, whatever code you changed on add.php is most likely causing the issue. Change it back to default and check the page. If it works then this is confirmed.

  15. #15
    Join Date
    Jan 2008
    Posts
    141

    Default

    Hello,

    I'm afraid that didn't help either. I restored the original add_form file and then added the custom field code. Same thing happend now...

    EDIT 1: Just noticed you said add.php and not add_form, sorry, I'm going to try to restore the original add.php file right away and let you know the outcome.

    EDIT 2: Ok I did restore both the original add.php file and the original add_form.html. Unlucky, still not working...
    Last edited by Warz; 04-18-2008 at 02:40 PM.

Similar Threads

  1. How to Add Custom Fields?
    By Rob in forum Blocks and Modification
    Replies: 1
    Last Post: 08-01-2006, 03:41 AM
  2. Custom fields
    By juda13 in forum iDesk - Customer Service Helpdesk
    Replies: 0
    Last Post: 07-31-2006, 10:31 AM
  3. Replies: 15
    Last Post: 07-17-2006, 01:52 AM
  4. Custom Fields and Details Page
    By craven in forum v5.x
    Replies: 2
    Last Post: 08-04-2002, 09:45 PM
  5. Replies: 1
    Last Post: 06-24-2002, 06:23 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
  •