Jon Stovell (talk | contribs) (Reorganized, added some stuff, removed one or two outdated statements) |
|||
(79 intermediate revisions by 11 users not shown) | |||
Line 1: | Line 1: | ||
{{ambox | text = This page is a work in progress of the new features that | {{ambox | text = This page is a work in progress of the new features that are available in SMF 2.1}} | ||
{{TOCright}} | |||
{{needs_work|Proofread}} | |||
== New features for users == | == New features for users == | ||
* A new WYSIWYG editor [http://www.sceditor.com/ SCEditor] | * A new WYSIWYG editor [http://www.sceditor.com/ SCEditor] | ||
* HTML5 attachment uploading (including drag and drop) | * HTML5 attachment uploading (including drag and drop) | ||
* Drafts | * Drafts | ||
* Likes | |||
* Mentions | |||
* Alerts for new likes, mentions, private messages, etc. | |||
* Event times and time zones in the Calendar | |||
* Time zone selection; manual hourly offsets are a thing of the past | |||
* Google ReCaptcha v2 | |||
== Security enhancements == | |||
* Password hashing is upgraded to [https://en.wikipedia.org/wiki/Bcrypt bcrypt] | |||
* Unique tokens for forms to help prevent [https://www.owasp.org/index.php/Cross-Site_Request_Forgery_(CSRF) CSRF attacks] | |||
* [https://en.wikipedia.org/wiki/Google_Authenticator Google Authenticator] for [https://en.wikipedia.org/wiki/Multi-factor_authentication two-factor logins] | |||
== New/improved features for mod authors == | == New/improved features for mod authors == | ||
* More powerful BBCode possibilities (a BBC's input parameters are now supplied to its validation function, allowing new possibilities for what a BBC can do with user input) | * More powerful BBCode possibilities (a BBC's input parameters are now supplied to its validation function, allowing new possibilities for what a BBC can do with user input) | ||
* Hooks, hooks, and more hooks! | * Hooks, hooks, and more hooks! | ||
* Background tasks | |||
* All create_function calls are now anonymous functions | |||
* db_* ddl function support now a good common set of datatypes a cross mysql and pg ([https://github.com/SimpleMachines/SMF2.1/pull/3636/files#diff-9407d0c2c623523a0d144c0af5dc1429 #3636], [https://github.com/SimpleMachines/SMF2.1/pull/3610/files #3610]) | |||
* db_insert can now return directly the ai values (@param int returnmode 0 = nothing(default), 1 = last row id, 2 = all rows id as array). It is no longer necessary to call db_insert_id | |||
* Alignment of mysql sql mode to provide the same mysql behaviour across the different versions and engine. Use the default mysql 5.7 [https://dev.mysql.com/doc/refman/5.7/en/faqs-sql-modes.html set] : ONLY_FULL_GROUP_BY, STRICT_TRANS_TABLES, NO_ZERO_IN_DATE, NO_ZERO_DATE, ERROR_FOR_DIVISION_BY_ZERO, NO_AUTO_CREATE_USER, NO_ENGINE_SUBSTITUTION | |||
* With build_query_board($userid) you can now simulate the access rights of a different user as the current. definition: Returns array with keys query_wanna_see_board and query_see_board; exp. for using: https://github.com/SimpleMachines/SMF2.1/pull/4288/files#diff-01cc3a672ae60fbabf662b0bb5727534 | |||
* db_create_table can now update existing table structure ([https://github.com/SimpleMachines/SMF2.1/pull/4335 #4335]) | |||
* With $smcFunc['db_custom_order'] you can define a custorm order for a row set, instead of using find_in_set ([https://github.com/SimpleMachines/SMF2.1/pull/4420 #4420]) | |||
* Implement housekeeping interface for Caching ([https://github.com/SimpleMachines/SMF2.1/pull/4446 #4446]) | |||
* Option to define when your css is loaded(loadCSSFile) ([https://github.com/SimpleMachines/SMF2.1/pull/4548 #4548]) | |||
* postRemoved now has a default implementation ([https://github.com/SimpleMachines/SMF2.1/pull/4712 #4712]) | |||
* sql ifnull is no longer supported. Use coalesce ([https://dev.mysql.com/doc/refman/8.0/en/comparison-operators.html#function_coalesce docu]) instead. | |||
* For handling access rights of boards board_permissions_view table was added and {query_see_board} was redefined ([https://github.com/SimpleMachines/SMF2.1/pull/4727 #4727]) | |||
* For advanced sql you can check now if the database supports [https://dev.mysql.com/doc/refman/8.0/en/with.html cte] use $smcFunc['db_cte_support']() ([https://github.com/SimpleMachines/SMF2.1/pull/4794 #4794]) | |||
* Allow multiple extensions for smileys ([https://github.com/SimpleMachines/SMF2.1/pull/4956 #4956]) | |||
* To hide html element use the hidden class instead of style="display: none; " ([https://github.com/SimpleMachines/SMF2.1/pull/5036 #5036]) | |||
== General improvements == | == General improvements == | ||
* Smart-emulation (the package manager is now able to propose a SMF version to emulate in order to install a mod) | * Smart-emulation (the package manager is now able to propose a SMF version to emulate in order to install a mod) | ||
* IPv6 support | * IPv6 support | ||
** New Ban Mask Format: 199.* or 199.0.0.0 - 199.255.255.255 or 199.*.*.* not allowed anymore 199.0-255.0-255.0-255 | |||
** Search for ip address in the memberlist works in the same format as Ban Mask Format | |||
* Detection of mobile devices | * Detection of mobile devices | ||
* Previews of several things are now available (Personal messages (now AJAX), news and newsletters, warning template and warnings, signature) | * Previews of several things are now available (Personal messages (now AJAX), news and newsletters, warning template and warnings, signature) | ||
* jQuery included by default | * jQuery included by default | ||
* PostgreSQL massive | |||
** Support for PG unlogged table, which was introduced in PG 9.1, and PG 9.5 insert ignore feature | |||
** Native IP used (inet) | |||
** Index Fulltext Search | |||
* PHP 8 support ([https://github.com/SimpleMachines/SMF2.1/issues/7209 PHP 8.1] probably with 2.1.2) | |||
* UTF-8 is now the standard format for the forum and language files | |||
* Curve2 is a responsive design, which is designed to work effectively, and to look good, on your computer, as well as on your phone or tablet | |||
== Administration, moderation, and security == | == Administration, moderation, and security == | ||
Line 28: | Line 65: | ||
* New tags for packages: <credits> (tag for inserting mod credits in to the credits page), <requires> (tag to basic mod dependency), <hooks> (tag to add / remove hooks) | * New tags for packages: <credits> (tag for inserting mod credits in to the credits page), <requires> (tag to basic mod dependency), <hooks> (tag to add / remove hooks) | ||
* PHPDoc (also needs to change the coding guidelines to reflect this) | * PHPDoc (also needs to change the coding guidelines to reflect this) | ||
* | * [http://www.php.net PHP] 7.0 or higher | ||
* Per board group moderators | * Per board group moderators | ||
* Moved number of required verification questions to the verification questions area of the admin panel [not in the CAPTCHA area] | * Moved number of required verification questions to the verification questions area of the admin panel [not in the CAPTCHA area] | ||
Line 55: | Line 92: | ||
* The header on the default theme can no longer be collapsed | * The header on the default theme can no longer be collapsed | ||
* Several changes in the Moderation Center including removal of the news block | * Several changes in the Moderation Center including removal of the news block | ||
* Image proxy housekeeping added ([https://github.com/SimpleMachines/SMF2.1/pull/4535 #4535]) | |||
* Cron can be called from the outside, disabled the inline cron call ([https://github.com/SimpleMachines/SMF2.1/pull/4692 #4692]) | |||
* Added backtrace to the error log ([https://github.com/SimpleMachines/SMF2.1/pull/4740 #4740]) | |||
* Added mb4 support for mysql ([https://github.com/SimpleMachines/SMF2.1/pull/4777 #4777]) | |||
* Show newest spider log items at top ([https://github.com/SimpleMachines/SMF2.1/pull/4847 #4847]) | |||
== Hooks == | == Hooks == | ||
* Many, many more hooks (a list will be posted later). | * Many, many more hooks (a list will be posted later, until then you can see a list [https://live627.github.io/smf-api-docs-test/hooks/all.html here]). | ||
* Allow mod authors the option to override the id theme without changing the url ([https://github.com/SimpleMachines/SMF2.1/pull/5005 #5005]) | |||
== Minor improvements == | == Minor improvements == | ||
* Preview of messages when hovering over the message subject on the message list. Enable on current theme page in admin, preview length is on the posts and topics page in admin | * Preview of messages when hovering over the message subject on the message list. Enable on current theme page in admin, preview length is on the posts and topics page in admin | ||
* Ability to disregard a topic and no longer have it show up in the unread lists | * Ability to disregard/ignore a topic and no longer have it show up in the unread lists | ||
* Ability to specify how long to keep moved topic notices before they are deleted (via scheduled task) | * Ability to specify how long to keep moved topic notices before they are deleted (via scheduled task) | ||
* Added categories for boards to membergroup's management pages | * Added categories for boards to membergroup's management pages (easier to use) | ||
* Post recount for members added to the maintenance menu | * Post recount for members added to the maintenance menu | ||
* Improved calendar export function | * Improved calendar export function | ||
* Better XML feeds (bug fixes, cleaner output, speed improvements) | * Better XML feeds (bug fixes, cleaner output, speed improvements) | ||
* Ignore/skip of short words (1 char) in search function | |||
* [flash] no longer embeds flash content even when the BBCode is enabled. It simply shows a link to the flash file instead. | |||
== Removals == | |||
* Core Features page | |||
** As a consequence, integrate_core_features has been removed as well | |||
* SQLite | |||
* WAP, WAP2, and IMODE | |||
* Old browser support; IE<9 not supported | |||
* PG<9.4 not supported | |||
* AIM | |||
* MySQL<5.0.22 and <5.1.10 not supported | |||
* Template evaluation. No more confusing error messages pertaining to templates and eval() | |||
* PHP <7.0 not supported | |||
[[Category:SMF version differences]] | [[Category:SMF version differences]] |
Latest revision as of 15:01, 3 April 2022
This page is a work in progress of the new features that are available in SMF 2.1 |
This article needs some work for the following reason: Proofread This template may be removed when cleanup is complete. |
New features for users
- A new WYSIWYG editor SCEditor
- HTML5 attachment uploading (including drag and drop)
- Drafts
- Likes
- Mentions
- Alerts for new likes, mentions, private messages, etc.
- Event times and time zones in the Calendar
- Time zone selection; manual hourly offsets are a thing of the past
- Google ReCaptcha v2
Security enhancements
- Password hashing is upgraded to bcrypt
- Unique tokens for forms to help prevent CSRF attacks
- Google Authenticator for two-factor logins
New/improved features for mod authors
- More powerful BBCode possibilities (a BBC's input parameters are now supplied to its validation function, allowing new possibilities for what a BBC can do with user input)
- Hooks, hooks, and more hooks!
- Background tasks
- All create_function calls are now anonymous functions
- db_* ddl function support now a good common set of datatypes a cross mysql and pg (#3636, #3610)
- db_insert can now return directly the ai values (@param int returnmode 0 = nothing(default), 1 = last row id, 2 = all rows id as array). It is no longer necessary to call db_insert_id
- Alignment of mysql sql mode to provide the same mysql behaviour across the different versions and engine. Use the default mysql 5.7 set : ONLY_FULL_GROUP_BY, STRICT_TRANS_TABLES, NO_ZERO_IN_DATE, NO_ZERO_DATE, ERROR_FOR_DIVISION_BY_ZERO, NO_AUTO_CREATE_USER, NO_ENGINE_SUBSTITUTION
- With build_query_board($userid) you can now simulate the access rights of a different user as the current. definition: Returns array with keys query_wanna_see_board and query_see_board; exp. for using: https://github.com/SimpleMachines/SMF2.1/pull/4288/files#diff-01cc3a672ae60fbabf662b0bb5727534
- db_create_table can now update existing table structure (#4335)
- With $smcFunc['db_custom_order'] you can define a custorm order for a row set, instead of using find_in_set (#4420)
- Implement housekeeping interface for Caching (#4446)
- Option to define when your css is loaded(loadCSSFile) (#4548)
- postRemoved now has a default implementation (#4712)
- sql ifnull is no longer supported. Use coalesce (docu) instead.
- For handling access rights of boards board_permissions_view table was added and {query_see_board} was redefined (#4727)
- For advanced sql you can check now if the database supports cte use $smcFunc['db_cte_support']() (#4794)
- Allow multiple extensions for smileys (#4956)
- To hide html element use the hidden class instead of style="display: none; " (#5036)
General improvements
- Smart-emulation (the package manager is now able to propose a SMF version to emulate in order to install a mod)
- IPv6 support
- New Ban Mask Format: 199.* or 199.0.0.0 - 199.255.255.255 or 199.*.*.* not allowed anymore 199.0-255.0-255.0-255
- Search for ip address in the memberlist works in the same format as Ban Mask Format
- Detection of mobile devices
- Previews of several things are now available (Personal messages (now AJAX), news and newsletters, warning template and warnings, signature)
- jQuery included by default
- PostgreSQL massive
- Support for PG unlogged table, which was introduced in PG 9.1, and PG 9.5 insert ignore feature
- Native IP used (inet)
- Index Fulltext Search
- PHP 8 support (PHP 8.1 probably with 2.1.2)
- UTF-8 is now the standard format for the forum and language files
- Curve2 is a responsive design, which is designed to work effectively, and to look good, on your computer, as well as on your phone or tablet
Administration, moderation, and security
- Admin area has been reorganized (a big improvement!)
- Core Features page is being removed and the Settings Page is being moved to individual pages. Some "enabled by default" settings will no longer be disabled
- Handling of attachments (based on mod Improved Attachment Error Handling)
- Tokens (security)
- phpinfo directly into the admin panel in the server settings pages
- Deny access to boards
- End of admin and moderator sessions (security)
- Ability to enable/disable both admin and moderator security [asking for password to access admin panel and moderation panel]
- New tags for packages: <credits> (tag for inserting mod credits in to the credits page), <requires> (tag to basic mod dependency), <hooks> (tag to add / remove hooks)
- PHPDoc (also needs to change the coding guidelines to reflect this)
- PHP 7.0 or higher
- Per board group moderators
- Moved number of required verification questions to the verification questions area of the admin panel [not in the CAPTCHA area]
- Install allows registration settings to be selected [immediate/disabled etc]
- Package manager has proper error message if a theme is uploaded
- Integration Hooks management, allows hooks to be enabled/disabled
- Layout for unapproved posts in moderation center updated to fix bug where linktree for post does not show up correctly
- Ability to change to sidebar menus or to drop down menus can only be selected from look and layout in each users profile
- Db errors time stamp moved to db_last_error.php file instead of settings.php so settings.php cant be blanked out by mistake
- Ability to move a topic and automatically redirect users to the new location
- Theme setting to show subject on thread view
- When post text is not allowed in notifications, PM's body does not get emailed
- PM's now require a subject, (no subject) will no longer be auto-filled
- Membergroup icon/badges are now in their own folder (images/membericons) along with a drop down of available image names to pick from
- Ability to view the warnings history if users can view their warning status
- HTML is no longer parsed as a membergroup name
- Per group ability to allow/deny the viewing of a users email address (or email form) as well as the ability to send mail to them
- Upon upgrading to 2.1, the default theme will be forced as the default and the old outdated SMF themes (babylon, classic and core) will be deleted from the database (theme files will remain)
- Email addresses are no longer sent to moderators when a user reports a post
- Improved spam defenses, registration will be blocked if a user tries to register too quickly and also inept bots can be tripped up by hidden form variables.
- Anti spam Q&A should now be able to support multiple languages (different questions per language) as well as multiple answers per language
- Private Messages are saved by default when sending a message (can not be turned off)
- Word censoring is no longer a per-theme setting
- SMF no longer warns about an out of date database when it isn't out of date
- Personal text can be set up to be shown on registration and also disabled through the Advanced Profile Fields page
- The header on the default theme can no longer be collapsed
- Several changes in the Moderation Center including removal of the news block
- Image proxy housekeeping added (#4535)
- Cron can be called from the outside, disabled the inline cron call (#4692)
- Added backtrace to the error log (#4740)
- Added mb4 support for mysql (#4777)
- Show newest spider log items at top (#4847)
Hooks
- Many, many more hooks (a list will be posted later, until then you can see a list here).
- Allow mod authors the option to override the id theme without changing the url (#5005)
Minor improvements
- Preview of messages when hovering over the message subject on the message list. Enable on current theme page in admin, preview length is on the posts and topics page in admin
- Ability to disregard/ignore a topic and no longer have it show up in the unread lists
- Ability to specify how long to keep moved topic notices before they are deleted (via scheduled task)
- Added categories for boards to membergroup's management pages (easier to use)
- Post recount for members added to the maintenance menu
- Improved calendar export function
- Better XML feeds (bug fixes, cleaner output, speed improvements)
- Ignore/skip of short words (1 char) in search function
- [flash] no longer embeds flash content even when the BBCode is enabled. It simply shows a link to the flash file instead.
Removals
- Core Features page
- As a consequence, integrate_core_features has been removed as well
- SQLite
- WAP, WAP2, and IMODE
- Old browser support; IE<9 not supported
- PG<9.4 not supported
- AIM
- MySQL<5.0.22 and <5.1.10 not supported
- Template evaluation. No more confusing error messages pertaining to templates and eval()
- PHP <7.0 not supported