mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +02:00
Added FAQ-count to cron. Correct faq_question field type. Increased number of FAQs per page in admin area.
This commit is contained in:
@@ -185,7 +185,7 @@ class faq_main_ui extends e_admin_ui
|
|||||||
protected $editQry = "SELECT * FROM #faqs WHERE faq_id = {ID}";
|
protected $editQry = "SELECT * FROM #faqs WHERE faq_id = {ID}";
|
||||||
|
|
||||||
protected $pid = "faq_id";
|
protected $pid = "faq_id";
|
||||||
protected $perPage = 5;
|
protected $perPage = 10;
|
||||||
protected $batchDelete = true;
|
protected $batchDelete = true;
|
||||||
protected $batchCopy = true;
|
protected $batchCopy = true;
|
||||||
protected $listOrder = 'faq_order ASC';
|
protected $listOrder = 'faq_order ASC';
|
||||||
@@ -196,7 +196,7 @@ class faq_main_ui extends e_admin_ui
|
|||||||
protected $fields = array(
|
protected $fields = array(
|
||||||
'checkboxes' => array('title'=> '', 'type' => null, 'width' =>'5%', 'forced'=> TRUE, 'thclass'=>'center', 'class'=>'center'),
|
'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_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_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),
|
'faq_parent' => array('title'=> LAN_CATEGORY, 'tab' => 0, 'type' => 'dropdown', 'data'=> 'int', 'inline'=>true,'width' => '10%', 'filter'=>TRUE, 'batch'=>TRUE),
|
||||||
|
|
||||||
|
@@ -56,14 +56,14 @@
|
|||||||
$link = $tp->replaceConstants("{e_PLUGIN}faqs/admin_config.php?searchquery=&filter_options=faq_author__0&mode=main&action=list", 'full');
|
$link = $tp->replaceConstants("{e_PLUGIN}faqs/admin_config.php?searchquery=&filter_options=faq_author__0&mode=main&action=list", 'full');
|
||||||
|
|
||||||
$eml = array(
|
$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_email' => $email,
|
||||||
'sender_name' => SITENAME . " Automation",
|
'sender_name' => SITENAME . " Automation",
|
||||||
// 'replyto' => $email,
|
// 'replyto' => $email,
|
||||||
'html' => true,
|
'html' => true,
|
||||||
'template' => 'default',
|
'template' => 'default',
|
||||||
'body' => "
|
'body' => "
|
||||||
<h2>Unuanswered Questions at ".SITENAME."</h2>To answer these questions, please login to ".SITENAME." and then <a href='{$link}'>click here</a>.<br />
|
<h2>".count($existing)." Unuanswered Questions at ".SITENAME."</h2>To answer these questions, please login to ".SITENAME." and then <a href='{$link}'>click here</a>.<br />
|
||||||
<ul><li>".implode("</li><li>",$questions)."</li></ul>"
|
<ul><li>".implode("</li><li>",$questions)."</li></ul>"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
CREATE TABLE faqs (
|
CREATE TABLE faqs (
|
||||||
faq_id int(10) unsigned NOT NULL auto_increment,
|
faq_id int(10) unsigned NOT NULL auto_increment,
|
||||||
faq_parent int(10) unsigned NOT NULL default '0',
|
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_answer text NOT NULL,
|
||||||
faq_comment tinyint(1) unsigned NOT NULL default '0',
|
faq_comment tinyint(1) unsigned NOT NULL default '0',
|
||||||
faq_datestamp int(10) unsigned NOT NULL default '0',
|
faq_datestamp int(10) unsigned NOT NULL default '0',
|
||||||
|
Reference in New Issue
Block a user