Results 1 to 9 of 9

Thread: changing requied fields

  1. #1
    vakil is offline Registered User
    Join Date
    Sep 2002
    Posts
    26

    Default changing requied fields

    Hi,

    when adding a site a category. The fields Contact Name and Email are required fields. I would like to make these fields optional. Any idea how?
    Last edited by vakil; 10-02-2002 at 07:33 AM.

  2. #2
    sofiah is offline Active Member
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    211

    Default

    Close line 95-96 in add.php like this :
    PHP Code:
    //elseif(empty($contact_name)) $error_msg = $msg["10104"];
    //elseif(empty($email)) $error_msg = $msg["10105"]; 
    Sofiah

  3. #3
    vakil is offline Registered User
    Join Date
    Sep 2002
    Posts
    26

    Default

    Hi,

    thank you its working

    I think line 97 should also be commented.

  4. #4
    vakil is offline Registered User
    Join Date
    Sep 2002
    Posts
    26

    Default

    I'm having a problem now,

    the link gets added to the category without approval of admin or editor.

    i've commented line 97 because it validates the email field when there is no email

  5. #5
    vakil is offline Registered User
    Join Date
    Sep 2002
    Posts
    26

    Default

    I don't know what's happening,

    even when I remove the comments the link gets added with out approval of admin or editor.

  6. #6
    vakil is offline Registered User
    Join Date
    Sep 2002
    Posts
    26

    Default

    oh shoot!

    my mistake. For that category I had chosen the pref. to add links with editor approval.

    sorry!

  7. #7
    gorillabaseball is offline Registered User
    Join Date
    May 2007
    Posts
    6

    Default Now

    I see the codes but what next, what do I do or edit it to make the contact name and email address optional when posting a listing??

  8. #8
    dody is offline Administrator
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,731

    Default

    it's an old thread. However in 5.4.0, it's line 224-227, put the red codes below

    Code:
     /*elseif (empty($contact_name))
          $error_msg = $msg["10104"];
        elseif (empty($email))
          $error_msg = $msg["10105"];*/

  9. #9
    gorillabaseball is offline Registered User
    Join Date
    May 2007
    Posts
    6

    Default

    Dody, I changed it, but now when submitting the list I get a red warning on top: Invalid email address pattern

Similar Threads

  1. Add Fields To Submit form
    By 4webmasters in forum v5.x
    Replies: 2
    Last Post: 06-18-2004, 12:37 AM
  2. Replies: 4
    Last Post: 05-28-2003, 07:39 AM
  3. More fields in idx_category ??
    By Frank71 in forum v5.x
    Replies: 4
    Last Post: 03-22-2003, 04:31 AM
  4. Add fields to Detail Page?
    By awebb1 in forum Pre-Sales Questions
    Replies: 5
    Last Post: 09-08-2002, 03:45 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
  •