Show/Hide [spoiler] tags not working

Discuss issues and requests related with the forum software
RickC
Posts: 198
Joined: 27 Oct 2013, 08:32

Show/Hide [spoiler] tags not working

06 Nov 2018, 07:49

For example: https://autohotkey.com/boards/viewtopic ... 445#p12445

I've tried in 4 different browsers/2 devices/2 OS' so the issue is consistent. I use 'Simplicity' as board style.

I guess this is the same issue as with codeboxes?
User avatar
gregster
Posts: 1491
Joined: 30 Sep 2013, 06:48

Re: Show/Hide [spoiler] tags not working

06 Nov 2018, 07:55

Yes.
It needs work.
RickC
Posts: 198
Joined: 27 Oct 2013, 08:32

Re: Show/Hide [spoiler] tags not working

06 Nov 2018, 08:02

Thanks for the confirmation, @gregster.
swagfag
Posts: 1564
Joined: 11 Jan 2017, 17:59

Re: Show/Hide [spoiler] tags not working

06 Nov 2018, 08:43

Quote the user to reveal their contents
RickC
Posts: 198
Joined: 27 Oct 2013, 08:32

Re: Show/Hide [spoiler] tags not working

06 Nov 2018, 08:48

Many thanks, @swagfag, for the workaround.
swagfag
Posts: 1564
Joined: 11 Jan 2017, 17:59

Re: Show/Hide [spoiler] tags not working

06 Nov 2018, 10:48

i couldnt get the expand view to show up, unless i modify the init() function:
boxes.parentNode.previousSibling.innerHTML += ' &middot; <a href="#" onclick="expandCode(this); return false;">EXPAND VIEW</a>';
to
boxes.previousSibling.innerHTML += ' &middot; <a href="#" onclick="expandCode(this); return false;">EXPAND VIEW</a>';
im on SimplicityOld if that makes any difference
tmplinshi
Posts: 1281
Joined: 01 Oct 2013, 14:57

Re: Show/Hide [spoiler] tags not working

06 Nov 2018, 11:34

Oh, I was using prosilver theme.

Fixed and updated to v0.4:
https://greasyfork.org/scripts/374036-ahk-forum-fix

I have changed it to:
var tagP = (boxes.parentNode.tagName.toLowerCase() == 'pre' ? boxes.parentNode.previousSibling : boxes.previousSibling);
User avatar
joedf
Posts: 6693
Joined: 29 Sep 2013, 17:08
Facebook: J0EDF
Google: +joedf
GitHub: joedf
Location: Canada, Quebec
Contact:

Re: Show/Hide [spoiler] tags not working

06 Nov 2018, 23:46

Fixed. :+1:
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500 @ 3.00 GHz, 16GB DDR4 3200 MHz, NVIDIA GTX 1060 6GB | [About Me] | [ASPDM - StdLib Distribution]
[Populate the AHK MiniCity!] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library] | [About the AHK Foundation]

Return to “Forum Issues”

Who is online

Users browsing this forum: No registered users and 3 guests