+ Reply to Thread
Results 1 to 2 of 2

Thread: Picture Module - Picture required and limit size

  1. #1
    Join Date
    Jul 2010
    Posts
    11

    Unhappy Picture Module - Picture required and limit size

    Hello,

    I think the title is good and enought...

    But i want to put picture download label on requiered field and i want to limit the size (1Mb max)

    Thx

  2. #2
    Join Date
    Jul 2010
    Posts
    11

    Lightbulb Solution for required field image

    All right i found the solution for the required field and the error message if you need i put the tuto here...

    4 files modified :

    header.tpl :
    Find :
    PHP Code:
    }else { 
    Add above :
    PHP Code:
    }else if(retour == 'error108') {
    $(
    '#resultsubmitsh').html('<p class=\"pasgood\">{/literal}{$langi2}{literal}</p>'); 
    submit.php :
    Find :
    PHP Code:
    elseif($uploadedimage != ""
    Add above :
    PHP Code:
    elseif ($uploadedimage == "")
    {
        
    $error="108";
        echo 
    "error108";

    english.php, french.php and spanish.php :
    Find :
    PHP Code:
    $langi['2'] =  ""
    And replace by
    PHP Code:
    $langi['2'] =  "Error: field picture required, please select the file of your image (gif, jpg or png)";
    $langi['3'] =  ""
    Off course you need to translate each lang file. And you need to do this tuto after the install off the official module picture.

    See u and i'm waiting for my help verification size picture limite (1Mb)

    Loule

+ Reply to Thread

Tags for this Thread

Posting Permissions

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