Inyouchuuverse
Marking as NSFW (work in progress!) - Printable Version

+- Inyouchuuverse (https://inyouchuuverse.net)
+-- Forum: General (https://inyouchuuverse.net/forumdisplay.php?fid=9)
+--- Forum: Site Design and Nerdy Things (https://inyouchuuverse.net/forumdisplay.php?fid=10)
+--- Thread: Marking as NSFW (work in progress!) (/showthread.php?tid=29)

Pages: 1 2


RE: Marking as NSFW (work in progress!) - Ellie - 02-22-2026

Testing to make sure I didn't straight-up break replying...




RE: Marking as NSFW (work in progress!) - Ellie - 02-22-2026

Please confirm 18+ to view this image.

Okay, that's SOME progress, at least the page doesn't blank out or submit now.




RE: Marking as NSFW (work in progress!) - Ellie - 02-22-2026

I'm going to give it a rest for tonight, but so far if you're specifically in the New Reply screen, you now have the option to mark an attachment as NSFW, and from that point forward it will show the click-to-view warning any time you insert it into the post.

Progress!




RE: Marking as NSFW (work in progress!) - Ellie - 02-22-2026

Actually, screw it, I figured if I wait until after work tomorrow, then I will have forgotten how this code works!
I am practically teaching myself web programming with this process here. I've done PHP before but never to this degree of complexity, especially when you include the scripts and form features.

But... I got it! I think!
It's a little clunky - there's no real indication you successfully pressed the button - but it works across all three composer windows that use the attachments feature.

With an attachment uploaded, just click Mark NSFW, and then any time the attachment appears, it should be hidden behind a click-to-view. This will also work if you use the nearby Insert Into Post button to place it where you wish in your text. If you preview the post or go back to edit, any attachments marked will have [Marked NSFW] displayed after their file name. Maybe we'll have that appear automatically when you click the button if I ever become proficient at jscript.




RE: Marking as NSFW (work in progress!) - EchelonV - 02-23-2026

Testing 1 2 3 ... 

Please confirm 18+ to view this image.

Looks good! I just wonder if there's a way to mark the "Mark NSFW" button so you know it's been toggled? It doesn't animate or change. But I guess neither do other buttons.




RE: Marking as NSFW (work in progress!) - Ellie - 02-23-2026

Yeah, I still need to figure that out. It'll take some jscript to make that work, which... I don't know much about lol




RE: Marking as NSFW (work in progress!) - EchelonV - 02-23-2026

No biggie.

I hope others see the real vile NSFW pic I posted... evil grin




RE: Marking as NSFW (work in progress!) - Ellie - 02-23-2026

Truly disgusting!