46 case COMMENTS_APPROVEALL:
49 case COMMENTS_APPROVEUSER:
52 case COMMENTS_APPROVEADMIN:
61 $subject_icons = XoopsLists::getSubjectsList();
62 foreach ($subject_icons as $iconfile) {
63 $icons_radio->addOption($iconfile,
'<img src="' . \
XoopsBaseConfig::get(
'url') .
'/images/subject/' . $iconfile .
'" alt="" />');
68 if (class_exists(
'Xoops\Form\Editor')) {
71 'value' => $obj->
getVar(
'text',
'e'),
87 $noname = $obj->
getVar(
'noname',
'e') ? 1 : 0;
90 $option_tray->addElement($noname_checkbox);
92 if (
false !=
$xoops->user->isAdmin($obj->
getVar(
'modid'))) {
94 if ($obj->
getVar(
'id',
'e')) {
104 if (isset(
$editor) && in_array(
$editor, array(
'textarea',
'dhtmltextarea'))) {
107 $option_tray->addElement($html_checkbox);
111 if (isset(
$editor) && in_array(
$editor, array(
'textarea',
'dhtmltextarea'))) {
116 $option_tray->addElement($smiley_checkbox);
119 $option_tray->addElement($xcode_checkbox);
120 if (isset(
$editor) && in_array(
$editor, array(
'textarea',
'dhtmltextarea'))) {
123 $option_tray->addElement($br_checkbox);
137 $this->
addElement(
new Xoops\Form\Hidden(
'com_order', Request::getInt(
'com_order',
$helper->getUserConfig(
'com_order'))));
138 $this->
addElement(
new Xoops\Form\Hidden(
'com_mode', Request::getString(
'com_mode',
$helper->getUserConfig(
'com_mode'))));
141 if (!
$xoops->isAdminSide) {
143 $plugin = \Xoops\Module\Plugin::getPlugin(
$dirname,
'comments');
144 if (is_array($extraParams = $plugin->extraParams())) {
146 foreach ($extraParams as $extra_param) {
148 if (isset($_POST[$extra_param])) {
149 $hidden_value =
$myts->stripSlashesGPC($_POST[$extra_param]);
151 if (isset($_GET[$extra_param])) {
152 $hidden_value =
$myts->stripSlashesGPC($_GET[$extra_param]);
const _MD_COMMENTS_DOSMILEY
const _MD_COMMENTS_ACTIVE
const _MD_COMMENTS_DOAUTOWRAP
const _MD_COMMENTS_PENDING
const _MD_COMMENTS_COMAPPROVEADMIN
const _MD_COMMENTS_DOHTML
const _MD_COMMENTS_MESSAGE
const _MD_COMMENTS_DOXCODE
getVar($key, $format= 's')
const _MD_COMMENTS_HIDDEN
const _MD_COMMENTS_POSTCOMMENT
const _MD_COMMENTS_COMAPPROVEUSER
const _MD_COMMENTS_COMRULES
const E_NO_ACCESS_PERMISSION
const _MD_COMMENTS_COMAPPROVEALL
const _MD_COMMENTS_STATUS