Cameron
f922456a8f
Fixes #4706 'quote' bbcode in TinyMce and fixes fatal error under PHP 8.1 (LAN_WROTE)
2022-03-29 13:59:25 -07:00
Cameron
038d88aa2a
Lazy loading added to bbcode images and avatar images by default.
2021-10-26 14:57:01 -07:00
Cameron
73dfbf0d74
Issue #4299 - PHP8 fatal error fixes
2021-10-17 08:43:07 -07:00
Nick Liu
20882920a0
Fix all PHP 8.1 test failures
...
* `strftime()` has been replaced with a polyfill based on `DateTime`.
* Explicit type casts/assertions added where required by PHP 8.1
* `filter_var(…, FILTER_SANITIZE_STRING)` replaced with `strip_tags()`
or HTML entity encoding of quotation marks, depending on a guess of
what the intended "sanitization" was
* `http_build_query()` usage type mismatches fixed
* Removed usages of the `FILE_TEXT` constant
* To avoid breaking PHP 5.6 compatibility (function return types),
`e_session_db` no longer implements `SessionHandlerInterface`.
Instead, the alternative non-OOP invocation of
`session_set_save_handler()` is used instead to apply the session
handler.
* The shim for `strptime()` still calls the native function if available
but now suppresses the deprecation warning.
* `e_db_pdo` explicitly asks for `PDO::ATTR_STRINGIFY_FETCHES` to
maintain consistent behavior with past versions of PHP.
* `e_db_mysql` explicitly sets `mysqli_report(MYSQLI_REPORT_OFF)` to
maintain consistent behavior with past versions of PHP.
* Removed pointless random number generator seed from `banner` plugin
* Workaround for `COUNT(*)` SQL query in
`validatorClass::dbValidateArray()` without a proper API for avoiding
SQL injection
2021-09-04 15:06:19 +02:00
Cameron
d51f5cb936
Legacy textparse class removed. Separate emote and profanity classes.
2021-01-14 17:26:15 -08:00
Cameron
62d6341303
Bbcode test and parser cleanup.
2021-01-14 14:46:49 -08:00
Cameron
601df26d51
Code optimization for speed and reduced memory usage.
2020-12-20 11:50:10 -08:00
Cameron
f80d611202
Bbcode code optimization and test.
2020-12-15 08:59:31 -08:00
Cameron
cf14705535
Code speed optimization
2020-12-12 11:32:23 -08:00
Cameron
afaac88003
PHP8 Compatibility and code cleanup.
2020-12-08 12:21:12 -08:00
Cameron
09fb747374
Code cleanup
2020-12-05 14:13:18 -08:00
Nick Liu
b3cc2cf117
Fixed time.bb fatal error in PHP 8.0:
...
```
[Sat Nov 28 07:42:08.146694 2020] [fcgid:warn] [pid 224726:tid 140236713551616] [client xxx.xxx.xxx.xxx:0] mod_fcgid: stderr: PHP Fatal error: Uncaught Error: Non-static method e_date::convert_date() cannot be called statically in ~/public_html/e107_handlers/bbcode_handler.php(390) : eval()'d code:6
[Sat Nov 28 07:42:08.146832 2020] [fcgid:warn] [pid 224726:tid 140236713551616] [client xxx.xxx.xxx.xxx:0] mod_fcgid: stderr: Stack trace:
[Sat Nov 28 07:42:08.146841 2020] [fcgid:warn] [pid 224726:tid 140236713551616] [client xxx.xxx.xxx.xxx:0] mod_fcgid: stderr: #0 ~/public_html/e107_handlers/bbcode_handler.php(390): eval()
[Sat Nov 28 07:42:08.146848 2020] [fcgid:warn] [pid 224726:tid 140236713551616] [client xxx.xxx.xxx.xxx:0] mod_fcgid: stderr: #1 ~/public_html/e107_handlers/bbcode_handler.php(202): e_bbcode->proc_bbcode()
[Sat Nov 28 07:42:08.146853 2020] [fcgid:warn] [pid 224726:tid 140236713551616] [client xxx.xxx.xxx.xxx:0] mod_fcgid: stderr: #2 ~/public_html/e107_handlers/e_parse_class.php(1919): e_bbcode->parseBBCodes()
[Sat Nov 28 07:42:08.146859 2020] [fcgid:warn] [pid 224726:tid 140236713551616] [client xxx.xxx.xxx.xxx:0] mod_fcgid: stderr: #3 ~/public_html/e107_core/shortcodes/batch/comment_shortcodes.php(350): e_parse->toHTML()
[Sat Nov 28 07:42:08.146882 2020] [fcgid:warn] [pid 224726:tid 140236713551616] [client xxx.xxx.xxx.xxx:0] mod_fcgid: stderr: #4 ~/public_html/e107_handlers/shortcode_handler.php(1119): comment_shortcodes->sc_comment()
[Sat Nov 28 07:42:08.146888 2020] [fcgid:warn] [pid 224726:tid 140236713551616] [client xxx.xxx.xxx.xxx:0] mod_fcgid: stderr: #5 [internal function]: e_parse_shortcode->doCode()
[Sat Nov 28 07:42:08.146908 2020] [fcgid:warn] [pid 224726:tid 140236713551616] [client xxx.xxx.xxx.xxx:0] mod_fcgid: stderr: #6 ~/public_html/e107_handlers/shortcode_handler.php(986): preg_replace_callback()
[Sat Nov 28 07:42:08.146914 2020] [fcgid:warn] [pid 224726:tid 140236713551616] [client xxx.xxx.xxx.xxx:0] mod_fcgid: stderr: #7 ~/public_html/e107_handlers/e_parse_class.php(883): e_parse_shortcode->parseCodes()
[Sat Nov 28 07:42:08.146920 2020] [fcgid:warn] [pid 224726:tid 140236713551616] [client xxx.xxx.xxx.xxx:0] mod_fcgid: stderr: #8 ~/public_html/e107_handlers/comment_class.php(534): e_parse->parseTemplate()
[Sat Nov 28 07:42:08.146926 2020] [fcgid:warn] [pid 224726:tid 140236713551616] [client xxx.xxx.xxx.xxx:0] mod_fcgid: stderr: #9 ~/public_html/e107_handlers/comment_class.php(1301): comment->render_comment()
[Sat Nov 28 07:42:08.146931 2020] [fcgid:warn] [pid 224726:tid 140236713551616] [client xxx.xxx.xxx.xxx:0] mod_fcgid: stderr: #10 ~/public_html/e107_handlers/comment_class.php(1125): comment->getComments()
[Sat Nov 28 07:42:08.146938 2020] [fcgid:warn] [pid 224726:tid 140236713551616] [client xxx.xxx.xxx.xxx:0] mod_fcgid: stderr: #11 ~/public_html/e107_plugins/news/news.php(1299): comment->compose_comment()
[Sat Nov 28 07:42:08.146943 2020] [fcgid:warn] [pid 224726:tid 140236713551616] [client xxx.xxx.xxx.xxx:0] mod_fcgid: stderr: #12 ~/public_html/e107_plugins/news/news.php(236): news_front->renderComments()
[Sat Nov 28 07:42:08.146950 2020] [fcgid:warn] [pid 224726:tid 140236713551616] [client xxx.xxx.xxx.xxx:0] mod_fcgid: stderr: #13 ~/public_html/e107_plugins/news/news.php(1895): news_front->render()
[Sat Nov 28 07:42:08.146955 2020] [fcgid:warn] [pid 224726:tid 140236713551616] [client xxx.xxx.xxx.xxx:0] mod_fcgid: stderr: #14 ~/public_html/news.php(23): require_once('...')
[Sat Nov 28 07:42:08.146961 2020] [fcgid:warn] [pid 224726:tid 140236713551616] [client xxx.xxx.xxx.xxx:0] mod_fcgid: stderr: #15 ~/public_html/index.php(103): include('...')
[Sat Nov 28 07:42:08.146967 2020] [fcgid:warn] [pid 224726:tid 140236713551616] [client xxx.xxx.xxx.xxx:0] mod_fcgid: stderr: #16 {main}
[Sat Nov 28 07:42:08.146972 2020] [fcgid:warn] [pid 224726:tid 140236713551616] [client xxx.xxx.xxx.xxx:0] mod_fcgid: stderr: thrown in ~/public_html/e107_handlers/bbcode_handler.php(390) : eval()'d code on line 6
```
2020-11-30 12:55:04 +01:00
Nick Liu
638412af09
Null coalesce optional variable in link.bb
2020-01-18 16:35:20 +01:00
sudakk
d01a0b6e83
Update bb_p.php
...
Tested on custom pages & news
2019-10-28 21:59:32 +03:00
Deltik
1f824faa69
Renormalized all text file line endings
2019-03-29 19:13:32 -05:00
Cameron
9c13a9dcde
Quotation consistency fix for [img] bbcode.
2018-09-12 12:03:17 -07:00
Cameron
c162981fbd
Cleaned up the Default Image Size in Media-Manager Preference area. Remove 'width=' from [img] when it matches the default size.
2018-01-26 15:54:54 -08:00
Cameron
4d3ef86bb7
Fix for TinyMce image resize. Also disabled static URLs in the admin area.
2018-01-26 14:10:15 -08:00
Cameron
66cb38cb85
Convert images back to bbcode when using TinyMce to keep image src urls dynamic. Parse bbcode inside [html] in toHtml()
2017-12-27 12:28:29 -08:00
Cameron
a68cf279b6
PHP Notice removal and debug info styling.
2017-12-17 13:13:18 -08:00
Cameron
b6d9507aca
Optimization
2017-01-29 18:43:52 -08:00
Lóna Lore
7143c3e571
Remove unused markdown parser.
2017-01-28 19:12:49 +01:00
Cameron
43d0211590
Code cleanup: deprecated include_lan()
2017-01-23 09:41:23 -08:00
Cameron
0d865446e8
BS4 images rounded.
2017-01-20 10:46:57 -08:00
Cameron
88638e8857
Support for more HTML colors in the [color] bbcode.
2016-11-28 15:24:38 -08:00
Cameron
38a1d8399f
Issue #2018 - Figcaption problem when not using WYSIWYG.
2016-11-11 17:48:46 -08:00
Cameron
0067d6d7fb
Prevent hard-coded image style widths in html markup. (allow for responsive behavior)
2016-03-13 01:18:17 -08:00
Cameron
fb609aaab6
PDO Install enabled. PHP Notice fixes.
2016-02-12 19:28:35 -08:00
Cameron
3074814d42
Use https for Youtube links.
2016-02-07 12:54:03 -08:00
Cameron
0c3125a11e
Issue #1257 More work on SEF Thumb URLs.
2016-02-04 11:40:15 -08:00
Cameron
b1c2e030d5
Default image resize pref is now used correctly by TinyMce media-manager. Image captions may now be added to inline images. TinyMce media-manager 'cancel' button is working again.
2016-01-11 20:53:05 -08:00
Cameron
4cf91d0627
Fix for default alert style.
2015-09-21 14:59:37 -07:00
Cameron
d8d4b48341
Added alert bbcode. menu-name shortcode for custom menus. And a 'Bootstrap Row' css style in Tinymce4.
2015-09-21 14:55:27 -07:00
Cameron
8890c523f0
Fixes #717 - Forum Post rewrite. new bootstrap templates added as well as new shortcodes. (attachments not functioning at this moment)
2015-04-18 15:09:10 -07:00
Cameron
f57b6d2903
BC Fix for media-manager paths using the old {e_MEDIA} variable with the [img] bbcode.
2015-02-22 17:41:55 -08:00
Cameron
e576370e57
Remove some references to deprecated functions/methods.
2015-02-14 23:34:15 -08:00
Cameron
bb01287e25
Fixes #803 - TinyMce Image paths issue.
2015-01-29 17:01:52 -08:00
Cameron
0d809d80dc
Fix for bbcode of 'code' being parsed as shortcodes.
2015-01-25 03:10:39 -08:00
Cameron
557e0111a5
Added a pref to make youtube bbcodes responsive. (ie. behave like media-manager youtube videos)
2014-10-22 17:59:15 -07:00
Cameron
6648dcb10b
Fixed path to request.php (when using SEF Urls).
2014-09-11 03:43:46 -07:00
Moc
88bd9796ef
YouTube BBcode - added https:// to allowed URLs
2014-06-26 12:46:29 +02:00
Cameron
28c8c25ee4
Image size correction on bbcode [img] and automatically display full-width in admin when bbarea is used.
2014-05-31 23:18:01 -07:00
Cameron
2eb638f05e
Added Glyph bbcode.
2014-05-31 23:16:47 -07:00
Cameron
ab8c93eefa
BC Fix for {NEWSTHUMBNAIL}
2014-01-31 04:12:34 -08:00
Cameron
d2d58451cf
Fix for media-browser carousel issue. Fix for bbcode Youtube insert. Added [video] bbcode.
2014-01-23 15:56:53 -08:00
Cameron
6577f6d380
BC Fixes for download installation, sitelinks expanding menus, bbcode image sizes.
2014-01-20 06:20:58 -08:00
Cameron
332084d9c9
Add menu item of missing during page-menu update. BC fix for {e_IMAGE} path in [img] bbcode.
2013-12-23 03:56:25 -08:00
SecretR
510828467e
Block bbcode fix and improvements
2013-11-04 12:39:36 +02:00
Cameron
fdf647c8bb
More [code] parsing work.
2013-06-15 03:58:47 -07:00
Cameron
81bbbc99ee
Fix for [code] output.
2013-06-15 02:26:55 -07:00