Spoiler command for forum posts?  [Solved]

If you are having a problem with logging into the site or with registering, then post under this forum to try to get help, or just use the "contact us" link at the bottom of the page to notify the Site Administrators.
Message
Author
User avatar
paul1149
Posts: 505
Joined: Fri Dec 29, 2017 11:39 am

Spoiler command for forum posts?

#1 Post by paul1149 »

I think it would be nice to have a spoiler command for forum posts. This way long code and text output could be initially hidden for easy scrolling and to clean up threads visually. I've seen that it's available for phpbb, but apparently it's an add-on.

Be well.
MX-19-KDE x64, on Ryzen 5, 16GB RAM, SSD. Nvidia graphics.

User avatar
j2mcgreg
Global Moderator
Posts: 6536
Joined: Tue Oct 23, 2007 12:04 pm

Re: Spoiler command for forum posts?

#2 Post by j2mcgreg »

paul1149 wrote: Wed Dec 20, 2023 9:45 am I think it would be nice to have a spoiler command for forum posts. This way long code and text output could be initially hidden for easy scrolling and to clean up threads visually. I've seen that it's available for phpbb, but apparently it's an add-on.

Be well.
You can do that now by preceding and terminating the output with code tags or by highlighting the output and then clicking on "</>" in the toolbar.
HP 15; ryzen 3 5300U APU; 500 Gb SSD; 8GB ram
HP 17; ryzen 3 3200; 500 GB SSD; 12 GB ram
Idea Center 3; 12 gen i5; 256 GB ssd;

In Linux, newer isn't always better. The best solution is the one that works.

User avatar
paul1149
Posts: 505
Joined: Fri Dec 29, 2017 11:39 am

Re: Spoiler command for forum posts?

#3 Post by paul1149 »

The code tags hide their content?
MX-19-KDE x64, on Ryzen 5, 16GB RAM, SSD. Nvidia graphics.

User avatar
CharlesV
Global Moderator
Posts: 7054
Joined: Sun Jul 07, 2019 5:11 pm

Re: Spoiler command for forum posts?

#4 Post by CharlesV »

Code tags put it all in to a window that has scrolling.. like this

Code: Select all

Snapshot created on: 20230207_1704
System:    Kernel: 6.6.2-1-liquorix-amd64 [6.6-2~mx21ahs] x86_64 bits: 64 compiler: gcc v: 10.2.1 
           parameters: audit=0 intel_pstate=disable rcupdate.rcu_expedited=1 
           BOOT_IMAGE=/boot/vmlinuz-6.6.2-1-liquorix-amd64 root=UUID=<filter> ro quiet splash 
           Desktop: Xfce 4.18.1 tk: Gtk 3.24.24 info: xfce4-panel, cairo-dock wm: xfwm 4.18.0 
           vt: 7 dm: LightDM 1.26.0 Distro: MX-21.3_x64 Wildflower February 07  2023 
           base: Debian GNU/Linux 11 (bullseye) 
Machine:   Type: Laptop System: HP product: HP ENVY m7 Notebook v: Type1ProductConfigId 
           serial: <filter> Chassis: type: 10 serial: <filter> 
           Mobo: HP model: 81D4 v: KBC Version 87.21 serial: <filter> UEFI-[Legacy]: Insyde 
           v: F.56 date: 06/12/2018 
Battery:   ID-1: BAT0 charge: 41.4 Wh (96.1%) condition: 43.1/43.1 Wh (100.0%) volts: 12.8 
           min: 11.6 model: Hewlett-Packard Primary type: Li-ion serial: <filter> 
           status: Not charging 
CPU:       Info: Dual Core model: Intel Core i7-7500U bits: 64 type: MT MCP arch: Amber/Kaby Lake 
           note: check family: 6 model-id: 8E (142) stepping: 9 microcode: F4 cache: L2: 4 MiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 23199 
           Speed: 3397 MHz min/max: 400/2700 MHz boost: enabled Core speeds (MHz): 1: 1870 2: 3301 
           3: 2166 4: 2637 
           Vulnerabilities: Type: gather_data_sampling mitigation: Microcode 
           Type: itlb_multihit status: KVM: VMX disabled 
           Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable 
           Type: mds mitigation: Clear CPU buffers; SMT vulnerable 
           Type: meltdown mitigation: PTI 
           Type: mmio_stale_data mitigation: Clear CPU buffers; SMT vulnerable 
           Type: retbleed mitigation: IBRS 
           Type: spec_rstack_overflow status: Not affected 
           Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl 
           Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization 
           Type: spectre_v2 mitigation: IBRS, IBPB: conditional, STIBP: conditional, RSB filling, 
           PBRSB-eIBRS: Not affected 
           Type: srbds mitigation: Microcode 
           Type: tsx_async_abort status: Not affected 
Graphics:  Device-1: Intel HD Graphics 620 vendor: Hewlett-Packard driver: i915 v: kernel 
           bus-ID: 00:02.0 chip-ID: 8086:5916 class-ID: 0300 
           Device-2: NVIDIA GM108M [GeForce 940MX] vendor: Hewlett-Packard driver: N/A 
           alternate: nouveau bus-ID: 04:00.0 chip-ID: 10de:134d class-ID: 0302 
           Device-3: Chicony HP IR Camera type: USB driver: uvcvideo bus-ID: 1-5:2 
           chip-ID: 04f2:b591 class-ID: 0e02 serial: <filter> 
           Device-4: Chicony HP TrueVision HD type: USB driver: uvcvideo bus-ID: 1-6:3 
           chip-ID: 04f2:b592 class-ID: 0e02 serial: <filter> 
           Display: x11 server: X.Org 1.20.14 compositor: xfwm4 v: 4.18.0 driver: 
           loaded: modesetting unloaded: fbdev,vesa display-ID: :0.0 screens: 1 
           Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2") 
           s-diag: 582mm (22.9") 
           Monitor-1: eDP-1 res: 1920x1080 hz: 60 dpi: 128 size: 382x215mm (15.0x8.5") 
           diag: 438mm (17.3") 
           OpenGL: renderer: Mesa Intel HD Graphics 620 (KBL GT2) v: 4.6 Mesa 22.0.5 
           direct render: Yes 
Audio:     Device-1: Intel Sunrise Point-LP HD Audio vendor: Hewlett-Packard driver: snd_hda_intel 
           v: kernel alternate: snd_soc_skl,snd_soc_avs,snd_sof_pci_intel_skl bus-ID: 00:1f.3 
           chip-ID: 8086:9d71 class-ID: 0403 
           Sound Server-1: ALSA v: k6.6.2-1-liquorix-amd64 running: yes 
           Sound Server-2: PulseAudio v: 15.0 running: yes 
Network:   Device-1: Intel Wireless 7265 driver: iwlwifi v: kernel modules: wl port: 5040 
           bus-ID: 01:00.0 chip-ID: 8086:095a class-ID: 0280 
           IF: wlan0 state: up mac: <filter> 
           Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
           vendor: Hewlett-Packard driver: r8169 v: kernel port: 4000 bus-ID: 02:00.0 
           chip-ID: 10ec:8168 class-ID: 0200 
           IF: eth0 state: down mac: <filter> 
Bluetooth: Device-1: Intel Bluetooth wireless interface type: USB driver: btusb v: 0.8 
           bus-ID: 1-8:4 chip-ID: 8087:0a2a class-ID: e001 
           Report: hciconfig ID: hci0 rfk-id: 23 state: up address: <filter> bt-v: 2.1 lmp-v: 4.2 
           sub-v: 1000 hci-v: 4.2 rev: 1000 
           Info: acl-mtu: 1021:5 sco-mtu: 96:6 link-policy: rswitch hold sniff 
           link-mode: slave accept 
           service-classes: rendering, capturing, object transfer, audio, telephony 
Drives:    Local Storage: total: 465.76 GiB used: 298.39 GiB (64.1%) 
           SMART Message: Unable to run smartctl. Root privileges required. 
           ID-1: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 860 EVO 500GB size: 465.76 GiB 
           block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> 
           rev: 3B6Q scheme: MBR 
Partition: ID-1: / raw-size: 457.75 GiB size: 449.5 GiB (98.20%) used: 298.38 GiB (66.4%) fs: ext4 
           dev: /dev/sda1 maj-min: 8:1 
Swap:      Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default) 
           ID-1: swap-1 type: partition size: 8 GiB used: 9.7 MiB (0.1%) priority: -2 
           dev: /dev/sda2 maj-min: 8:2 
Sensors:   System Temperatures: cpu: 39.0 C mobo: 39.0 C 
           Fan Speeds (RPM): N/A 
Repos:     Packages: note: see --pkg apt: 2724 lib: 1327 flatpak: 0 
           No active apt repos in: /etc/apt/sources.list 
           No active apt repos in: /etc/apt/sources.list.d/brave-browser-release.list 
           Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list 
           1: deb http://deb.debian.org/debian bullseye-updates main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/debian.list 
           1: deb http://deb.debian.org/debian bullseye main contrib non-free
           2: deb http://security.debian.org/debian-security bullseye-security main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/google-earth-pro.list 
           1: deb [arch=amd64] http://dl.google.com/linux/earth/deb/ stable main
           Active apt repos in: /etc/apt/sources.list.d/mx.list 
           1: deb http://la.mxrepo.com/mx/repo/ bullseye main non-free
           2: deb http://la.mxrepo.com/mx/repo/ bullseye ahs
           Active apt repos in: /etc/apt/sources.list.d/signal-xenial.list 
           1: deb [arch=amd64 signed-by=/usr/share/keyrings/signal-desktop-keyring.gpg] https://updates.signal.org/desktop/apt xenial main
           Active apt repos in: /etc/apt/sources.list.d/spideroakone.list 
           1: deb https://apt.spideroak.com/ubuntu/ release restricted
Info:      Processes: 341 Uptime: 9d 21h 22m wakeups: 46 Memory: 15.52 GiB used: 5.16 GiB (33.3%) 
           Init: SysVinit v: 2.96 runlevel: 5 default: 5 tool: systemctl Compilers: gcc: 10.2.1 
           alt: 10 Client: shell wrapper v: 5.1.4-release inxi: 3.3.06 
Boot Mode: BIOS (legacy, CSM, MBR)
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

User avatar
paul1149
Posts: 505
Joined: Fri Dec 29, 2017 11:39 am

Re: Spoiler command for forum posts?

#5 Post by paul1149 »

Yes, that has been my experience too. That is a good thing, it preserves the formatting and sets it off from the body of the post. But presenting the data in an initial collapsed state is another matter altogether.
MX-19-KDE x64, on Ryzen 5, 16GB RAM, SSD. Nvidia graphics.

User avatar
CharlesV
Global Moderator
Posts: 7054
Joined: Sun Jul 07, 2019 5:11 pm

Re: Spoiler command for forum posts?

#6 Post by CharlesV »

The nice things about using code tags is that you can see a small amount of the data up front...

Can you point to an example of what your asking about?
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

User avatar
Eadwine Rose
Administrator
Posts: 14418
Joined: Wed Jul 12, 2006 2:10 am

Re: Spoiler command for forum posts?

#7 Post by Eadwine Rose »

Just be mindful that we are not likely to add more extensions, which is what these are, as the more there are the chances of malfunctions of the forum software becomes larger.
MX-23.6_x64 July 31 2023 * 6.1.0-34amd64 ext4 Xfce 4.20.0 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.216.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030

User avatar
paul1149
Posts: 505
Joined: Fri Dec 29, 2017 11:39 am

Re: Spoiler command for forum posts?

#8 Post by paul1149 »

CharlesV wrote: Wed Dec 20, 2023 10:59 am The nice things about using code tags is that you can see a small amount of the data up front...

Can you point to an example of what your asking about?
Just to be clear, when I come across a code tag here, I see the whole thing, no vertical scrollbar. There is a horizontal scrollbar though. So I'm not sure what you mean by seeing a small amount of the data up front.

It's amazing how hard it is to find a simple video of a spoiler tag in action. I made one here. It's a trivial example of 8 lines of code within a spoiler, but it starts having value when there is a lot of text being hidden.
MX-19-KDE x64, on Ryzen 5, 16GB RAM, SSD. Nvidia graphics.

User avatar
CharlesV
Global Moderator
Posts: 7054
Joined: Sun Jul 07, 2019 5:11 pm

Re: Spoiler command for forum posts?

#9 Post by CharlesV »

Ah, so here ... you can hover over the code piece ( the white box ) and you should see scroll bars ( top to bottom as well as side to side ), and if your on a touch screen, you may have to tap into the code section to see them.

The result of your clicking on that button shows the windowed code - same as here. (just no button )
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

User avatar
richb
Administrator
Posts: 10836
Joined: Wed Jul 12, 2006 2:17 pm

Re: Spoiler command for forum posts?

#10 Post by richb »

an example.

Code: Select all

]jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj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