Results 1 to 6 of 6

Thread: Minimum soze of the description

  1. #1
    Join Date
    Sep 2005
    Location
    Poland - Warsaw
    Posts
    342

    Default Minimum soze of the description

    I'd like to set up the minimum size of the description in add.html form - hwo can I do that ? The only what I found is count_characters in Smarty.

    Is there any SVN or Mod for it ?

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

    Default

    You could always add javascript to the form

  3. #3
    Join Date
    Jun 2006
    Posts
    33

    Default

    For minimum character try this code

    Code:
    on add.php find 
    
    elseif (empty($description))
      $error_msg = $msg["10103"];
    
    Then replace with 
    
    elseif (empty($description))
      $error_msg = $msg["10103"];
    elseif (strlen($description) < 500)
      $error_msg = "Description short,minimum is 500 characters";
    Let me know if you have an error.

  4. #4
    Join Date
    Sep 2005
    Location
    Poland - Warsaw
    Posts
    342

    Default

    LTFBWY

    It works ! BTW: I hate javascripts :P

  5. #5
    Join Date
    Jun 2006
    Posts
    33

    Default

    Glad the code work,by the way what the mean LTFBWY?

  6. #6
    Join Date
    Sep 2005
    Location
    Poland - Warsaw
    Posts
    342

    Default

    Let The Force Be With You

Similar Threads

  1. <%title%> and <%description%>
    By aladdin1 in forum v5.x
    Replies: 10
    Last Post: 12-15-2004, 08:21 AM
  2. Link Description
    By SKh in forum v5.x
    Replies: 1
    Last Post: 08-03-2004, 11:28 AM
  3. Replies: 0
    Last Post: 05-27-2003, 04:45 PM
  4. Template description
    By Frank71 in forum v3.2
    Replies: 0
    Last Post: 10-29-2002, 12:27 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
  •