1
0
mirror of https://github.com/e107inc/e107.git synced 2025-10-07 19:16:31 +02:00
Commit Graph

994 Commits

Author SHA1 Message Date
Cameron
2d0e52c16a Merge pull request #4733 from Jimmi08/canonical-urls-on-topic-pages
Fixes #4712 canonical URLs for paged forum topic
2022-04-01 11:02:24 -07:00
Cameron
33d87efd20 Merge pull request #4730 from Jimmi08/master
Closes #4659 forum main admin as silent moderator
2022-04-01 10:57:58 -07:00
Cameron
025ff07aab Fixes #4737 Removal of type="text/javascript" and type="text/css" 2022-03-31 08:24:34 -07:00
Jimmi08
da7f88f644 #4712 canonical URLs for paged forum topic
CLOSES #4712
2022-03-31 12:42:35 +02:00
Jimmi08
95a6cd2a3b #4659 forum main admin as silent moderator
- without displaying in moderator list (if they are not forum moderators directly)

CLOSES #4659
2022-03-30 22:17:41 +02:00
Cameron
21fa07ec3b Merge pull request #4723 from Jimmi08/patch-2
Fixes #4715 Forum - correct display of Last Post info
2022-03-30 12:38:52 -07:00
Jimako
c622717863 #4724 forum - possibility to add forum ID as column
FIX #4724
2022-03-29 21:45:48 +02:00
Jimako
ec8108338b correct display of Last Post info
#FIX 4715
2022-03-29 10:47:58 +02:00
Jimako
f84386dce8 Fix for Recalculation forum replies in Tools
Fix #4570
2022-03-28 08:42:03 +02:00
Cameron
37aa4dc0e7 Merge pull request #4718 from Jimmi08/patch-17
Fixes #3974 Forum permissions for creating topics
2022-03-27 14:01:45 -07:00
Jimako
e514a43e54 Fix for Forum permissions for creating topics
FIX #3974
2022-03-27 20:44:19 +02:00
Jimako
71764ba7db fix for access / check for access to forum type in forum post
fix #4658
2022-03-27 20:36:46 +02:00
Cameron
1ef4124d6c Merge pull request #4716 from Jimmi08/patch-15
Fixes #3218 - Forum cache was not clearing when expected.
2022-03-27 10:28:39 -07:00
Cameron
608b2ebb4f Merge pull request #4710 from Jimmi08/patch-33
Fixes #4286 - Forum breadcrumbs on topic view with 3 forums
2022-03-27 10:26:53 -07:00
Jimako
8c268193ba fix for not clearing forum cache
Fix #3218
2022-03-26 18:47:59 +01:00
Jimako
d8c57390ca forum - use the same markup (bootstrap) for pagination in forum and topic (Issue #4713) 2022-03-22 18:23:24 +01:00
Jimako
35f278dfe5 Forum breadcrumbs on topic view with 3 forums #4286
FIX #4286
2022-03-21 16:59:20 +01:00
Cameron
6257a2a716 Closes #4256 - "Post Permission" and "Thread Creation Class" now default to "Members" when creating a new forum. 2022-03-14 09:55:21 -07:00
Cameron
743edf8917 Fixes #4669 - Forum print issue. 2022-03-10 12:54:22 -08:00
Cameron
0d8f3e9086 PHPDoc fixes and code optimization. 2021-12-03 14:58:33 -08:00
Cameron
d9d606f615 Fixes #4583 - filetype values missing from forum attachment tooltip message. 2021-12-02 10:22:52 -08:00
Cameron
afc0489e8c e107 Website URL updated to https. 2021-11-29 13:31:32 -08:00
Cameron
2c9afc83ee More PHP 8.1 fixes. 2021-11-26 12:36:25 -08:00
Cameron
cf5459620c Fix forum post PHP error. 2021-10-18 16:41:51 -07:00
Cameron
573a8d55af Issue #4578 - Legacy forum template issue with missing thread subject element. 2021-10-18 14:17:54 -07:00
Cameron
bc84cdc59e Issue #4578 - possible fix for editing issue. 2021-10-18 11:33:14 -07:00
Cameron
acff5c699e Bootstrap5 fix for dropdown dividers 2021-10-18 11:19:57 -07:00
Cameron
ce70a5944a Bootstrap5 forum dropdown styling fix. 2021-10-18 10:18:24 -07:00
Cameron
9ac051f2a6 Bootstrap5 layout styling 2021-10-18 10:01:19 -07:00
Cameron
d49f53677b More bootstrap5 layout fixes 2021-10-18 09:53:49 -07:00
Cameron
95ea56bb89 Forum navigation layout fix. 2021-10-18 09:09:01 -07:00
Cameron
da219c31ae Fix forum replies/topic count styling on sub forums. 2021-10-10 09:15:16 -07:00
Cameron
5e83895c8f Fixes #4544 - SubForum missing global value. LAN shortcode now parsed correctly. 2021-10-10 08:55:16 -07:00
Cameron
34ad8bc1d8 More jQuery.once() to jQuery.one() replacements. 2021-10-03 11:03:23 -07:00
Cameron
5fd8fdc92b Fixed e107 v1 to v2 forum migration adding check for deprecated files. Fixed breadcrumb subforum visibility and URL when SEFURL is disabled. 2021-09-26 10:43:33 -07:00
Nick Liu
f6d6d1b185 Deprecate e_parse::toJS()
`e_parse::toJS()`, documented with the description

> Convert text blocks which are to be embedded within JS

, does not protect strings from injections, which appears to be its
primary use.  Additionally, it performs multiple unrelated string
modifications:

* Replace Windows line breaks with a literal `\\n` (which would later be
  parsed as `\n` in JavaScript/JSON)
* Does not modify Unix line breaks (`\n`), which is inconsistent with
  the Windows line break behavior
* Removes HTML tags
* Replaces HTML entities as `htmlentities()` does

This method cannot be fixed because its usages are inconsistent.  Most
notably, some usages surround the method's output in single quotes while
others surround it with double quotes.  Strings cannot be JSON-encoded
without confounding quotation mark styles.

All core usages of `e_parse::toJS()` have been replaced with
alternatives, which are also documented in the method's DocBlock.

Fixes: #4546
2021-08-31 00:11:14 +02: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
95fab15c02 Gsitemap: Display link visibility status while importing. 2021-07-22 13:51:35 -07:00
Nick Liu
7a04260b5f #4299: Wrap even more potentially undefined constants
In:
* Admin-UI
* Forums
2021-07-21 20:23:06 +02:00
Nick Liu
ccf0f037aa #4299: Wrap more potentially undefined constants
In:
* Forums
* /e107_admin/menus.php
2021-07-13 13:10:59 +02:00
Cameron
d2411404c4 Issue #4299 PHP8 Fix 2021-06-14 17:05:57 -07:00
Moc
cdc61c90ee Forum update fixes (duplicate SEF & logging) 2021-03-22 20:31:07 +01:00
Moc
b2cf6c07b3 #4452 - Add e_print addon code and check 2021-03-17 19:42:21 +01:00
Cameron
07faad666a Issue #2726, Issue #4452 - Added new e_print.php addon which uses v2.x standards. 2021-03-17 11:22:25 -07:00
Cameron
f30caaf18b Removed some LAN constant usage from core templates. 2021-02-23 12:58:51 -08:00
Cameron
76af210666 Issue #4332 - Bootstrap 5 styling fixes. 2021-02-23 11:11:35 -08:00
Cameron
e425349661 Issue #3912 - Reverse lookup e_ROUTE from e_url.php 'legacy' entry. 2021-02-21 14:10:47 -08:00
Cameron
84b105e8c7 Renamed forum 'parent' to 'parent_start' (with BC fix) and added 'parent_end' to default template. 2021-02-21 10:50:45 -08:00
Cameron
e03f7a34e2 Issue #4359 - Forum dropdown-menu fixes for Bootstrap 4/5. 2021-02-19 16:09:47 -08:00
Cameron
6ac83d6ea4 Fixes #4399 - thread_active value missing. 2021-02-18 06:31:48 -08:00