Author Topic: Field description and keywords  (Read 5236 times)

0 Members and 1 Guest are viewing this topic.

Offline clubbu

  • Newbie
  • *
  • Posts: 47
    • View Profile
Field description and keywords
« on: September 05, 2011, 09:20:53 AM »
Hello,

you can make the fields required in the description and keywords?

Rembrandt

  • Guest
Re: Field description and keywords
« Reply #1 on: September 05, 2011, 04:08:42 PM »
Hi!

search in member.php 2x times:

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

insert below:

  
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']), $lang['field_required']);
    
$msg .= (($msg != "") ? "<br />" "").$field_error;
  }


mfg Andi

Offline clubbu

  • Newbie
  • *
  • Posts: 47
    • View Profile
Re: Field description and keywords
« Reply #2 on: September 06, 2011, 08:29:04 AM »
Gooddd