Universal Gaming
Alternate spoiler method - Printable Version

+- Universal Gaming (https://universalgaming.net)
+-- Forum: Home Planet (https://universalgaming.net/forumdisplay.php?fid=11)
+--- Forum: Feedback & Assistance (https://universalgaming.net/forumdisplay.php?fid=14)
+---- Forum: Archived Feedback (https://universalgaming.net/forumdisplay.php?fid=15)
+---- Thread: Alternate spoiler method (/showthread.php?tid=373)



Alternate spoiler method - Dragon Lord - Apr 16th, 2019

So I've been wondering if there is any way for the forum to have a spoiler method that just allows us to black-out part of our posts? Kind of like how places like Gamefaqs (among many other forums and websites) have their spoiler tags. 

It's difficult to find a decent way to incorporate the spoiler tag we have on here currently without completely breaking up the post. Sometimes you just want to hide a sentence in the middle of your post or something, but you can't. On Zetaboards, I was able to basically achieve the same effect due to being able to make the text color and background color the same, but that's not an option on here. 

It'd just be nice to have a more fluid way of putting spoilers in a post without having to completely break the post apart and make it look messy. If you don't understand what I mean, I can provide a screenshot (or just go to Gamefaqs and look through a random topic. Won't take long to find a post with a spoiler marked in it).


RE: Alternate spoiler method - Moon Nook - Apr 16th, 2019

I could probably find a way to make it work, and I agree it would be nice. Once I know how to do it, I'll implement it. Smile


RE: Alternate spoiler method - Moon Nook - Apr 20th, 2019

OK, so I think I've got something working for this:

If you click on the big black box, you'll see what I was hiding in here!


This should work on mobile too since it relies on being clicked, not hovered. I haven't tested it yet though.

To make it work, you just use the following around what you want to hide:

Code:
[hide]Hidden Secrets[/hide]

I don't think there should be any problems with this, but I haven't done much testing outside of seeing if it works.


RE: Alternate spoiler method - Dragon Lord - Apr 20th, 2019

Awesome. That's exactly what places like Gamefaqs and Siliconera use. It's going to be much nicer for spoilering something mid-post rather than having to use the bulky spoiler box.

Thanks for taking the time to add this.


RE: Alternate spoiler method - Moon Nook - Apr 21st, 2019

You're welcome!

I've noticed that the text doesn't reveal in the mobile version of the theme, but does if you view it in desktop mode on mobile, so I'll look into what is breaking it in mobile view.


RE: Alternate spoiler method - Dragon Lord - May 2nd, 2019

So I used the tag in my post in the Last Game Played topic and it causes the sentence below the sentence the tag was used in to be pushed down more, and it looks kind of odd.

Not that it breaks anything or is a big issue, and I don't even know if it's something that could be altered, but figured I'd like you know anyways. It just makes the area of the post the tags were used in look a little derpy.


RE: Alternate spoiler method - Moon Nook - May 2nd, 2019

I've made an edit to the coding that should prevent that random line break from happening now.

Testing a bug.


RE: Alternate spoiler method - Moon Nook - May 7th, 2019

I've just noticed there is a bug with the hide feature. It only works on the first post it is featured in, and subsequent posts on the same page using it won't display their contents. I'm not sure how to fix that right now unfortunately but just bringing this up to show I'm aware of it before someone else points it out to me.