📝 gemini_checkpoint.mdv3.3.4 · 2026-09-02

Checkpoint for Gemini — LTV/LMV theming not rendering

Where this stands right now

Andrew's forum (drugs-and-users.org, SMF 2.0.19 fork, CentOS 6.10) has two BBCode mods with a real, currently UNRESOLVED bug: their theme CSS is not visibly rendering on live posts, even though the underlying tag/content logic works.

The actual symptom (confirmed via a real screenshot on live production)

A [ltv] box renders structurally correct — collapsible arrow, search bar, theme <select> dropdown showing the right option selected (e.g. "Dark Cyan") — but with zero visual styling: no card background, no colors, no rounded corners, default browser widget appearance throughout. The content and JS-driven parts (search, theme dropdown value) work; the CSS does not visibly apply.

The one thing that was NOT yet confirmed before this session ended

Both LTV and LMV emit their <style>/<script> block inline, embedded directly inside the post body content (i.e. as part of what the BBC tag's validate() callback returns), NOT via the page <head>. Every other <style>/<script> tag visible in this forum's real page source (checked via grep -A 20 "<style>" lmvhtml on an actual saved page source) lives in the <head>, injected by other installed mods (BBCode-YouTube2.css, md_bbcode.css, a signature "blinkme" <style> block, etc.) — none of those are comparable, since they're head-level, not post-body-level.

Open, untested hypothesis at time of handoff: something in this fork's post-rendering pipeline may be stripping or sanitizing <style>/<script> tags specifically when they appear inside post body content, while leaving head-level injection untouched. This would explain the symptom exactly: structural HTML (div/select/input elements) survives, but the <style> tag and its contents get silently removed or neutered before reaching the browser.

Two direct checks that were about to be run, never completed:

grep -c "ltv-wrapper" lmvhtml

(on a real saved page source of a post containing [ltv]) — if this comes back 0, the class name that the CSS block should have injected never made it into the rendered page at all, confirming something strips it upstream.

Also worth confirming: does an LMV card on a real live post currently show actual colors (rounded card, colored header) or is it also just plain unstyled text? This was never actually confirmed on production — every "LMV renders correctly" verification done today was against an isolated test file, never Andrew's actual live server output. If LMV is ALSO unstyled on production, this is a shared/systemic issue, not an LTV-specific bug — meaning the fix is not "something wrong in LTVBBC.php's CSS" but something in the render pipeline itself (SMF core, or a security/sanitizer mod, stripping inline <style> from post content).

What was ruled out today (verified, not guessed)

Known messy state worth being aware of

Today involved a LOT of Package-Manager/file-mixup confusion (documented in full in the conversation history, not repeated here). The most relevant residue: LMV's live install state does not cleanly match what Package Manager's own bookkeeping believes is installed (a hybrid of an old v3.0 registration plus a manually WinSCP'd v3.3.4 LMVBBC.php). This was left deliberately alone once it was confirmed working for LMV's specific crash/autodisplay bugs — but it's relevant context if theming turns out to be connected to anything install/registration-related rather than pure CSS/output-sanitization.

Files available in this conversation's outputs if needed

Suggested first move

Rather than more theorizing: get a live view-source of an actual post containing [ltv], search specifically for ltv-wrapper (the class name the CSS block targets) and for the literal string <style> immediately around where the LTV box sits in the body — not in the <head>. That single piece of real evidence (present vs. stripped vs. present-but-something-else) will point directly at whether this is a CSS/output problem in the mod itself, or a sanitization/rendering-pipeline problem elsewhere in the stack.