@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | define('_AM_NEWBB_DIGEST_HELP_4', 'After creating and sending, do not delete the created messages. Otherwise they will be generated again.'); |
| 77 | 77 | define( |
| 78 | 78 | '_AM_NEWBB_DIGEST_HELP_AUTO_DIGEST', |
| 79 | - 'To configure the automatic creation and distribution of Digest topics, you need to create a cron task on your server.<br>For example: * NIX systems: <strong>0 6 * * * wget --post-data \'foo=bar\' https://example.com/modules/newbb/digest.php</strong><br>In this example, the script will run every day at 6.00 and check if there are any new Digest topics. If they are not found, mailing will not be done.<br>If for any reason you do not have the opportunity to create a task, then it is possible to create and make the dispatch on this page manually by clicking on the button above.<br>Please note that it is not recommended to delete created mailings, otherwise they will be created and sent again.' |
|
| 79 | + 'To configure the automatic creation and distribution of Digest topics, you need to create a cron task on your server.<br>For example: * NIX systems: <strong>0 6 * * * wget --post-data \'foo=bar\' https://example.com/modules/newbb/digest.php</strong><br>In this example, the script will run every day at 6.00 and check if there are any new Digest topics. If they are not found, mailing will not be done.<br>If for any reason you do not have the opportunity to create a task, then it is possible to create and make the dispatch on this page manually by clicking on the button above.<br>Please note that it is not recommended to delete created mailings, otherwise they will be created and sent again.' |
|
| 80 | 80 | ); |
| 81 | 81 | //define('_AM_NEWBB_DIGEST_PAST', '<span style="color:red;">Should be sent out %d minutes ago</span>'); |
| 82 | 82 | //define('_AM_NEWBB_DIGEST_NEXT', 'Need to send out in %d minutes'); |
@@ -325,30 +325,30 @@ discard block |
||
| 325 | 325 | // Help tab |
| 326 | 326 | define( |
| 327 | 327 | '_AM_NEWBB_HELP_CATEGORY_TAB', |
| 328 | - 'To create a category, use the button above and fill in all the fields on the form.<br>By default, category images are located: /modules/newbb/assets/images/category/<br>Sponsor link should be written in the following format: https://xoops.org/modules/newbb/ newBB Support. First the link, then the sponsor\'s name or other text.' |
|
| 328 | + 'To create a category, use the button above and fill in all the fields on the form.<br>By default, category images are located: /modules/newbb/assets/images/category/<br>Sponsor link should be written in the following format: https://xoops.org/modules/newbb/ newBB Support. First the link, then the sponsor\'s name or other text.' |
|
| 329 | 329 | ); |
| 330 | 330 | define( |
| 331 | 331 | '_AM_NEWBB_HELP_FORUM_TAB', |
| 332 | - 'To create and manage the forums use the buttons with the right<br>To create the forum, use the \'Create forum\' button. Then fill in all the fields of the form. You can also create a subforum.<br>To move the forum between categories, use the \'Move\' button. Follow the further instructions.<br>To merge forums, use the \'Merge\' button. Follow the further instructions.<br>If you have an access rights template, then you can apply it to the forum you are creating.' |
|
| 332 | + 'To create and manage the forums use the buttons with the right<br>To create the forum, use the \'Create forum\' button. Then fill in all the fields of the form. You can also create a subforum.<br>To move the forum between categories, use the \'Move\' button. Follow the further instructions.<br>To merge forums, use the \'Merge\' button. Follow the further instructions.<br>If you have an access rights template, then you can apply it to the forum you are creating.' |
|
| 333 | 333 | ); |
| 334 | 334 | define( |
| 335 | 335 | '_AM_NEWBB_HELP_PERMISSION_TAB', |
| 336 | - '<strong>When setting permissions, be careful.</strong><br>After you install and apply the settings, you will automatically go to the next permissions tab.<br>Also here it is possible to create a default access rights template and apply it either to one forum or to all forums.' |
|
| 336 | + '<strong>When setting permissions, be careful.</strong><br>After you install and apply the settings, you will automatically go to the next permissions tab.<br>Also here it is possible to create a default access rights template and apply it either to one forum or to all forums.' |
|
| 337 | 337 | ); |
| 338 | 338 | define('_AM_NEWBB_HELP_ORDER_TAB', 'Allows you to set the order of categories and forums relative to each other.<br>The order (Weight) is set to 0 - top, 99 (and further) - bottom.'); |
| 339 | 339 | define('_AM_NEWBB_HELP_PRUNE_TAB', 'Allows you to clear forums from empty themes, obsolete themes, etc.<br>Also you can not delete topics that you want to clear, but transfer them to a specially created category \'Archive\' or any other.'); |
| 340 | 340 | define( |
| 341 | 341 | '_AM_NEWBB_HELP_REPORT_TAB', |
| 342 | - 'Allows you to process reports that users send to you if they believe that the message on the forum does not comply with forum rules or ethical rules.<br>You can review the report and take action in relation to the message, the author, etc.<br>When a user sends a message, moderators and administrators are notified by e-mail.' |
|
| 342 | + 'Allows you to process reports that users send to you if they believe that the message on the forum does not comply with forum rules or ethical rules.<br>You can review the report and take action in relation to the message, the author, etc.<br>When a user sends a message, moderators and administrators are notified by e-mail.' |
|
| 343 | 343 | ); |
| 344 | 344 | define('_AM_NEWBB_HELP_VOTE_TAB', 'If you have the voting function enabled, here you can see the results of the voting.<br>This vote is not associated with other XOOPS modules.'); |
| 345 | 345 | define( |
| 346 | 346 | '_AM_NEWBB_HELP_TYPE_TAB', |
| 347 | - 'Allows you to create tags for highlighting themes. For example:<br><strong style="color:blue;">[Important]</strong> <strong>Topic Title</strong><br><strong style="color:red;">[ATTENTION]</strong> <strong>Topic Title</strong><br>You can set theme types when creating a theme on the user side.' |
|
| 347 | + 'Allows you to create tags for highlighting themes. For example:<br><strong style="color:blue;">[Important]</strong> <strong>Topic Title</strong><br><strong style="color:red;">[ATTENTION]</strong> <strong>Topic Title</strong><br>You can set theme types when creating a theme on the user side.' |
|
| 348 | 348 | ); |
| 349 | 349 | define( |
| 350 | 350 | '_AM_NEWBB_HELP_GROUPMOD_TAB', |
| 351 | - 'Allows you to install users of certain groups as moderators for the entire module, and for individual categories and forums.<br>It is recommended to create separate groups of moderators, for more convenient management of moderators.<br>You can also assign specific users to moderators when creating a forum.' |
|
| 351 | + 'Allows you to install users of certain groups as moderators for the entire module, and for individual categories and forums.<br>It is recommended to create separate groups of moderators, for more convenient management of moderators.<br>You can also assign specific users to moderators when creating a forum.' |
|
| 352 | 352 | ); |
| 353 | 353 | define('_AM_NEWBB_HELP_SYNC_TAB', 'If you notice a problem with the message dates, the appearance of blank messages, etc. Here you can synchronize and correct forum data and topics'); |
| 354 | 354 | |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | define('_MI_NEWBB_DIR_ATTACHMENT', 'Attachments physical path.'); |
| 44 | 44 | define( |
| 45 | 45 | '_MI_NEWBB_DIR_ATTACHMENT_DESC', |
| 46 | - "Physical path only needs to be set from your xoops root and not before, for example you may have attachments uploaded to www.yoururl.com/uploads/newbb the path entered would then be '/uploads/newbb' never include a trailing slash '/' the thumbnails path becomes '/uploads/newbb/thumbs'" |
|
| 46 | + "Physical path only needs to be set from your xoops root and not before, for example you may have attachments uploaded to www.yoururl.com/uploads/newbb the path entered would then be '/uploads/newbb' never include a trailing slash '/' the thumbnails path becomes '/uploads/newbb/thumbs'" |
|
| 47 | 47 | ); |
| 48 | 48 | define('_MI_NEWBB_PATH_MAGICK', 'Path for ImageMagick'); |
| 49 | 49 | define('_MI_NEWBB_PATH_MAGICK_DESC', "Usually it is '/usr/bin/X11'. Leave it BLANK if you do not have ImageMagicK installed or for autodetecting."); |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | define('_MI_NEWBB_USERLEVEL', 'HP/MP/EXP Level Mode'); |
| 83 | 83 | define( |
| 84 | 84 | '_MI_NEWBB_USERLEVEL_DESC', |
| 85 | - '<strong>HP</strong> is determined by your average posts per day.<br><strong>MP</strong> is determined by your join date related to your post count.<br><strong>EXP</strong> goes up each time you post, and when you get to 100%, you gain a level and the EXP drops to 0 again.' |
|
| 85 | + '<strong>HP</strong> is determined by your average posts per day.<br><strong>MP</strong> is determined by your join date related to your post count.<br><strong>EXP</strong> goes up each time you post, and when you get to 100%, you gain a level and the EXP drops to 0 again.' |
|
| 86 | 86 | ); |
| 87 | 87 | define('_MI_NEWBB_RSS_ENABLE', 'Enable RSS Feed'); |
| 88 | 88 | define('_MI_NEWBB_RSS_ENABLE_DESC', 'Enable RSS Feed, edit options below for maximum Items and Description length'); |
@@ -22,15 +22,15 @@ |
||
| 22 | 22 | require_once __DIR__ . '/header.php'; |
| 23 | 23 | |
| 24 | 24 | foreach ([ |
| 25 | - 'forum', |
|
| 26 | - 'topic_id', |
|
| 27 | - 'post_id', |
|
| 28 | - 'order', |
|
| 29 | - 'pid', |
|
| 30 | - 'start', |
|
| 31 | - 'isreply', |
|
| 32 | - 'isedit' |
|
| 33 | - ] as $getint) { |
|
| 25 | + 'forum', |
|
| 26 | + 'topic_id', |
|
| 27 | + 'post_id', |
|
| 28 | + 'order', |
|
| 29 | + 'pid', |
|
| 30 | + 'start', |
|
| 31 | + 'isreply', |
|
| 32 | + 'isedit' |
|
| 33 | + ] as $getint) { |
|
| 34 | 34 | ${$getint} = Request::getInt($getint, 0, 'POST'); |
| 35 | 35 | } |
| 36 | 36 | |
@@ -169,14 +169,14 @@ discard block |
||
| 169 | 169 | // Days selected by selbox (better error control :lol:) |
| 170 | 170 | $days = new \XoopsFormSelect(_AM_NEWBB_PRUNE_DAYS, 'days', null, 1, false); |
| 171 | 171 | $days->addOptionArray([ |
| 172 | - 604800 => _AM_NEWBB_PRUNE_WEEK, |
|
| 173 | - 1209600 => _AM_NEWBB_PRUNE_2WEEKS, |
|
| 174 | - 2592000 => _AM_NEWBB_PRUNE_MONTH, |
|
| 175 | - 5184000 => _AM_NEWBB_PRUNE_2MONTH, |
|
| 176 | - 10368000 => _AM_NEWBB_PRUNE_4MONTH, |
|
| 177 | - 31536000 => _AM_NEWBB_PRUNE_YEAR, |
|
| 178 | - 63072000 => _AM_NEWBB_PRUNE_2YEARS |
|
| 179 | - ]); |
|
| 172 | + 604800 => _AM_NEWBB_PRUNE_WEEK, |
|
| 173 | + 1209600 => _AM_NEWBB_PRUNE_2WEEKS, |
|
| 174 | + 2592000 => _AM_NEWBB_PRUNE_MONTH, |
|
| 175 | + 5184000 => _AM_NEWBB_PRUNE_2MONTH, |
|
| 176 | + 10368000 => _AM_NEWBB_PRUNE_4MONTH, |
|
| 177 | + 31536000 => _AM_NEWBB_PRUNE_YEAR, |
|
| 178 | + 63072000 => _AM_NEWBB_PRUNE_2YEARS |
|
| 179 | + ]); |
|
| 180 | 180 | $sform->addElement($days); |
| 181 | 181 | // START irmtfan remove hardcode db access |
| 182 | 182 | require_once $GLOBALS['xoops']->path('modules/' . $xoopsModule->getVar('dirname') . '/footer.php'); // to include js files |
@@ -228,14 +228,14 @@ discard block |
||
| 228 | 228 | |
| 229 | 229 | $hot_confirmation = new \XoopsFormSelect(_AM_NEWBB_PRUNE_HOT, 'hot', null, 1, false); |
| 230 | 230 | $hot_confirmation->addOptionArray([ |
| 231 | - '0' => 0, |
|
| 232 | - '5' => 5, |
|
| 233 | - '10' => 10, |
|
| 234 | - '15' => 15, |
|
| 235 | - '20' => 20, |
|
| 236 | - '25' => 25, |
|
| 237 | - '30' => 30 |
|
| 238 | - ]); |
|
| 231 | + '0' => 0, |
|
| 232 | + '5' => 5, |
|
| 233 | + '10' => 10, |
|
| 234 | + '15' => 15, |
|
| 235 | + '20' => 20, |
|
| 236 | + '25' => 25, |
|
| 237 | + '30' => 30 |
|
| 238 | + ]); |
|
| 239 | 239 | $sform->addElement($hot_confirmation); |
| 240 | 240 | |
| 241 | 241 | $sform->addElement(/*$radiobox*/ |
@@ -59,20 +59,20 @@ |
||
| 59 | 59 | $tree .= ' checked'; |
| 60 | 60 | } |
| 61 | 61 | $tree .= ' />' |
| 62 | - . $option['name'] |
|
| 63 | - . '<input type="hidden" name="' |
|
| 64 | - . $this->getName() |
|
| 65 | - . '[parents][' |
|
| 66 | - . $option['id'] |
|
| 67 | - . ']" value="' |
|
| 68 | - . implode(':', $parentIds) |
|
| 69 | - . '" /><input type="hidden" name="' |
|
| 70 | - . $this->getName() |
|
| 71 | - . '[itemname][' |
|
| 72 | - . $option['id'] |
|
| 73 | - . ']" value="' |
|
| 74 | - . htmlspecialchars($option['name'], ENT_QUOTES | ENT_HTML5) |
|
| 75 | - . "\" /><br>\n"; |
|
| 62 | + . $option['name'] |
|
| 63 | + . '<input type="hidden" name="' |
|
| 64 | + . $this->getName() |
|
| 65 | + . '[parents][' |
|
| 66 | + . $option['id'] |
|
| 67 | + . ']" value="' |
|
| 68 | + . implode(':', $parentIds) |
|
| 69 | + . '" /><input type="hidden" name="' |
|
| 70 | + . $this->getName() |
|
| 71 | + . '[itemname][' |
|
| 72 | + . $option['id'] |
|
| 73 | + . ']" value="' |
|
| 74 | + . htmlspecialchars($option['name'], ENT_QUOTES | ENT_HTML5) |
|
| 75 | + . "\" /><br>\n"; |
|
| 76 | 76 | } else { |
| 77 | 77 | $tree .= $prefix . $option['name'] . '<input type="hidden" id="' . $this->getName() . '[groups][' . $this->_groupId . '][' . $option['id'] . "]\" /><br>\n"; |
| 78 | 78 | } |
@@ -68,11 +68,11 @@ discard block |
||
| 68 | 68 | $op_select = new \XoopsFormSelect('', 'action'); |
| 69 | 69 | $op_select->setExtra('onchange="document.forms.actionform.submit()"'); |
| 70 | 70 | $op_select->addOptionArray([ |
| 71 | - 'no' => _SELECT, |
|
| 72 | - 'template' => _AM_NEWBB_PERM_TEMPLATE, |
|
| 73 | - 'apply' => _AM_NEWBB_PERM_TEMPLATEAPP, |
|
| 74 | - 'default' => _AM_NEWBB_PERM_SETBYGROUP |
|
| 75 | - ]); |
|
| 71 | + 'no' => _SELECT, |
|
| 72 | + 'template' => _AM_NEWBB_PERM_TEMPLATE, |
|
| 73 | + 'apply' => _AM_NEWBB_PERM_TEMPLATEAPP, |
|
| 74 | + 'default' => _AM_NEWBB_PERM_SETBYGROUP |
|
| 75 | + ]); |
|
| 76 | 76 | $opform->addElement($op_select); |
| 77 | 77 | $opform->display(); |
| 78 | 78 | |
@@ -141,10 +141,10 @@ discard block |
||
| 141 | 141 | $op_select = new \XoopsFormSelect('', 'action'); |
| 142 | 142 | $op_select->setExtra('onchange="document.forms.actionform.submit()"'); |
| 143 | 143 | $op_select->addOptionArray([ |
| 144 | - 'no' => _SELECT, |
|
| 145 | - 'template' => _AM_NEWBB_PERM_TEMPLATE, |
|
| 146 | - 'apply' => _AM_NEWBB_PERM_TEMPLATEAPP |
|
| 147 | - ]); |
|
| 144 | + 'no' => _SELECT, |
|
| 145 | + 'template' => _AM_NEWBB_PERM_TEMPLATE, |
|
| 146 | + 'apply' => _AM_NEWBB_PERM_TEMPLATEAPP |
|
| 147 | + ]); |
|
| 148 | 148 | $opform->addElement($op_select); |
| 149 | 149 | $opform->display(); |
| 150 | 150 | |
@@ -219,11 +219,11 @@ discard block |
||
| 219 | 219 | $op_select = new \XoopsFormSelect('', 'action'); |
| 220 | 220 | $op_select->setExtra('onchange="document.forms.actionform.submit()"'); |
| 221 | 221 | $op_select->addOptionArray([ |
| 222 | - 'no' => _SELECT, |
|
| 223 | - 'template' => _AM_NEWBB_PERM_TEMPLATE, |
|
| 224 | - 'apply' => _AM_NEWBB_PERM_TEMPLATEAPP, |
|
| 225 | - 'default' => _AM_NEWBB_PERM_SETBYGROUP |
|
| 226 | - ]); |
|
| 222 | + 'no' => _SELECT, |
|
| 223 | + 'template' => _AM_NEWBB_PERM_TEMPLATE, |
|
| 224 | + 'apply' => _AM_NEWBB_PERM_TEMPLATEAPP, |
|
| 225 | + 'default' => _AM_NEWBB_PERM_SETBYGROUP |
|
| 226 | + ]); |
|
| 227 | 227 | $opform->addElement($op_select); |
| 228 | 228 | $opform->display(); |
| 229 | 229 | |