Show/Hide [spoiler] tags not working

Discuss issues and requests related with the forum software
RickC
Posts: 299
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?
RickC
Posts: 299
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: 6222
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: 299
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: 6222
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: 1604
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);

Return to “Forum Issues”

Who is online

Users browsing this forum: No registered users and 26 guests