Fixed : Group options
This commit is contained in:
parent
efa96bea84
commit
c6513a4fe0
3 changed files with 14 additions and 4 deletions
|
@ -173,7 +173,9 @@ class CBGroups extends CBCategory
|
|||
'function_error_msg' => lang('user_contains_disallow_err'),
|
||||
'db_value_check_func'=> 'group_url_exists',
|
||||
'db_value_exists'=>false,
|
||||
'db_value_err'=>lang('grp_url_error2')
|
||||
'db_value_err'=>lang('grp_url_error2'),
|
||||
'min_length' => 3,
|
||||
'max_length' => 18,
|
||||
|
||||
);
|
||||
else
|
||||
|
@ -190,6 +192,8 @@ class CBGroups extends CBCategory
|
|||
'invalid_err'=>lang('grp_url_error'),
|
||||
'syntax_type'=> 'field_text',
|
||||
'function_error_msg' => lang('user_contains_disallow_err'),
|
||||
'min_length' => 3,
|
||||
'max_length' => 18,
|
||||
);
|
||||
|
||||
$fields = array
|
||||
|
@ -203,6 +207,7 @@ class CBGroups extends CBCategory
|
|||
'db_field'=>'group_name',
|
||||
'required'=>'yes',
|
||||
'invalid_err'=>lang('grp_name_error'),
|
||||
'max_length'=>config('grp_max_title')
|
||||
),
|
||||
'tags' => array(
|
||||
'title'=> lang('tag_title'),
|
||||
|
@ -227,7 +232,8 @@ class CBGroups extends CBCategory
|
|||
'extra_params'=>' rows="4" ',
|
||||
'db_field'=>'group_description',
|
||||
'invalid_err'=>lang('grp_des_error'),
|
||||
'required'=>'yes'
|
||||
'required'=>'yes',
|
||||
'max_length'=>config('grp_max_desc')
|
||||
|
||||
),
|
||||
$url_form,
|
||||
|
|
|
@ -288,6 +288,10 @@ else
|
|||
$cbpm->init();
|
||||
$lang_obj->init();
|
||||
$thisurl = curPageURL();
|
||||
//Setting Up Group Class
|
||||
$cbgroup->gp_thumb_width = config('grp_thumb_width');
|
||||
$cbgroup->gp_thumb_height = config('grp_thumb_height');
|
||||
|
||||
Assign('THIS_URL', $thisurl);
|
||||
|
||||
define("ALLOWED_GROUP_CATEGORIES",$row['grp_categories']);
|
||||
|
|
|
@ -2740,8 +2740,8 @@
|
|||
elseif(isset($max_len))
|
||||
{
|
||||
if($length > $max_len || $length < $min_len)
|
||||
e(sprintf(" please enter '%s' value between '%s' and '%s'",
|
||||
$title,$field['min_length'],$field['max_length']));
|
||||
e(sprintf(lang('please_enter_val_bw_min_max'),
|
||||
$title,$min_len,$field['max_length']));
|
||||
}elseif(function_exists($field['db_value_check_func']))
|
||||
{
|
||||
$db_val_result = $field['db_value_check_func']($val);
|
||||
|
|
Loading…
Add table
Reference in a new issue