diff --git a/e107_plugins/faqs/admin_config.php b/e107_plugins/faqs/admin_config.php index 2c9b50565..cb80cd4f4 100644 --- a/e107_plugins/faqs/admin_config.php +++ b/e107_plugins/faqs/admin_config.php @@ -238,6 +238,7 @@ class faq_main_ui extends e_admin_ui 'submit_question' => array('title'=> LANA_FAQ_PREF_2, 'tab'=>1, 'type'=>'userclass' ), 'submit_question_limit' => array('title'=> LANA_FAQ_PREF_4, 'tab'=>1, 'type'=>'number', 'data'=>'int', 'help'=>LANA_FAQ_PREF_HELP_1), 'submit_question_char_limit'=> array('title'=> LANA_FAQ_PREF_5, 'tab'=>1, 'type'=>'number', 'data'=>'int', 'help'=>LANA_FAQ_PREF_HELP_1, 'writeParms'=>array('max'=>255, 'default'=>255)), + 'submit_question_char_min'=> array('title'=> LANA_FAQ_PREF_24, 'tab'=>1, 'type'=>'number', 'data'=>'int', 'help'=>LANA_FAQ_PREF_HELP_1, 'writeParms'=> array('default'=> 20)), 'submit_question_language' => array('title'=> LANA_FAQ_PREF_6, 'tab'=>1, 'type'=>'dropdown' ), 'submit_question_acknowledgement'=> array('title'=> LANA_FAQ_PREF_7, 'tab'=>1, 'type'=>'textarea', 'help'=>LANA_FAQ_PREF_HELP_2), //new display tab diff --git a/e107_plugins/faqs/faqs_shortcodes.php b/e107_plugins/faqs/faqs_shortcodes.php index c1f44f294..0371da21a 100644 --- a/e107_plugins/faqs/faqs_shortcodes.php +++ b/e107_plugins/faqs/faqs_shortcodes.php @@ -30,6 +30,7 @@ class faqs_shortcodes extends e_shortcode private $share = false; private $datestamp = false; private $questionCharLimit = 255; + private $questionCharMin = 20; public $pref; public $tag; public $category; @@ -55,6 +56,11 @@ class faqs_shortcodes extends e_shortcode $this->questionCharLimit = intval($pref['submit_question_char_limit']); } + if(!empty($pref['submit_question_char_min'])) + { + $this->questionCharMin = intval($pref['submit_question_char_min']); + } + } // Simply FAQ count when needed. @@ -331,7 +337,7 @@ class faqs_shortcodes extends e_shortcode { $text .= $frm->open('faq-ask-question','post'); //TODO LAN ie. [x] character limit. - $text .= "