sure
fined the line 52 to 67, you will see this code
$contactName = $aItem['contactName'];
$contactEmail = $aItem['contactEmail'];
// Anonymous
if(!preg_match("/([a-z][^a-z]*){2}/i",$contactName)) {
$contactName = __("Anonymous");
}
// Validate
if ( !preg_match("/([a-z][^a-z]*){3}/i", current($aItem['title']) ) ||
!preg_match("/([a-z][^a-z]*){8}/i", current($aItem['description']) ) ||
!preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/",$contactEmail) ||
!preg_match("/^[0-9]+$/", $aItem['catId'] )) {
osc_add_flash_message( _m('Some fields were too short. Try again!') );
//osc_add_flash_message( _m('You need to insert your name and email to be able to publish a new item'));
$success = false;
change it to this
$contactName = $aItem['contactName'];
$contactEmail = $aItem['contactEmail'];
$adTitle = $aItem['title'];
$adTitle = current($adTitle);
$adDescription = $aItem['description'];
$adDescription = current($adDescription);
// Anonymous
if(!preg_match("/([a-z][^a-z]*){2}/i",$contactName)) {
$contactName = __("Anonymous");
}
// Validate (this give more control, and explain where the problem it was)
// Validate the Email address
if (!preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/",$contactEmail)) {
osc_add_flash_message( _m('You did not enter correct email address. Try again!') );
$success = false;
}
// Validate the ads title (it should be content more than 6 chars)
elseif (strlen($adTitle) < 6) {
osc_add_flash_message( _m('Check the title, may it is short. Then try again!') );
$success = false;
}
// Validate the description field (it should be content more than 50 chars)
elseif (strlen($adDescription) < 50) {
osc_add_flash_message( _m('Check the description field, may it is short. Then try again!') );
$success = false;
it's will work 100%
now I try to do some functions to make more control on the users inputs for all forms, if anybody can help it this theme too, I will be thx so much
and good luck