Author Topic: [ HELP ] - More Required Fields  (Read 2932 times)

0 Members and 1 Guest are viewing this topic.

Offline matiasm

  • Pre-Newbie
  • Posts: 2
    • View Profile
[ HELP ] - More Required Fields
« on: February 02, 2011, 08:50:17 PM »
Hello. First,  apologize my English that isn't the best.

Them, I have a problem in my galery. When an user upload a photo, the gallery only ask to fill in the field of the file and title. I Want that Users who upload a photo fill the fields of "Imagen name", "Description of the image" and "Keywords".
So, How can I make that "Description image" and "keyword" become "Required fields"? Is there any MOD for that?

Thank you.
M.

Rembrandt

  • Guest
Re: [ HELP ] - More Required Fields
« Reply #1 on: February 02, 2011, 09:14:02 PM »
Welcome to the Forum!

search in root/member.php:
  if ($captcha_enable_upload && !captcha_validate($captcha)) 

insert above:
  if ($image_description == "")  {
    
$error 1;
    
$field_error preg_replace("/".$site_template->start."field_name".$site_template->end."/siU"str_replace(":"""$lang['description']), $lang['field_required']);
    
$msg .= (($msg != "") ? "<br />" "").$field_error;
  }
  if (
$image_keywords == "")  {
    
$error 1;
    
$field_error preg_replace("/".$site_template->start."field_name".$site_template->end."/siU"str_replace(":"""$lang['keywords_ext']), $lang['field_required']);
    
$msg .= (($msg != "") ? "<br />" "").$field_error;
  }


mfg Andi

Offline matiasm

  • Pre-Newbie
  • Posts: 2
    • View Profile
Re: [ HELP ] - More Required Fields
« Reply #2 on: February 03, 2011, 02:28:41 AM »
Thanks you very much!! I do it that and work. Again, thank you.