dopetalk does not endorse any advertised product nor does it accept any liability for it's use or misuse


Our Discord Notification Server invitation link is https://discord.gg/jB2qmRrxyD

Author Topic: Liteweight Text Viewer BBCode  (Read 10 times)

Offline Chip (OP)

  • Server Admin
  • Hero Member
  • *****
  • Administrator
  • *****
  • Join Date: Dec 2014
  • Location: Australia
  • Posts: 7339
  • Reputation Power: 0
  • Chip has hidden their reputation power
  • Gender: Male
  • Last Login:Today at 06:34:42 AM
  • Deeply Confused Learner
  • Profession: IT Engineer now retired
Liteweight Text Viewer BBCode
« on: Yesterday at 11:57:58 PM »
📎 Click on me to view all attachments
ListAttBBC  |  v6.8  |  2026-09-01  |  Andrew.human & Claude.ai
#FileSizeDownloadsInfoDL
00LTVBBM -- Forum mod errors in Display.template.php4.9 MB0ℹ️⬇️
01gemini_checkpoint.md6.5 KB0ℹ️⬇️
02ltv_bbcode_v2.3.zip12.7 KB0ℹ️⬇️
03templ83.5 KB0ℹ️⬇️
04Live_cmds.txt2.6 MB0ℹ️⬇️
05Fixing SMF BBC Theme Styling FAIL.pdf672.5 KB2ℹ️⬇️
06ltv_bbcode_v2.5.zip6.2 KB0ℹ️⬇️
07ltv_bbcode_v2.4.zip4.6 KB0ℹ️⬇️
[ltv=autodisplay-scroll]auto[/ltv]

Quote
hi, look Claude CANNOT get this simple task working. I have provided you with a checkpoint and please look at the whole package (it installs the BBC ok)  but all your themes don't work and the worst part it that it is supposed to automatically display and txt files  - the whole tool is Liteweight Text Viewer ---> this is the BBC that controls it: [ltv=autodisplay-scroll]auto[/ltv]

[ltv=40]
1111
2222
3333
======
[/ltv]  ---> please try to help as i am fed up with him at the moment - no love lost but i have had enough !


[ltv=scroll20]
      LTV - Lightweight Text Viewer 
==================================================

[ltv=OPTIONS]raw text[/ltv]

Inline, self-contained, scrollable, searchable text box. No
attachment dependency at all - the content is whatever sits between
the tags, rendered as literal (never BBC-parsed) text, intended for
logs, code, and other dumps where stray [ ] characters must not be
interpreted as tags.

OPTIONS (hyphen-joined, any combination):
  autodisplay          box starts OPEN (expanded)
  noautodisplay        box starts collapsed, click to view (default)
  scrollNN             lines-per-window, e.g. scroll20/scroll30/scroll40
  scroll / inline-scroll   explicit request for the default (20) lines
  NN (bare number)     legacy v1.x form, same as scrollNN

Examples:
  [ltv=20]...paste a log here...[/ltv]
  [ltv=scroll40]...longer output, taller window...[/ltv]
  [ltv=autodisplay-scroll30]...starts open, 30-line window...[/ltv]
  [ltv]...uses the default 20-line collapsed window...[/ltv]

EMPTY CONTENT: if nothing is typed between the tags (or only
whitespace), the tag renders NOTHING AT ALL - no box, no toolbar, no
empty scroll window. The literal word "auto" (case-insensitive,
whitespace-trimmed) is treated the same way - this is the established
sentinel already used with pdf/lmv on this fork, needed because SMF
2.1.x's own BBC tag-matching regex can fail on genuinely zero-length
content, causing the tag to never even reach validate() and instead
render as raw literal [tag][/tag] text. "auto" guarantees the tag
parses correctly on 2.1.x while still staying invisible. Real content
that merely CONTAINS the substring "auto" (e.g. "automatic backup
completed") is NOT affected - only an exact match after trimming and
lowercasing counts.

This lets a standing placeholder tag live in a signature or post-
header template - e.g. [ltv=autodisplay-scroll]auto[/ltv] - and stay
invisible until real content is actually typed in for a given post.

SEARCH: multi-word (whitespace-split terms, OR-matched, all
highlighted), live-as-you-type (debounced) plus Enter/Shift+Enter and
prev/next buttons. Stepping between matches moves a highlight class
only - it does not rebuild the box or reset scroll position.

THEMES: 11 built-in themes plus a per-box switcher (shares the
ise_misc_theme localStorage key with ISE_text_viewer.html and other
CollabCore viewers, so a theme choice carries across them).

No attachment scanning, no attach-NN, no autodisplay-across-post
concept the way PDF/LMV have it - by design, since LTV's content is
always literally what's between its own tags, never derived from the
post's attachment list.

Install: no Display.php/Display.template.php patch needed at all
(unlike pdf/lmv/listatt) - registers via integrate_bbc_codes +
integrate_pre_include only. Compatible with both SMF 2.0.x and 2.1.x
without branch-specific install logic, since there's no
attachment-render anchor to differ between them.

[/ltv]
« Last Edit: Today at 12:24:51 AM by Chip »
friendly
0
funny
0
informative
0
agree
0
disagree
0
like
0
dislike
0
No reactions
No reactions
No reactions
No reactions
No reactions
No reactions
No reactions
Our Discord Server invitation link is https://discord.gg/jB2qmRrxyD

Tags:
 


dopetalk does not endorse any advertised product nor does it accept any liability for it's use or misuse





TERMS AND CONDITIONS

In no event will d&u or any person involved in creating, producing, or distributing site information be liable for any direct, indirect, incidental, punitive, special or consequential damages arising out of the use of or inability to use d&u. You agree to indemnify and hold harmless d&u, its domain founders, sponsors, maintainers, server administrators, volunteers and contributors from and against all liability, claims, damages, costs and expenses, including legal fees, that arise directly or indirectly from the use of any part of the d&u site.


TO USE THIS WEBSITE YOU MUST AGREE TO THE TERMS AND CONDITIONS ABOVE


Founded December 2014
SimplePortal 2.3.6 © 2008-2014, SimplePortal