Show/Hide [spoiler] tags not working

Post a reply


In an effort to prevent automatic submissions, we require that you complete the following challenge.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Show/Hide [spoiler] tags not working

Re: Show/Hide [spoiler] tags not working

Post by joedf » 06 Nov 2018, 23:46

Fixed. :+1:

Re: Show/Hide [spoiler] tags not working

Post by tmplinshi » 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);

Re: Show/Hide [spoiler] tags not working

Post by swagfag » 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

Re: Show/Hide [spoiler] tags not working

Post by tmplinshi » 06 Nov 2018, 09:50

Re: Show/Hide [spoiler] tags not working

Post by RickC » 06 Nov 2018, 08:48

Many thanks, @swagfag, for the workaround.

Re: Show/Hide [spoiler] tags not working

Post by swagfag » 06 Nov 2018, 08:43

Quote the user to reveal their contents

Re: Show/Hide [spoiler] tags not working

Post by RickC » 06 Nov 2018, 08:02

Thanks for the confirmation, @gregster.

Re: Show/Hide [spoiler] tags not working

Post by gregster » 06 Nov 2018, 07:55

Yes.
It needs work.

Show/Hide [spoiler] tags not working

Post by RickC » 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?

Top