Date: 2026-12-04 System: DM2S/NX (Next Generation Document and Multimedia Management System) Packages: Collaborative 6.7 → 6.8, LMV 4.7.4 → 4.8.0, LTV 1.15.0 → 1.16.0, listatt 7.7.1 → 7.9.0 Authors: Andrew.human & Claude.ai Status: PLAN. Nothing built yet except listatt Detach (section 4.4), which is built and tested. This document is for review before the build starts. Revision 2 (21:30): adds finding 3.1 item 8, the LMV autodisplay that vanishes (reported by Andrew 21:28), with rule 2.3.8 and its fix in sections 4 to 6. Nothing else changed.
sky-blue, not "Sky Blue"). No help page needed.[lmv][/lmv].Purpose (Andrew): one place to control all three, so software maintenance is easier. Themes identify each "call" or document (for example a different colour for ChatGPT, Gemini, Mistral and Claude transcripts), and you can't have too many themes.
| Time | Decision |
|---|---|
| 17:55 | Same-name conflicts are solved by descriptive names in the style dark-coffee. Use common sense. Do NOT omit any theme. |
| 17:55 | ALL autodisplay cards start CLOSED the first time a reader sees them. After that, each card's own state is remembered. |
| 17:55 | scroll-lg (the large window, also for phones) is kept for LMV and LTV. |
| 19:10 | lg belongs to scroll and immediately follows it. |
| 19:10 | Go-ahead given. Trajectory of DM2S/NX to be upheld. |
| 19:15 | Enforce scroll-lg as the only valid spelling. lg anywhere else is an error, including on the autodisplay switches. |
A. Collaborative 6.8. One new file, CollabCore/CollabThemes.php, holds everything shared:
CollabCore.php 2.3 → 2.4 lists CollabThemes 1.0 in its manifest. Nothing else in Collaborative changes.
B. LMV 4.8.0. Its private theme list, theme CSS and word reader are removed and replaced by calls to CollabThemes. Show/Hide is added to every card form. The editor button inserts the full tag. Autodisplay cards start closed and are remembered per card.
C. LTV 1.16.0. The same as LMV, plus a new editor button using Andrew's icons (ltv.gif for SMF 2.0, ltv.png for SMF 2.1), placed beside LMV's. The colours inside the text-viewer frame come from the shared table.
D. listatt 7.9.0. Shared themes. A theme command accepts all 69 names. The dropdown shows real names. The theme is remembered per box. Detach is included. (7.8.0 is skipped: that number belongs to the earlier detach-only build.)
CollabCore/CollabThemes.php. listatt, LMV and LTV hold no theme colours of their own.indigo, listatt tinted-indigo. These are today's looks, so an untagged card or box does not change.From LMV and LTV (45, colours unchanged): amber, amber-terminal, aqua-marine, arctic, black-yellow, blueprint, coffee, coral-reef, crimson, cyberpunk, daylight, deep-ocean, dracula, ember, emerald, forest, green-bar, gruvbox, highcontrast, indigo, lavender-mist, lemon-chiffon, lilac-dream, matrix, midnight, mint-cream, monokai, none, nord, paper-ink, peach-puff, pearl-white, pink, rose-quartz, sepia, sky-blue, slate, solarized-dark, solarized-light, spring-bud, sunset-glow, synthwave, teal, tokyo-night, turquoise.
listatt-only (9, colours unchanged): autumn, classic-light, lavender, mono-slate, nordic-frost, ocean, retro-amber, sunset, teal-breeze.
listatt's version of a name LMV also uses (15, renamed so none is lost):
| listatt's old name | New name | What is different from the shared one |
|---|---|---|
| coffee | dark-coffee |
dark (the shared one is light) |
| midnight | navy-midnight |
navy, sky-blue titles |
| cyberpunk | violet-cyberpunk |
deep violet |
| dracula | purple-dracula |
purple titles, grey cards |
| matrix | green-matrix |
green titles |
| emerald | mint-emerald |
mint cards |
| amber | bright-amber |
orange titles, amber cards |
| crimson | bright-crimson |
bright titles, pink cards |
| sepia | brown-sepia |
brown titles |
| slate | grey-slate |
grey cards |
| nord | bright-nord |
brighter text |
| pink | rosy-pink |
deeper background |
| solarized-light | orange-solarized |
orange titles |
| indigo | tinted-indigo |
lavender cards |
| none | plain-white |
fixed white; the shared none uses the forum's own colours |
Measured difference from the shared version (average per colour, 0 = identical):
coffee 467.7 none 261.3 cyberpunk 154.6 dracula 129.7 midnight 111.3
matrix 75.6 emerald 58.4 amber 44.7 sepia 43.1 crimson 38.9
pink 29.9 nord 29.6 slate 29.0 solarized-light 26.0 indigo 15.4
The last five are near-twins. They are kept because no theme may be omitted.
The value after = is a list of words joined by -, in any order. Each word may appear once.
| Group | Words | Meaning |
|---|---|---|
| Form (at most one) | inline |
text typed between the tags |
a number, e.g. 10217 |
that attachment, by its permanent ID | |
attach-NN (LMV only) |
the NN-th .md attachment of the post, counted from 00 | |
autodisplay / noautodisplay |
switch the post's autodisplay on or off | |
| no form word (LMV only) | a link between the tags is fetched; an empty body shows the post's newest .md | |
| Scroll (at most one) | scroll |
card capped at 800px, with its own scrollbar |
scroll-lg |
capped at 1400px. lg is valid ONLY written straight after scroll. |
|
noscroll |
no cap | |
| Show/Hide (at most one) | show (old spelling open still accepted) |
the card gets a Show/Hide button and starts open |
hide |
the card gets a Show/Hide button and starts closed | |
| Theme (at most one) | theme-NAME |
the card starts in theme NAME |
Rules:
scroll with noscroll, show with hide) give a red error naming the valid words. A tag never vanishes silently.lg anywhere except straight after scroll gives the red error "write scroll-lg".theme-NAME on the autodisplay switch sets the starting theme of that post's autodisplayed cards (new; today LMV mishandles it and LTV gives an error, see 3.1 item 6).attach-NN and no link form, as today.[lmv=inline-scroll-show-theme-none] and [/lmv] around the selection.[ltv=inline-scroll-show-theme-none] and [/ltv].lmv.gif / lmv.png; LTV uses Andrew's ltv.gif (SMF 2.0) and ltv.png (SMF 2.1), 23 × 23.Each card (LMV, LTV) and each box (listatt) remembers the reader's own changes: theme, and for LMV/LTV also Show/Hide. Scroll stays set by the tag; readers have no scroll button.
The memory belongs to one reader in one browser. It is not written into the post. Another PC or phone starts from the tag.
The tag sets how a card starts. A remembered change wins over the tag until the reader changes it again, or until the tag's own theme/show/hide words are edited. Then the tag wins again.
Cards that show an attachment are remembered by post number and attachment ID. Other cards are remembered by post number, their position among that mod's cards in the post, and their title.
Expand all / Collapse all act on the cards in their own group and remember each card.
Choices readers have already saved are carried over, not reset:
lmv_theme_card, lmv_card and lmv_openltv_theme_cardise_misc_theme, with old listatt names mapped to their new names (coffee → dark-coffee and so on)They are read once as a fallback and never written again.
listatt stops writing ise_misc_theme (see 3.1 item 4).
read(value, mod):
v = lower(trim(value))
if v contains "theme-":
take the LONGEST theme name that follows "theme-" -> theme (unknown name -> red error listing all 69)
remove "theme-NAME" from v
if v contains "scroll-lg": take it -> scroll = large ; remove it
words = v split on "-" (empty pieces dropped; "attach-NN" kept together)
for each word:
scroll | noscroll -> scroll setting
show | open | hide -> start state
inline | autodisplay | noautodisplay | NUMBER | attach-NN -> form
lg -> red error "write scroll-lg"
anything else -> red error listing valid words
seen before, or the opposite already seen -> red error
return form, scroll, start state, theme
lg not straight after scroll, or any unknown word, makes the card vanish silently. LMV shows the raw text, LTV shows nothing. Real SMF 2.1 parser, current LMV 4.7.4 and LTV 1.15.0:
[lmv=inline-scroll-lg] lmv-viewer-scroll-lg
[ltv=inline-scroll-lg] ltv-viewer-scroll-lg
[lmv=inline-lg-scroll] no card: line oneline two
[ltv=inline-lg-scroll] no card: ""
[lmv=lg-scroll-inline] no card: line oneline two
[ltv=lg-scroll-inline] no card: ""
[lmv=inline-scroll-open] no card: line oneline two
[ltv=inline-scroll-open] no card: ""
The lg rule was written into the code (LTVBBC.php:58: the "lg" must follow "scroll"). The test suites never tried any other position; the only scroll-lg case tested was inline-theme-$t-scroll-lg (LMV tests/build_page.php:43).
Three private theme lists had drifted apart. listatt's came from the ISE theme stylesheet, and LTV copied LMV's in 1.10.0. Fifteen names have different colours in listatt than in LMV/LTV:
ListAttBBC.php:2460 .listatt-box[data-theme="coffee"] --la-bg: #2b2118 (dark)
LMVBBC.php:741 .lmv-card[data-theme="coffee"] --lmv-bg: #fdfbf7 (light)
Nothing crosses between mods today; each simply has its own copy.
Autodisplay start state differed: LMV starts closed, LTV starts open. Resolved by rule 2.3.4.
listatt's dropdown silently sets the ISE text viewer's default theme. listatt saves its choice under ise_misc_theme, the same storage key ISE_text_viewer.html (const ISE_THEME_KEY = 'ise_misc_theme') and ISE_help.html read as their default. Changing a listatt box therefore changes another program's default. The fix: listatt stops writing it.
LMV's Expand all / Collapse all wipes every card's own saved Show/Hide on every post and replaces it with one setting for all posts. Resolved by rule 2.5.5.
[lmv=autodisplay-theme-...] and typos do not do what they say. Any LMV value it does not recognise is read as "0", which shows the post's newest .md in place. Real SMF 2.1 parser, post 30:
[lmv=autodisplay-theme-sepia] card title: nexus-8075.md autodisplay switched on for post 30: no
[lmv=autodsplay] card title: nexus-8075.md autodisplay switched on for post 30: no
[lmv=autodisplay] card title: (no card) autodisplay switched on for post 30: yes
A typo looks like it works. Resolved by rule 2.3.2 (red error) and 2.3.5 (theme on autodisplay).
LTV never saves Show/Hide. Every page load resets it. Resolved by section 2.5.
LMV autodisplay vanishes for minutes at a time (reported 21:28: "LMV didn't autodisplay and it keeps happening; to fix it I remove scroll and put it back").
Cause: [lmv=autodisplay] works by leaving a note ("autodisplay is on for post N") while SMF parses the post. SMF keeps a copy of a parsed post for 4 minutes when the post is long (over 2,400 characters, or 1,000 at cache level 2 or higher) and took more than 0.05 seconds to parse. Every view in those 4 minutes gets the copy, the tag code never runs, the note is never left, and no .md cards are drawn. Editing the post changes its text, so the next view parses afresh and the cards come back. SMF 2.1's own code (Subs.php):
2597 if ($cache_id != '' && !empty($cache_enable) && (($cache_enable >= 2 && isset($message[1000])) || isset($message[2400])) && empty($parse_tags))
2602 if (($temp = cache_get_data($cache_key, 240)) != null)
2603 return $temp;
3855 if (isset($cache_key, $cache_t) && microtime(true) - $cache_t > 0.05)
3856 cache_put_data($cache_key, $message, 240);
Reproduced on the real SMF 2.1.6 test forum with LMV 4.7.4, cache on, a long post (post 30, one .md attachment); each line is a separate page view:
--- view 1 (first view after the post is saved)
[lmv=autodisplay-scroll] parse 107.9 ms autodisplay flag set: yes .md cards drawn under the post: 1
--- view 2 (next visitor, within 4 minutes)
[lmv=autodisplay-scroll] parse 0.9 ms autodisplay flag set: NO .md cards drawn under the post: 0
--- view 3 (same)
[lmv=autodisplay-scroll] parse 1.0 ms autodisplay flag set: NO .md cards drawn under the post: 0
--- post edited: scroll removed
[lmv=autodisplay] parse 111.6 ms autodisplay flag set: yes .md cards drawn under the post: 1
--- post edited again: scroll put back
[lmv=autodisplay-scroll] parse 1.1 ms autodisplay flag set: NO .md cards drawn under the post: 0
The last line shows that putting the word back inside the 4 minutes brings back the earlier cached copy, so it fails again. It looks random because it depends on post length, server speed and timing. Scroll has nothing to do with it; any edit would have "fixed" it. LTV's autodisplay and [ltv=NNN] (which stops autodisplay drawing a file twice) use the same kind of note, so they have the same flaw. The PDF mod's autodisplay almost certainly does too (same design; its code is not in this build). listatt hit the same cache in 6.13 and fixed it its own way.
Resolved by rule 2.3.8.
SMF removes the line breaks from a tag's output. This was seen on Live (LMV 4.7.2) and confirmed on SMF 2.1 here: LMV's 15,111-character style block came through with 0 line breaks. All shared CSS and script must therefore work as one line: no // comments, and every statement ends with ;.
| File | Change |
|---|---|
CollabCore/CollabThemes.php |
New, v1.0.0. Everything in sections 2.1 to 2.6. |
CollabCore/CollabCore.php |
2.3 → 2.4. Manifest gains 'CollabThemes' => '1.0'. Nothing else. |
package-info.xml |
6.8. New <upgrade from="6.7"> blocks (2.0 and 2.1) that copy only the two files above; the 6.6 upgrade blocks also gain them. Full install unchanged (require-dir). |
CollabCore-Themes-Manual.md |
New. Manual: rules, theme table, how to add a theme, version history. |
| File | Change |
|---|---|
LMVBBC.php |
Theme list, theme CSS, word reader and card script replaced by CollabThemes calls. Show/Hide on every form. Autodisplay theme word. Autodisplay switch read from the post's own text (rule 2.3.8). Button inserts the full tag via the shared side-by-side helper. Version banner 4.8.0. |
lmv_check_collabcore.php |
Also requires CollabThemes ≥ 1.0. |
package-info.xml, readme.md |
Version, description, history. |
tests/ |
Rebuilt suite (section 5). |
| Unchanged | register/unregister scripts, display patches and install scripts, language file, icons. |
| File | Change |
|---|---|
LTVBBC.php |
As LMV, including rule 2.3.8 for autodisplay and the [ltv=NNN] duplicate check. The viewer-frame colour table is generated from the shared table (checked: today's 44 entries follow one fixed rule from the card colours, so nothing changes). New integrateButton(). Version banner 1.16.0. |
ltv_register.php, ltv_unregister.php |
Add/remove the editor-button hook on SMF 2.0. |
package-info.xml |
Button hook on SMF 2.1; installs and removes ltv.gif and ltv.png in $imagesdir/bbc. |
ltv.gif, ltv.png |
New, Andrew's icons. |
ltv_check_collabcore.php |
Also requires CollabThemes ≥ 1.0. |
LTV_manual.md, CHANGELOG.md, readme.txt, tests/ |
Updated. |
| File | Change |
|---|---|
ListAttBBC.php |
Theme list and CSS from CollabThemes. Dropdown shows names; one box at a time; remembered per box; default tinted-indigo. Theme command accepts all 69. Detach (from the 7.8.0 build). |
listatt_detach.php |
New, v1.0.0, already built and tested (section 5.3). Moves attachments to one holding post chosen once; deletes nothing; a nexus link needs two separate warnings. |
listatt_check_collabcore.php |
Also requires CollabThemes ≥ 1.0. |
package-info.xml, listatt_manual.md, readme.md, changelog.md |
Updated. |
Why Detach moves files to a holding post rather than leaving them on no post: SMF's own Find and Repair deletes attachments that belong to no post.
Collaborative 6.8 first, then LMV, LTV and listatt in any order. Each mod's check script refuses to install without CollabThemes 1.0, with a plain message, instead of installing and breaking at runtime.
[lmv=autodisplay-theme-x] now switches autodisplay on in that theme, instead of showing the newest .md in place. [ltv=autodisplay-theme-x] now works instead of giving a red error.lg anywhere except in scroll-lg is an error, including [lmv=autodisplay-lg-scroll], which 4.7.4 accepted (Andrew's decision, 19:15).[listatt_theme_coffee]) shows the shared colours. Use the new name to keep the old look. Theme commands only exist since 7.7.0 (2026-12-03).show or hide.lg (3.1 item 1).data-theme, and its CSS block exists with all its colours.parse_bbc(), then opened in a browser and clicked:
php -l on every PHP filexmllint --noout on every XML filepackage-info.xml exists in its zipSMF 2.0.19 (Live's fork). No 2.0 source is available in this workspace. 2.0-only pieces (ltv_register.php, the 2.0 button hook) are checked by reading and lint only. First install on a 2.0 test system is the real check.
identical: 324 expected Detach differences: 36 unexpected: 0
29 passed, 0 failed (click tests)
30 passed, 0 failed (endpoint tests: listatt_detach.php)
| # | Risk | Guard |
|---|---|---|
| R1 | A tag form that works today stops working | Old-versus-new comparison of every form (5.1.3); listed changes only |
| R2 | A word order breaks a card | Every order generated and tested (5.1.1) |
| R3 | Live joins lines and breaks a script | One-line-safe output; pages tested with line breaks removed (3.2, 5.1.5) |
| R4 | Readers lose their saved choices | Old keys read as fallback, tested with old data present (2.5.6) |
| R5 | A mod installed before Collaborative 6.8 | Check scripts refuse to install (4.5) |
| R6 | PHP syntax newer than Live's 7.3.25 | Scan before delivery (5.1.8) |
| R7 | SMF 2.0 differences not caught here | 2.0 pieces read and linted; first install on a 2.0 test system (5.2) |
| R8 | Remembered settings belong to one reader in one browser, not the post. Changing your own dropdown does not change what others see. | Documented; edit the tag to change it for everyone (2.5.2) |
| R9 | Inline cards are remembered by position, so inserting a card above one can move its memory to the wrong card | Attachment cards use the attachment ID; editing a tag resets that card (2.5.3, 2.5.4) |
| R10 | Page weight: every card carries the CSS for all 69 themes (LMV already does for 45) | Accepted for now; one cached theme file in CollabCore is the later fix |
| R11 | Five near-twin themes are hard to tell apart in the dropdown | Accepted: no theme may be omitted; the grid shows them side by side |
| R12 | Reading the switch from the post text costs one small database lookup per post that has .md/.txt attachments | Looked up by message number (the table's key), only when such a post is drawn |
| R13 | The PDF mod keeps the same cache flaw | Out of this build; listed in section 7 |
ISE: some multimedia types can't be found by extension. *.mp3, *.m4a, *.wav, *.flac, *.ogg, *.aac, *.wma, *.mp4, *.webm, *.3gp and the common image types work in Media search (ISE 10.6). These types are catalogued by neither indexer, so a search such as *.mov finds nothing:
MediaIndexer.py:247 WHERE LOWER(fileext) IN ('mp4', 'webm', '3gp', 'jpg', 'jpeg', 'png', 'webp', 'avif', 'gif', 'mp3', 'wav', 'm4a', 'flac', 'ogg', 'aac', 'wma')
MiscIndexer.py BINARY_EXTENSIONS = { ... "mov", "avi", "mkv", "flv", "wmv", "mpg", "mpeg", "m4v", "bmp", "tif", "tiff", "ico", "psd", "svg", "heic", ... }One cached theme file in CollabCore instead of CSS repeated in every card (R10).
PDF autodisplay: almost certainly has the same parse-cache flaw as LMV (3.1 item 8). Once LMV and LTV use the shared switch reader, PDF can use it too; send the PDF package when wanted.
End of checkpoint. On approval, the build starts with Collaborative 6.8.