03-03-2019, 04:07 AM
(This post was last modified: 03-03-2019, 04:10 AM by Hyper.
Edit Reason: formatting adjustments
)
Ostrich reported that some of the [spoiler] tag aren't working. After digging through the codes I have found out that the issue occurs with customer spoiler texts like this:
However if an apostrophe (single quote) is used like this:
It will cause the spoiler JavaScript that show/hide spoiler contents to break due to escape quotation mark. For example:
this.text will ends up as 'Hey' and JavaScript doesn't understand 'o click me!''.
To fix this issue, the PHP codes has to detect the apostrophe (single quotation mark) at a specific positions depending on the text. Which is very difficult to accomplish. With my current PHP skills, doing so may break the system even more. So the best solution as for now is to disable the ability to use custom spoilers texts until someone who's extremely familiar with such things can attempt to fix this issue. I do apologize if this cause any impact/inconveniences for some users.
TL;DR: I have disabled custom spoiler texts due to code complications.
Code:
[spoiler=Hey click me!][/spoiler]
However if an apostrophe (single quote) is used like this:
Code:
[spoiler=Hey'o click me!][/spoiler]
It will cause the spoiler JavaScript that show/hide spoiler contents to break due to escape quotation mark. For example:
Code:
this.text='Hey'o click me!';
this.text will ends up as 'Hey' and JavaScript doesn't understand 'o click me!''.
To fix this issue, the PHP codes has to detect the apostrophe (single quotation mark) at a specific positions depending on the text. Which is very difficult to accomplish. With my current PHP skills, doing so may break the system even more. So the best solution as for now is to disable the ability to use custom spoilers texts until someone who's extremely familiar with such things can attempt to fix this issue. I do apologize if this cause any impact/inconveniences for some users.
TL;DR: I have disabled custom spoiler texts due to code complications.