diff --git a/e107_plugins/faqs/admin_config.php b/e107_plugins/faqs/admin_config.php index a910bffc9..f11a372e8 100644 --- a/e107_plugins/faqs/admin_config.php +++ b/e107_plugins/faqs/admin_config.php @@ -185,7 +185,7 @@ class faq_main_ui extends e_admin_ui protected $editQry = "SELECT * FROM #faqs WHERE faq_id = {ID}"; protected $pid = "faq_id"; - protected $perPage = 5; + protected $perPage = 10; protected $batchDelete = true; protected $batchCopy = true; protected $listOrder = 'faq_order ASC'; @@ -196,7 +196,7 @@ class faq_main_ui extends e_admin_ui protected $fields = array( 'checkboxes' => array('title'=> '', 'type' => null, 'width' =>'5%', 'forced'=> TRUE, 'thclass'=>'center', 'class'=>'center'), 'faq_id' => array('title'=> LAN_ID, 'tab' => 0, 'type' => null, 'width' =>'5%', 'forced'=> TRUE), - 'faq_question' => array('title'=> LANA_FAQ_QUESTION, 'tab' => 0, 'type' => 'text', 'width' => 'auto', 'thclass' => 'left first', 'required'=>TRUE, 'readParms'=>'editable=1', 'writeParms'=>'size=block-level'), + 'faq_question' => array('title'=> LANA_FAQ_QUESTION, 'tab' => 0, 'type' => 'text', 'width' => 'auto', 'thclass' => 'left first', 'required'=>TRUE, 'readParms'=>'editable=1', 'writeParms'=>'maxlength=1000&size=block-level'), 'faq_answer' => array('title'=> LANA_FAQ_ANSWER, 'tab' => 0, 'type' => 'bbarea', 'width' => '30%', 'readParms' => 'expand=1&truncate=50&bb=1'), 'faq_parent' => array('title'=> LAN_CATEGORY, 'tab' => 0, 'type' => 'dropdown', 'data'=> 'int', 'inline'=>true,'width' => '10%', 'filter'=>TRUE, 'batch'=>TRUE), diff --git a/e107_plugins/faqs/e_cron.php b/e107_plugins/faqs/e_cron.php index e05f01d13..874e6d94d 100644 --- a/e107_plugins/faqs/e_cron.php +++ b/e107_plugins/faqs/e_cron.php @@ -56,14 +56,14 @@ $link = $tp->replaceConstants("{e_PLUGIN}faqs/admin_config.php?searchquery=&filter_options=faq_author__0&mode=main&action=list", 'full'); $eml = array( - 'subject' => "Unuanswered Question as of ".date('d-M-Y')." ", + 'subject' => count($existing)." Unuanswered Question as of ".date('d-M-Y')." ", // 'sender_email' => $email, 'sender_name' => SITENAME . " Automation", // 'replyto' => $email, 'html' => true, 'template' => 'default', 'body' => " -

Unuanswered Questions at ".SITENAME."

To answer these questions, please login to ".SITENAME." and then click here.
+

".count($existing)." Unuanswered Questions at ".SITENAME."

To answer these questions, please login to ".SITENAME." and then click here.
" ); diff --git a/e107_plugins/faqs/faqs_sql.php b/e107_plugins/faqs/faqs_sql.php index b45ef3d74..c0fd1ded9 100644 --- a/e107_plugins/faqs/faqs_sql.php +++ b/e107_plugins/faqs/faqs_sql.php @@ -1,7 +1,7 @@ CREATE TABLE faqs ( faq_id int(10) unsigned NOT NULL auto_increment, faq_parent int(10) unsigned NOT NULL default '0', - faq_question mediumtext NOT NULL, + faq_question text NOT NULL, faq_answer text NOT NULL, faq_comment tinyint(1) unsigned NOT NULL default '0', faq_datestamp int(10) unsigned NOT NULL default '0',