History of src/forum.c of b0ae37c0391dc267
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

History of file src/forum.c at check-in b0ae37c0391dc267

2026-03-24
15:23
Add a notice to the forum post editor politely requesting that users refrain from making multiple posts or edits in rapid succession to avoid spamming subscribers. Prompted by recent sqlite forum activity. A more complete solution would include a toggle to hide this notice and remember that preference via sessionStorage. file: [38aaa24287] check-in: [6eeeed8b9f] user: stephan branch: forum-notification-reminder, size: 68430
2026-03-06
15:41
Include rendered forum HTML in RSS with absolute links and latest-edit filtering. file: [94c16214b2] check-in: [4326758941] user: vor0nwe branch: rss-content, size: 68379
2025-12-23
16:06
Assorted fixes of typos and grammar in code comments. No functional changes. file: [e513b266bf] check-in: [e2bdc10572] user: danield branch: trunk, size: 67905
2025-10-10
17:20
Make use of the improved /help/CMD syntax everywhere, in place of the legacy /help?cmd=CMD syntax. file: [e4784bf8f2] check-in: [c64f28d26c] user: drh branch: trunk, size: 67906
2025-07-02
10:55
Add a confirmer wrapper around the forum post close/reopen button to help avoid accidental closing of posts via mis-clicks, per /chat discussion. file: [772ee17d2c] check-in: [751dbe28ce] user: stephan branch: trunk, size: 67914
2025-04-18
00:00
Show the FORUMPOST table content associated with a forum thread on the /forumthreadhashlist page (accessible by admins only). file: [3178460b1b] check-in: [042a750aa6] user: drh branch: trunk, size: 67802
2025-04-17
23:17
Defend against a possible infinite loop in forumpost_is_closed() that might occur if the forumpost table contains goofy data. file: [0c169f9ca2] check-in: [923aa75345] user: drh branch: trunk, size: 67189
2025-03-07
18:46
In /forumpost and /forumthread, use %h instead of %s when rendering a thread's title. (Edit: moving out of the way to reevaluate against more inputs.) file: [1ff9d83b6d] check-in: [4937bc9af7] user: stephan branch: mistake, size: 66730
15:56
Enhance codecheck1.c to detect cases where style_header() is called with arguments that are not easily proven to be HTML-free. Fix multiple calls to style_header() to prove they are always HTML-free. file: [e395a67be5] check-in: [2da41072ff] user: drh branch: enhanced-defenses, size: 66730
2025-03-01
04:27
In the forum, link post timestamps to /timeline?c=timestamp. Inspired by recent repo archeology. file: [51a199e766] check-in: [2dc9f676ce] user: stephan branch: forum-dates-link-timeline, size: 66987
2025-02-26
15:48
Improvements to the "fossil fts-config" command so that "enable" and "disable" subcommands accept symbolic names for the search catagories, rather than cryptic code letters. Always allow help-search even if disabled; just don't advertise the capability. file: [c79d602d52] check-in: [7ea128dd51] user: drh branch: help-search, size: 66732
2024-12-19
18:20
Remove a harmless unused local variable. [forum:/forumpost/1d5c8db08a327fb4|Forum post 1d5c8db08a327fb4]. file: [c50e347570] check-in: [08ea1bd4ab] user: drh branch: trunk, size: 66730
2024-11-19
13:08
Simplifications to the Forum setup page. file: [1e2d268cbe] check-in: [25e4b54238] user: drh branch: trunk, size: 66764
12:52
New setting "forum-title" is the title of the Forum. file: [7df7657086] check-in: [f646537cb6] user: drh branch: trunk, size: 66962
2024-09-07
11:06
Use CSS flex layout around the /forum editor textarea so that it will shrink and grow to fit the screen. The intent is making it easier to use on a mobile device. file: [ca7476eb72] check-in: [268bb73947] user: stephan branch: trunk, size: 65471
2024-07-26
05:02
Fixed a typo [forum:/forumpost/0356ab78b6 | reported on the forum]. file: [a35a18de4e] check-in: [1b71969475] user: wyoung branch: trunk, size: 65435
2023-09-18
15:24
Fix forum-post approval buttons so that they send the CSRF token. file: [b648459258] check-in: [bf9974cf8d] user: drh branch: csrf-defense-enhancement, size: 65435
15:10
More intensive use of the Synchronizer Token Pattern for CSRF defense. file: [68e1a3c8b4] check-in: [0a66be2b75] user: drh branch: csrf-defense-enhancement, size: 65401
13:18
Try to simplify and rationalize the defenses against cross-site request forgery attacks. A hodgepodge of techniques have been used in the past. This changes attempts to make everything work more alike and to centralize CSRF defenses for easier auditing. file: [d348d1c79a] check-in: [88a402fe2a] user: drh branch: csrf-defense-enhancement, size: 65277
2023-07-16
20:47
Add calls to cgi_check_for_malice() on many more web pages. Log all 418 responses to the error log. file: [a882e34c26] check-in: [40266bf9b2] user: drh branch: verify-options-cgi, size: 65310
2023-06-23
16:34
Do not show the Close button on forum posts which are pending moderation. file: [c50c742bb4] check-in: [355a81bea7] user: stephan branch: trunk, size: 65258
2023-06-12
09:20
Correct previous check-in to fail fatally if the CSRF check fails. file: [96f4039368] check-in: [37dfb4c8d6] user: stephan branch: trunk, size: 65200
08:53
Add a CSRF check for the forum post Close/Re-open button. file: [763acf8c6b] check-in: [619d51440f] user: stephan branch: trunk, size: 65198
2023-06-10
19:03
Remove the superfluous Close Post option from the forum edit page. file: [87c339685f] check-in: [b2f007178a] user: stephan branch: trunk, size: 65156
12:29
Add some docs about closing forum posts to www/forum.wiki. When replying to a post, to not show the Close option at the bottom of the page (as it would apply to the response, which cannot be closed because it has no hash). file: [7e6035854f] check-in: [c2b38f0aad] user: stephan branch: trunk, size: 67432
2023-06-07
12:07
Initial version of the /setup_forum page. file: [cd221c571b] check-in: [b370c189bc] user: stephan branch: forumpost-locking, size: 67268
2023-06-06
19:38
Add the forum-close-policy boolean config setting. If true, forum moderators may close/re-open forum posts, as well as reply to closed posts. file: [98f9e74345] check-in: [162fc1e6aa] user: stephan branch: forumpost-locking, size: 64012
2023-06-03
08:49
Merge trunk into forumpost-locking branch. file: [f6d04f02b3] check-in: [8e7de26aa2] user: stephan branch: forumpost-locking, size: 62779
2023-06-01
18:02
Admin users have a link in /forumthread to show the hash of all artifacts associated with that thread. file: [a5695355fb] check-in: [83928d8a02] user: drh branch: trunk, size: 51315
2023-04-19
00:44
Only honor the fpsilent flag if the user has g.perm.Debug, to avoid that malicious parties inject that flag via the browser dev tools. file: [c8fbe569b7] check-in: [b8ab407f78] user: stephan branch: forum-skip-notification, size: 49816
00:29
Prototype/proof-of-concept implementation of an admin flag for the forum which tells it to not send email notifications for a given edit or new post. file: [c4e487e47e] check-in: [65062c29d4] user: stephan branch: forum-skip-notification, size: 49800
2023-04-16
13:13
Merge trunk into forumpost-locking branch. file: [b8b16b7c85] check-in: [0af371047c] user: stephan branch: forumpost-locking, size: 60817
2023-03-11
11:23
Minor code re-org of previous checkin. file: [bdd2d6b5d3] check-in: [2a4b604d98] user: stephan branch: trunk, size: 49353
11:05
Add a 'Max' field to the forum thread list, analog to the one in /timeline, and remember that value as part of the display prefs cookie. Per request in [forum:113ee6f241b84403|forum post 113ee6f241b84403]. file: [e44ab6c286] check-in: [2ee93fc0c5] user: stephan branch: trunk, size: 49353
2023-02-24
23:39
Move forumpost close/re-open controls around. Add, if appropriate, a Close/Re-open button to the thread view, but only for the currently-selected post. file: [ff87ee8671] check-in: [ecc324b6af] user: stephan branch: forumpost-locking, size: 60444
2023-02-22
04:46
Rework forumpost closure to always apply to the first artifact in an edit chain to enable consistent behavior across the whole chain and responses to arbitrary versions within that chain. Add rudimentary UI elements for closing/re-opening posts, but their layout needs to be revisited (noting that they need to be in a separate form from the main editor so that closing/re-opening introduces only a smalll control artifact instead of a whole forumpost artifact). file: [c6f914a32e] check-in: [cc6ca4e110] user: stephan branch: forumpost-locking, size: 60059
2023-02-21
10:30
Initial (untested) code for creating the control artifact for closing and re-opening forum threads. Extend test-forumthread's tree view to show thread closure. file: [ec85e30a92] check-in: [32fc62e681] user: stephan branch: forumpost-locking, size: 57177
08:47
Coding style tweaks. file: [8c106c2e9d] check-in: [9fc70f6f63] user: stephan branch: forumpost-locking, size: 53403
03:58
Correct inability of forum users to delete their own pending-moderation posts. file: [4622fa79d8] check-in: [19333c8a49] user: stephan branch: trunk, size: 48980
03:49
Closed forum threads can no longer be edited by non-admins. Fix broken ability of non-builtin users to delete their own pending-moderation post. UI controls for closing/reing-open threads are still TODO. file: [c091abd364] check-in: [8f02c1d4a8] user: stephan branch: forumpost-locking, size: 53403
01:58
Add capability to determine whether a given sub-thread inherits a lock from a parent. Re-label "locked" to "closed" per /chat feedback. file: [8a5678bee9] check-in: [464f4d175f] user: stephan branch: forumpost-locking, size: 50656
00:52
Initial bits for "locking" forum (sub)threads using a "closed" tag. This currently affects the display but does not hinder edits made via malicious misuse because the pieces needed for such validation do not yet have access to the relevant ForumPost objects. file: [5bbef31889] check-in: [4d664bfe55] user: stephan branch: forumpost-locking, size: 49819
2023-02-17
14:37
A large collection of compiler warning fixes re. signed/unsigned comparison from Daniel D. file: [90b8eb2b8d] check-in: [c71f711ec9] user: stephan branch: compiler-warnings, size: 48670
2022-11-24
15:21
In the new forum reply header, reduce size from H1 to H2 and italicize the thread title. file: [3389f26557] check-in: [7b92fc614d] user: stephan branch: trunk, size: 48665
14:38
Slight reformatting of the forum reply page header based on feedback from sqlite forum post c745cf3a7f6246de. Now says: Replying to HASH-with-link in thread TITLE-without-link file: [8499f713b4] check-in: [0b6b3a001a] user: stephan branch: trunk, size: 48616
2022-11-19
16:19
Fix malformed hyperlink for historical revisions of a forum post. Perhaps introduced by check-in [168eb71643a4]. Reported by [forum:44505ae8ec515e75|forum post 44505ae8ec51]. file: [f2966d6e87] check-in: [114b17c408] user: george branch: trunk, size: 48697
2022-11-18
18:50
Provide the ability to add custom header text on all ticket reports. The header and its mimetype are stored in the REPORTFMT.JX column. file: [98b70f5097] check-in: [c06a9980c3] user: drh branch: json-meta-data, size: 48654
2022-11-13
16:26
Apply fixes to all web views to pass WCAG 2.1 tests performed by "axe DevTools" browser extension. Most fixes related to screen reader compatibility, like making sure that form elements have labels. Some color changes to improve contrast on Default skin. Made more HTML5 compliant. Minor improvement to select combo boxes for UX. Improved Search form UX. Two minor bug fixes for malformed HTML. Fixed help pages to resolve issues with non-compliant HTML being generated. Mostly documented at https://fossil-scm.org/forum/forumpost/aafb17a981df4166 file: [6c6a41174d] check-in: [1f231db380] user: ericwikman branch: wcag-2.1, size: 48747
2022-07-19
13:15
Add a "Timeline" link to the /forum page. file: [7945df05a0] check-in: [39bc414b17] user: drh branch: trunk, size: 48642
2022-07-18
14:47
Do not omit a forum thread's title while rendering /forumthread page. file: [5bbf7d42fb] check-in: [ffd32a9f70] user: george branch: trunk, size: 48577
2022-01-02
20:46
In the forum, omit unnecessary query parameters on generated URLs, so that it is easier to copy/paste URLs into commit messages or chat windows. file: [74204138c7] check-in: [168eb71643] user: drh branch: trunk, size: 48577
2021-08-27
12:31
Fix login redirects for the forum. [forum:/forumpost/7663482abad5a3ea|Forum post 7663482abad5a3ea]. file: [d32fbf091d] check-in: [c717d2803e] user: drh branch: trunk, size: 47958
2021-08-11
18:54
/forum page now changes its title to 'Forum Search Results' when showing search results, per request in [forum:291f9af918 | forum post 291f9af918]. file: [d02654dedc] check-in: [b0862611cc] user: stephan branch: trunk, size: 47964
2021-06-11
09:27
On the forum post reply page, add a link back to the original post and its source view, as discussed in [forum:/forumpost/cf716a7ff8 | forum post cf716a7ff8]. Changed the forum post link/source links to use %!S instead of %S to determine the links' hash lengths. file: [d5d77b65db] check-in: [62f0ce8374] user: stephan branch: trunk, size: 47845
2021-04-07
18:47
In the forum, provide a hyperlink from the name of the author of each post to a timeline of their most recent posts. file: [7f8db60520] check-in: [46d7ccd45e] user: drh branch: trunk, size: 47664
2021-03-16
17:33
Make timestamps displayed on forum posts consistent with those on timeline. Technically this means that forum rendering now respects (repo-local) "timeline-utc" setting file: [2a35eed239] check-in: [c67f5bf299] user: george branch: trunk, size: 47211
2021-01-12
13:50
Fix typos in help and other console output. file: [91f3532991] check-in: [2f78b2cb41] user: danield branch: trunk, size: 47181
2020-12-22
12:13
Removed the parameter from style_finish_page() since the resulting content div class is now redundant with respect to the body class. This potentially breaks CSS made against old class names that a prior commit on this branch changed, but such skins would be made against an unreleased version of Fossil, it's unlikely many are using that first version of the feature anyway, and most of the class names did *not* change unless you were targeting a "div" instead of "body" or just a generic class name. None of the shipping skins are affected. file: [a218f023aa] check-in: [0e83ca88ce] user: wyoung branch: body-feature-class, size: 47180
11:58
Calling the new style_set_current_feature() function to override the new TH1 variable $current_feature for Fossil UI pages where the page name isn't what we want used as the "body" CSS class. For the most part, this matches the value currently being passed to style_finish_page(), but a few have changed with the benefit of hindsight. Not all calls to style_finish_page() have a corresponding call to the new function since the default value for $current_page now suffices. file: [aae4a9adcd] check-in: [8ac0830bfc] user: wyoung branch: body-feature-class, size: 47222
2020-12-04
18:35
The variadic function builtin_fossil_js_bundle_or() was using 0 as a sentinel to detect end-of-list, but that isn't equivalent to NULL in a list of pointed-to objects in all C compilers, on all systems. Using a GCC/Clang function attribute to force a warning when 0 is passed instead of NULL, then fixed all resulting warnings. This fixes the SEGV reported in [forum:/forumpost/5feca9c36a|forum post 5feca9c36a] on Mac OS X 10.11 with Clang from Xcode 7. Later versions of Clang on macOS don't have this problem, but it's still UB, so fixing it may solve some pain for us later on. file: [246ce2bb43] check-in: [815b4fc493] user: wyoung branch: trunk, size: 47032
2020-11-18
14:47
Improved error messages from the forum when the forum artifact ID is incorrect. file: [7037f04214] check-in: [93a5d659b3] user: drh branch: trunk, size: 47029
2020-11-07
13:25
Rename the "style_body_and_footer()" interface to "style_finish_page()" and add a more detailed header comment to the implementation. file: [b4087abc0e] check-in: [942b2076c6] user: drh branch: default-css-cleanups, size: 46950
2020-11-05
23:15
Added a parameter to style_footer() and renamed it to match its actual function (style_body_and_footer()) so we can add a CSS class to each page that indicates which major Fossil feature served the page, so we can have module-specific CSS. file: [a2dc2a948a] check-in: [ef5424b683] user: wyoung branch: default-css-cleanups, size: 46974
2020-09-18
11:27
Fix minor formatting error in the HTML for hierarchical forum. file: [ec54b60270] check-in: [7221e497fc] user: drh branch: trunk, size: 46878
07:37
The routines which emit fossil.XYZ.js modules now understand their dependencies, emit any deps in dependency order (recursively), and do not emit a given module more than once (simplifies usage and is an and overall improvement in cacheability). Added the pikchr click support to more pages. file: [4a2a96710d] check-in: [9b2b6f5b1c] user: stephan branch: trunk, size: 46863
05:07
Minor C-side fossil JS API simplification to ease upcoming changes. file: [84b757ca05] check-in: [58d86b16bf] user: stephan branch: trunk, size: 46872
2020-09-15
14:13
Added post expand/collapse JS to forum post create/edit pages and activated pikchr source/svg toggle on those pages. This is all nice-to-have JS, not required, so won't break non-JS-capable clients. file: [144b18211e] check-in: [db865174a0] user: stephan branch: trunk, size: 46954
2020-09-14
11:12
Had to move the pikchr svg/source buttons along the top to keep them from getting truncated off-screen in the forum. Added them to the forum. There are sizing problems of the source view for small pics because the parent element has a fixed max-width. file: [7389e728e4] check-in: [4e6aeb5fb3] user: stephan branch: trunk, size: 46679
2020-09-02
10:55
When rendering fossil-wiki forum posts, add a wrapper DIV around them so that the CSS which expects that for markdown and plain-text posts still applies. This fixes the sideways layout of fossil-wiki posts like that seen in forumpost/3d709776b8. Note that a simpler fix would be to add the wrapper element to wiki_render_by_mimetype(), but that might have undesired side effects in/via the many other uses of that function. file: [c098cf47d2] check-in: [7caaa287b8] user: stephan branch: trunk, size: 46612
2020-08-27
23:54
Typo fix: Turns out "edited" only has one "t". Who knew? file: [829eea6555] check-in: [91ff34dc17] user: drh branch: trunk, size: 46104
2020-08-25
14:34
Improved titles for forum posts that show the original poster and the latest editor if they are different people. file: [3613347ca7] check-in: [9543ddbef2] user: drh branch: trunk, size: 46109
13:53
Tiniest style tweak for consistency file: [336198d95c] check-in: [7ea825864d] user: andygoth branch: trunk, size: 44885
13:47
Separately show original and edited user/date file: [d20e87a325] check-in: [39a550c8d5] user: andygoth branch: trunk, size: 44885
07:00
The fossil.XYZ.js-using pages now include all of those APIs when running in bundled JS mode, as that provides far lower aggregate over-the-wire and HTTP request counts. Added ? popup help buttons in wikiedit/fileedit to replace title-attribute hoverhelp (popup positioning can still be improved, though). file: [334d89c9f7] check-in: [34f7fd72c6] user: stephan branch: trunk, size: 44214
2020-08-24
22:20
Moved C routines which emit fossil.XYZ JS APIs from style.c to builtin.c, and renamed appropriately. Added flag to output_text_with_line_numbers() to disable emit of JS (needed for fileedit preview, at a minimum). The experimental emitting of all fossil.XYZ APIs at once is now limited to bundled mode, as that's the only place it's potentially of benefit. file: [e68dfb8d7b] check-in: [c515e5fd9f] user: stephan branch: misc-js-experiments, size: 44152
2020-08-23
16:02
Merge the interwiki enhancement from trunk. file: [8fd3edbc2e] check-in: [26ac4b1ccf] user: drh branch: sec2020, size: 44212
2020-08-22
16:24
Fix harmless compiler warnings. file: [71dee6d7a6] check-in: [a872067f7e] user: drh branch: trunk, size: 44150
10:45
Merge Andy Goth's enhancements to the forum. file: [ed6e4adcb5] check-in: [50cdb741db] user: drh branch: sec2020-forum-refactor, size: 44208
03:06
Guard against an infinite loop in certain pathological edit patterns file: [018d7e7aad] check-in: [71fe590e99] user: andygoth branch: andygoth-forum-refactor, size: 44146
02:53
Link to the next edit rather than the final edit file: [59e8923cb4] check-in: [91a3a600e6] user: andygoth branch: andygoth-forum-refactor, size: 44083
02:50
When showing the source of an edited post, show that exact version rather than the newest version file: [67cbcb7dcc] check-in: [df916a9d01] user: andygoth branch: andygoth-forum-refactor, size: 44085
02:38
Unify and regularize forum display code file: [10dff6661a] check-in: [6999639bbb] user: andygoth branch: andygoth-forum-refactor, size: 44066
2020-08-21
23:40
Internally rename "entry" to "post" for more consistent terminology file: [daaf72885f] check-in: [adefa86c5e] user: andygoth branch: andygoth-forum-refactor, size: 46423
23:20
Rework forum post serial IDs to include a revision number when edited. This fixes buggy sids displayed in thread https://fossil-scm.org/forum/forumpost/6737a387fe?t=c&threadtable. file: [87725908e7] check-in: [dd47b8c311] user: andygoth branch: andygoth-forum-refactor, size: 46505
22:03
Remove mfirt file: [e4b9310a41] check-in: [a8d90b1f4f] user: andygoth branch: andygoth-forum-refactor, size: 45598
21:52
Remove fprev file: [837951be05] check-in: [d585c34707] user: andygoth branch: andygoth-forum-refactor, size: 45782
21:50
Restore inadvertently deleted column file: [e3114b78d0] check-in: [c76023e39e] user: andygoth branch: andygoth-forum-refactor, size: 46079
21:45
Replace firt with pIrt file: [605d522af7] check-in: [ed56faad2a] user: andygoth branch: andygoth-forum-refactor, size: 46063
21:17
Remove nReply which is present only in debug outputs, correct column alignment in debug output file: [e7bdf3fd12] check-in: [b932e49c7f] user: andygoth branch: andygoth-forum-refactor, size: 46397
20:34
Remove indenting that was leaking into the HTML output file: [5b170dcb5c] check-in: [bf98aa0069] user: andygoth branch: andygoth-forum-refactor, size: 46551
20:19
Add new fields to threadtable debug output file: [3076b4c31b] check-in: [c4d6d75716] user: andygoth branch: andygoth-forum-refactor, size: 46555
19:42
Actually use pEditHead file: [462133e0f5] check-in: [9e92401129] user: andygoth branch: andygoth-forum-refactor, size: 46353
19:41
Add pEditHead field to avoid repeatedly walking back to find the original post file: [6ed241f863] check-in: [7114bdc827] user: andygoth branch: andygoth-forum-refactor, size: 46356
19:34
Rename pEditLeaf to pEditTail file: [1fdac5e848] check-in: [145a6ef281] user: andygoth branch: andygoth-forum-refactor, size: 46241
19:33
Rename pLeaf to pEditLeaf to be consistent with the other edit fields file: [f92c2f55d7] check-in: [763d22b78a] user: andygoth branch: andygoth-forum-refactor, size: 46241
15:57
Add pEditNext field to permit walking forward as well as backward through the edit chain file: [e62ffa6aff] check-in: [a17f49557f] user: andygoth branch: andygoth-forum-refactor, size: 46104
15:54
Begin refactoring forum code to support orthogonal history and plaintext options. First step: rename pEdit to pEditPrev to make room for a pEditNext field. file: [7bc2826365] check-in: [636f659689] user: andygoth branch: andygoth-forum-refactor, size: 46010
2020-08-18
01:54
Disable writes the CONFIG and USER tables by default. Permission to write to those tables is turned on as needed. Note - might have missed a few places so expect bugs. file: [f71f3dff93] check-in: [ca9156aa0a] user: drh branch: sec2020, size: 46032
2020-07-31
23:33
Merged in trunk for builtin_request_js() changes and ported wikiedit/fileedit/forumpost to use those. file: [263e90df3d] check-in: [2ec332a0c2] user: stephan branch: ajax-wiki-editor, size: 45970
21:57
Further simplification of the javascript loading code. file: [e8b80c4fbf] check-in: [b7f70ffc14] user: drh branch: refactor-js-handling, size: 46215
20:02
Begin integrating the builtin_request_js() interface. file: [34ca929960] check-in: [13caa6e61e] user: drh branch: refactor-js-handling, size: 46214
16:49
Pedantic function rename, as it will become relevant when work on the ajaxifying the forum start. file: [0f80f1278b] check-in: [41ce65fc31] user: stephan branch: ajax-wiki-editor, size: 45983
16:40
Added style_emit_script_bundle() to simplify page-level bundle usage a small bit. /forumpost, /wikiedit, /fileedit now use that routine. file: [da52971f6b] check-in: [0c233bc697] user: stephan branch: ajax-wiki-editor, size: 45979
16:14
Extended /builtin/filename to support /builtin/:filename for packing up cacheable bundles of page-specific code. /wikiedit, /fileedit, and /forumpost now serve their JS that way. file: [d2c8997491] check-in: [18da05b903] user: stephan branch: ajax-wiki-editor, size: 45987
14:44
/wikiedit and /fileedit now dump all of their common static JS into a single SCRIPT tag instead of making numerous requests, per forum feedback. Fixed/expanded some of the newer script-emitting logic in style.c to handle these. wikiedit no longer mangles the page-level header. file: [5a5c782fe5] check-in: [a4b73fd081] user: stephan branch: ajax-wiki-editor, size: 46215
2020-07-09
18:31
Moved expand/collapse toggle to the bottom of the post, per forum feedback. That required changing it to a button because of CSS limitations. Fixed a few mis-used P tags in the FORM part of each post (P cannot hold a FORM). file: [d2f20774ce] check-in: [eb392f9719] user: stephan branch: forum-expand-poc, size: 46209
17:36
/forumthread: dynamically determine which posts have scrollbars (i.e. are taller than div.forumPostBody's max-height) and only add the expand/collapse toggle to those posts. file: [d81c91668d] check-in: [1d467dcb71] user: stephan branch: forum-expand-poc, size: 46197
15:35
Very rough proof-of-concept for a pure-CSS expand/collapse option for forum posts. Demonstrates the capability but is far from polished enough to bring online. file: [7b940e7888] check-in: [be157e46f0] user: stephan branch: forum-expand-poc, size: 46465
2020-06-02
20:05
Add the safe-html setting that determines which kinds of documents are allowed to generate unsafe HTML from Markdown. file: [65341718d1] check-in: [89b6dda99c] user: drh branch: trunk, size: 45640
17:38
Update the HTML safeing mechanism so that it does the entire Markdown output all at once. In this way it is better able to cope with block markup that spans multiple paragraphs. file: [217b39e89a] check-in: [382f3731ee] user: drh branch: trunk, size: 45614
15:14
Only use safe-html markdown rendering for the Forum. This is a temporary measure to get most things working again while we devise improvements to the safe-html mechanism. file: [3b0b1ab889] check-in: [f4e6efb2da] user: drh branch: trunk, size: 45628
2020-06-01
20:12
Remove a redundant call to manifest_get(). file: [a4e2da5416] check-in: [50ed560c6b] user: drh branch: trunk, size: 45603
2020-05-26
06:56
merged in trunk file: [73e27c4703] check-in: [a2b0ed37af] user: stephan branch: forum-edit-deltify, size: 45652
2020-05-16
01:08
Integrate ARIA suggestions from Peter Laursen. file: [99f3a582db] check-in: [7dd07b2e01] user: drh branch: trunk, size: 45590
2020-05-14
15:01
Fixed a comment: it was not only referring to the now-removed /test-forumnew page, it didn't properly describe what followed. file: [50b61d7d8b] check-in: [0475b4f120] user: wyoung branch: trunk, size: 45549
2020-05-12
21:36
Merged in trunk. file: [1125b55278] check-in: [a2ec603335] user: stephan branch: forum-edit-deltify, size: 45552
2020-04-22
18:01
The post sequence numbers on the hierarchical display of a forum thread should be the sequence number of the original version of the post, not the final edit of the post. file: [34d5784792] check-in: [c6890fd46a] user: drh branch: trunk, size: 45490
14:31
Add the undocumented "threadtable" query parameter to the forum chronological view, in order to show the raw thread table data for debugging purposes. file: [6a42b20f87] check-in: [dbdf50d5fd] user: drh branch: trunk, size: 45457
12:08
For the chronological display of forum posts, show edited or deleted posts using text/plain. Item 4 in forum post 04e5ea0d88. file: [845d010245] check-in: [0e78f74655] user: drh branch: trunk, size: 44781
11:52
The "history" view of an edited post in the Forum shows all entries as text/plain. See discussion on the Fossil forum. file: [970718b188] check-in: [f7c869b9fb] user: drh branch: trunk, size: 44620
2020-04-18
21:05
Add the ability to display the history of edits to a single timeline post. Improvements to the CSS for timeline display in the default skin. file: [09131c837c] check-in: [34d8d7e714] user: drh branch: trunk, size: 44620
19:40
In the forum thread constructor, if an post in a forum thread is a phantom, reassign the descendents of that post to be descendents of the root. This fixes the hierarchical view for the problem described at https://www.fossil-scm.org/forum/forumpost/dc623b995f file: [4c5b741449] check-in: [bed0dd1a95] user: drh branch: trunk, size: 40767
19:15
Improved debugging output for forum displays: Show the RID on "(artifact)" links. file: [13547a88c4] check-in: [14795faaee] user: drh branch: trunk, size: 40567
2020-04-17
15:00
Previous check-in broken the forum post edit function. Attempts to edit a forum post were disallowed. This check-in should fix the problem. file: [b49b49a472] check-in: [3684c58b4b] user: drh branch: trunk, size: 40512
14:38
Do not allow forum posts that are replies or the start of a new message if they contain no content. An edit with no content is ok, as that means the post is to be deleted. file: [4ff60093b7] check-in: [d2c81b9d6a] user: drh branch: trunk, size: 40510
2020-04-14
11:36
Strengthen defenses against CSRF attacks. file: [0eb2484be6] check-in: [4c444c1c88] user: drh branch: trunk, size: 40041
2020-04-11
22:35
Merged from trunk file: [cac3db1a8a] check-in: [2f24675ab5] user: ashepilko branch: api-cleanup, size: 40026
2020-04-06
15:44
Futher viewing enhancements for larger forum posts. The default CSS now limits the maximum height to 25em (because that amount fits nicely on a single screen on an iPhone) and all messages have a "source" link which shows the fully expanded text without scrollbars. file: [d07a8117fa] check-in: [46dd696302] user: drh branch: trunk, size: 40021
15:03
Limit the displayed length of a forum-post to 50em using CSS. Longer posts scroll. file: [01feefae7a] check-in: [421955cdf7] user: drh branch: trunk, size: 39938
2020-04-05
23:45
Match the COMMAND and WEBPAGE names with _cmd and _page functions; forumpost/045bffda68 file: [26a1b1b00e] check-in: [06afb7022f] user: ashepilko branch: api-cleanup, size: 39896
19:44
Fixes to search. (1) Keep forum search up-to-date. (2) Do not add items to search if they are pending moderation. file: [efe3bb2acd] check-in: [5e28febf2b] user: drh branch: trunk, size: 39891
2020-03-27
14:45
Only show both the display name and the login if they are different. If they are the same, show just the login. file: [a1b0c6b6e5] check-in: [069b7ee7a4] user: drh branch: trunk, size: 39886
14:41
Show both the display name and the login on forum pages. file: [db0ea13219] check-in: [d5455f5b1b] user: drh branch: trunk, size: 39746
14:30
Use the display name rather than the login for forum posts. file: [bd4bfcc273] check-in: [2e71dc25d9] user: drh branch: trunk, size: 39630
2020-03-26
18:54
Add a new subscription option to receive edits to forum posts. If this option is not selected, then alerts are only sent on the initial post, not on edits. Also: Use the "forumObs" class on timeline forum text that has been subsequently edited. file: [243d2e753f] check-in: [e5653a4ceb] user: drh branch: trunk, size: 38489
2020-03-14
15:43
Add the option to show an entire forum thread as "unformatted" text. file: [c4b189ce14] check-in: [b41b39018f] user: drh branch: trunk, size: 38093
15:16
Fix the "(source)" links on the forum to point to the most recent edit of the post, not the original post. file: [6f16f44ed3] check-in: [33dc88c417] user: drh branch: trunk, size: 37457
14:07
Add CSS classes for the forum post labels. file: [f0f5682c12] check-in: [ff3365e83e] user: drh branch: forum-post-headers, size: 37390
13:50
In a forum thread display use an <h3> tag for the header on each post. file: [3e42d65d64] check-in: [c29d69ea7a] user: drh branch: forum-post-headers, size: 37348
12:46
Show the title of a forum thread without truncation. (This check-in is reapply after having been accidently deleted.) file: [ebcf5b54bb] check-in: [74549a9a8d] user: drh branch: trunk, size: 37322
2020-03-13
18:09
Provide a "source" link on Wiki/Markdown forum pages that shows the original unformatted source text for that post. file: [05ea70899a] check-in: [cc46524f48] user: drh branch: trunk, size: 37867
17:18
In the "test-forumthread" command, if the thread-id argument is omitted show a list of all available threads. file: [691496c2ce] check-in: [98270ad613] user: drh branch: trunk, size: 36883
2020-03-12
22:53
Show the title of a forum thread without truncation. file: [2b70ae0def] check-in: [81d66a357d] user: ashepilko branch: trunk, size: 35569
18:43
Add /forummain as an alias for /forum. file: [9ad3d973ae] check-in: [4b82e96ac8] user: drh branch: trunk, size: 36114
2020-03-06
17:27
Limit the max length of new forum thread's title. file: [9ae30b7376] check-in: [81fb5e7600] user: ashepilko branch: trunk, size: 36092
17:08
Improve truncation of UTF-8 encoded title using a function by @florian.balmer per https://fossil-scm.org/forum/forumpost/6d90d5d99c file: [89c9d20dbb] check-in: [d076853d10] user: ashepilko branch: trunk, size: 36070
2020-03-03
19:13
Properly truncate a UTF-8 encoded title using a function by @florian.balmer per http://fossil-scm.org/forum/forumpost/52b141aa91 file: [3e56453e1b] check-in: [35ad8eca06] user: ashepilko branch: trunk, size: 36072
2020-02-29
19:32
Properly truncate a forum thread's title when is UTF-8 encoded. file: [24fa3c86d0] check-in: [4b12ad0eb2] user: ashepilko branch: forumthread-title, size: 36228
2020-02-28
21:53
Include forum thread's title in its page title. file: [e4151d3662] check-in: [9559bdb69c] user: ashepilko branch: forumthread-title, size: 35853
2019-12-05
06:48
Enable deltification of edits of forum posts, limited to those which do not require moderation. Seems to work but requires more testing. file: [da1db6b244] check-in: [a612aa7388] user: stephan branch: forum-edit-deltify, size: 35072
2019-09-28
20:52
When replying to a Forum Post or Reply, show additional information to provide additional context. This helps if one walks away from the browser before submitting the response. file: [c3243b13a1] check-in: [e19dcc1ab1] user: andybradford branch: forum-replies, size: 35010
2019-08-09
16:40
Two additional places where links to /markup_help are useful. file: [128df71b1b] check-in: [5f328d9f90] user: drh branch: trunk, size: 34465
2019-07-18
17:45
In the hierarchical forum display, make sure that the edited post number is displayed, not the original post number. file: [b34f2b1b2d] check-in: [776ce9e645] user: drh branch: trunk, size: 34435
2019-07-17
22:26
Give sequential numbers to all display posts in the forum, and reference other forum posts in a thread by the sequence number. file: [e53f07bc45] check-in: [5a7267d9e7] user: drh branch: trunk, size: 34412
21:23
In the hierarchical display of the forum, go back to strict hierarchical indentation. But, reduce the width of indentation for deeply nested discussions. file: [6701ec575d] check-in: [0cec52e08e] user: drh branch: trunk, size: 34625
2019-07-14
21:24
Fix the in-reply-to link for hierarchical forum display to maintain the hierarchical display. Make the link say "previous" if linking to the previous post in the thread. file: [b894ed3b46] check-in: [1b63ab701b] user: drh branch: trunk, size: 34267
20:32
Try to omit unnecessary indentation on the hierarchical forum display. Include an "in reply to" mark on the hierarchical display. file: [9795ee038c] check-in: [97697b7956] user: drh branch: trunk, size: 34001
2019-07-02
06:37
Replaced the forum post DIV ids forum{RID} with post-{short-UUID}, which allowed removal of the new A NAME tag and enables permalinks (RIDs are volatile). Added forumPost class to all post DIVs, to hopefully simplify some upcoming JS code. file: [694043ffa3] check-in: [69364ba515] user: stephan branch: forum-reply-links, size: 35022
04:45
Per request in forumpost/9fd5135acc, added intra-document links to each response which link back to the being-replied-to post within the same page (using an #anchor-tag), without reloading from the server. file: [3ef747ad57] check-in: [78721d4aa0] user: stephan branch: forum-reply-links, size: 35003
2018-11-09
19:16
Another attempt to fix non-constant format complaint. file: [bf70874b79] check-in: [725630f3f8] user: wyoung branch: login-on-post, size: 33250
19:11
Fix to previous for the "non-constant format" complaint from some compilers. I can't see what they're yelling about, but this fixes it. file: [3a323af90a] check-in: [095333fc60] user: wyoung branch: login-on-post, size: 33099
18:52
The "New Thread" button in /forum is no longer restricted to those with forum write capability: if you lack it, we now send you to the login page instead. Without this, users without the capability to post are left looking in through the window of a building without obvious doors. This change pairs especially nicely with the self-registration feature, but it doesn't require it, since /login also allows anonymous login, which should be enabled for Fossil forums on sites where non-users are expected to visit. file: [561fd43899] check-in: [cdb7f3b988] user: wyoung branch: login-on-post, size: 32932
2018-10-04
13:45
Allow users with Forum Supervisor permission ('6') to add Forum Write Trusted permission ('4') to users as they are approving a post by that user. file: [0e6c627d83] check-in: [d33d446f9c] user: drh branch: trunk, size: 32919
2018-09-26
18:45
"New Message" -> "New Thread" in forum. file: [8dc044e736] check-in: [e11d391711] user: wyoung branch: trunk, size: 31903
14:04
Enable the chronological forum display for all users able to read the forum. Make chronological the default display mode for mobile devices, as determined by the user-agent string. file: [965317ddbc] check-in: [c720327afe] user: drh branch: trunk, size: 31905
2018-09-06
03:06
Typo fix; patch by jungleboogie in forum post ID 775e4c0771. file: [ba0d0f2190] check-in: [c8ef388b28] user: wyoung branch: trunk, size: 31690
2018-09-03
16:12
Do away with compiler warning about uninitialized variable. file: [c7e514e68e] check-in: [af39da6d55] user: andybradford branch: trunk, size: 31691
2018-08-31
11:32
Omit the Forum Search at the top of the /forum page if search is disabled. file: [86ff3ee3eb] check-in: [d4281bbc03] user: drh branch: trunk, size: 31687
2018-08-25
16:06
Added new CSS class forumPosts to the
containing the list of posts on the /forum page so that skins can target elements of this list differently than others. One immediate use for this is styling read threads differently via a:visited styling. Currently, only one of the stock skins ships with an unconditional a:visited change, so that all links show in the same color regardless of their state. That's fine in most areas of the UI, but in the forum, a skin developer may want something special, so we need a way to mark them differently. This
was already using the broadly-used "fileage" style, but we don't want changes to a:visited and such to affect all other users of fileage, so we need a unique style to this page.
file: [36fe4f1495] check-in: [7778249033] user: wyoung branch: trunk, size: 31576
2018-08-16
16:45
Do not show posts that are awaiting moderation to users without moderator privilege unless they are the same user that generated the post in the first place. file: [12808e5006] check-in: [16c42a0808] user: drh branch: trunk, size: 31565
16:13
Adjust the /forum page so that it for users without forum moderator privilege, it pretends that unmoderated posts do not exist, and for user with moderator privilege it paints an "Awaiting Moderator Approval" message on posts that need moderation. file: [a63e418140] check-in: [ef7f85eecd] user: drh branch: trunk, size: 30908
12:31
Fix the /forum page so that it links to the most recent post. file: [3a531495d4] check-in: [b0ae37c039] user: drh branch: trunk, size: 30345
07:21
Improved locality of a variable. No functional change. file: [5b280b2568] check-in: [09103fd2f0] user: wyoung branch: trunk, size: 30251
07:06
Posts are now hidden on the /forum page if they're marked as private (i.e. needing moderator attention) and they were posted by another user, except when the user is a moderator.

(Closed because a different method was implemented on trunk.) file: [f7c0ac56af] check-in: [779eaaae81] user: wyoung branch: hide-post-if-needmod, size: 30675

06:36
Replaced a declare-and-init line pair with a single define-with-value line. No functional change. file: [013fb92894] check-in: [8f47c3f653] user: wyoung branch: trunk, size: 30270
2018-08-15
20:50
Improved title on on the /forum page. file: [3339e5832f] check-in: [dbd96b2c74] user: drh branch: trunk, size: 30286
20:41
On the main /forum screen, provide the new n= and x= query parameters to enable access to older threads. file: [a876f45576] check-in: [aff20904fa] user: drh branch: trunk, size: 30037
20:17
On the "Recent Threads" page (/forum) show the number of messages and the duration of each thread. file: [c47abe0c45] check-in: [a50dfe6fae] user: drh branch: trunk, size: 29268
12:09
Change the default markup language for Forum to Markdown. file: [779c605fdf] check-in: [5f3cb278fd] user: drh branch: trunk, size: 28611
2018-08-11
19:28
Zeroed a pointer in its declaration to squish a warning from GCC 4.8.4 on Ubuntu 14.04 about use of a potentially uninitted pointer. I don't think it's actually possible for the current code to use the pointer in the window between its declaration and first use, but I think we can afford the extra machine instruction this will cost us. (I assume newer GCCs are smart enough to analyze this situation correctly, which is why the warning hasn't been squished earlier.) file: [3c0b36644e] check-in: [892781cb23] user: wyoung branch: trunk, size: 28512
2018-08-10
16:51
Fix the /forum webpage so that it works even if the forumpost table does not exist in the repository. file: [d33e207b1b] check-in: [d73c5fd27e] user: drh branch: trunk, size: 28508
2018-08-07
17:48
Fix the separate-process backoffice so that it works smoothly on linux. Still work to be done on Windows. file: [d38f5bcf1d] check-in: [af7d67c6a2] user: drh branch: fork-backoffice, size: 28415
2018-07-31
17:13
Only show the "Moderation Requests" submenu button if there exist one or more posts in need of moderation. file: [4039e67056] check-in: [397c32b6bb] user: drh branch: forum-v2, size: 28396
17:05
Try to make moderation a little easier, as recent experience suggests that will be a big deal with the forum. file: [65d942b49d] check-in: [a9e5a1eefd] user: drh branch: forum-v2, size: 28373
15:49
Fix the redirect that occurs after a forum post is rejected by the moderator. file: [63f9c74858] check-in: [6a667edb09] user: drh branch: forum-v2, size: 28281
04:08
Add the /forum page with search and a list of recent threads. file: [4a886a05a7] check-in: [05105248a1] user: drh branch: forum-v2, size: 28061
01:03
If the user is not logged in, prompt them to do so before continuing to the forum entry pages. file: [d105e2c347] check-in: [009ca1f74e] user: drh branch: forum-v2, size: 26616
2018-07-27
13:52
Separate /forumpost and /forumthread pages. file: [f0acb4ea59] check-in: [2dfb887310] user: drh branch: forum-v2, size: 24799
13:29
Improvements to forum thread display. file: [6c92a16258] check-in: [fd06544c04] user: drh branch: forum-v2, size: 24155
2018-07-26
01:33
Automatic scroll to the specific message of the thread when calling /info on a forum message. file: [3e3625bcd3] check-in: [8f0e18f4b0] user: drh branch: forum-v2, size: 23405
01:02
Fixes to the forum hierarchical display algorithm. file: [1e370d0f93] check-in: [9757488a5d] user: drh branch: forum-v2, size: 23379
2018-07-25
22:34
Begin adding style to the forum display. file: [2cf144b498] check-in: [8eccd9a221] user: drh branch: forum-v2, size: 22507
21:00
Hierarchical display of forum threads. file: [f085ad9638] check-in: [7da1299685] user: drh branch: forum-v2, size: 21543
19:00
Improved timeline messages for forum events. file: [e9398d4288] check-in: [e9b13d68a7] user: drh branch: forum-v2, size: 13617
17:53
Further improvements to webpage_error() and webpage_assert(). Fix forum processing so that moderator approval and disapproval work. Add the "Delete" feature to forum that simply nulls out the page using an edit. file: [2e032aefa9] check-in: [32bbb9a9fc] user: drh branch: forum-v2, size: 13425
16:10
Add the website_assert() macro. Fixes to forum post editing. file: [44373807c3] check-in: [e67efdd784] user: drh branch: forum-v2, size: 12481
15:02
If the user has the 'D' capability and the "showqp" query parameter exists, then all query parameters are shown at the top of the webpage. Also, fix some issues with forum. file: [6af774e22c] check-in: [b48068ded3] user: drh branch: forum-v2, size: 11129
13:48
Make forum posts visible to object_description(). Add new diagnostics visible to users with the new "D" capability. file: [55c85a4788] check-in: [2883fb80cf] user: drh branch: forum-v2, size: 10907
13:09
Initial implementation of the forum reply screen. file: [872627bd24] check-in: [c35fe945d2] user: drh branch: forum-v2, size: 10677
11:25
Enhance the webpage_error() routine to show the complete calling environment to authorized users. Also, continuing work on forum. file: [2dc7d9c8cb] check-in: [5fcf49f104] user: drh branch: forum-v2, size: 8326
2018-07-24
23:37
Forum posts appear in the timeline. The /info command displays posts. file: [17f5cd3cd7] check-in: [449f06c296] user: drh branch: forum-v2, size: 7272
19:44
Work toward pages to enter forum posts. This is an incremental check-in to save state and definitely does not work. file: [274f2fd6ec] check-in: [7b5099ea44] user: drh branch: forum-v2, size: 6479
2018-07-22
18:14
Begin reimplementing the forum webpages. This is a non-functional incremental check-in. file: [c8f00986bd] check-in: [2b8b189418] user: drh branch: forum-v2, size: 2785
2018-06-26
11:54
Fix compiler warnings on windows. Fix the file_directory_size() function so that it works on windows. file: [0fbb5ecb5e] check-in: [6a7d2ad8f1] user: drh branch: trunk, size: 11166
2018-06-22
01:28
Fix harmless compiler warnings. file: [13cff4cdb9] check-in: [5fde17bbbc] user: drh branch: email-alerts, size: 11155
2018-06-20
01:35
Fix the mimetype selector. Improved styling of the forum display. file: [fc8ffcb64d] check-in: [837b1cb59b] user: drh branch: forum-brainstorm-1, size: 11272
2018-06-16
15:08
Fix minor issues with Forum editing. file: [ed2140b28f] check-in: [c626d1c06c] user: drh branch: forum-brainstorm-1, size: 11216
13:36
Progress toward getting the forum to actually work. This is an incremental check-in. file: [080d7f7ea2] check-in: [4814c41a9a] user: drh branch: forum-brainstorm-1, size: 10802
2018-06-15
20:48
Rough and untested implementation for forum display and reply. Add two new capabilities for posting to the forum not subject to moderation, and for the ability to edit posts from others. file: [9c9605d873] check-in: [f8927901c2] user: drh branch: forum-brainstorm-1, size: 8695
2018-06-14
19:17
Added: This code demonstrates ideas on how to implement a Forum feature in Fossil. This is just ideas - it is not even a working prototype. This change was originally stashed, but then I thought it better to check it in on a branch for the historical record. file: [05f5536c80] check-in: [1e3637392a] user: drh branch: forum-brainstorm-1, size: 3213