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


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

Or maybe "not safe for work in progress"...?

So, what do you guys think of this? 

Please confirm 18+ to view this image.

Not the content (although, come on, we know Mikoto is hot), but the presentation. I've bodged a "show/hide" function into the forum software with the PHP equivalent of duct tape, and the attachment automatically displays in full size once you choose to show it.

As far as I can tell, this should work decently. That's two of three parts needed for this implementation. The first is a database entry for "nsfw" on all attachments (true/false), the second is modifying the attachment rendering code to look for that data field and hide it behind a bit of protection if so.

The final step, which I have not finished yet, is adding an easy way to mark attachments as NSFW directly in the post/reply window. I'll try and mess with it later today, no promises. But once it's all said and done, I think this will make a decidedly important part of our hentai community quite a bit more intuitive to use!




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

Yup, this should be a good solution. I was going to test it, but seems like only you can do it now?

Maybe mess with the box and text colors too? Though don't need it to pop out too much. Just an idea.




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

Yep, right now you can only set it if you have direct access to the database. I did it manually for a couple images so far.

Biggest challenge is adding the freaking button, no joke! Still struggling to get it implemented. I might add some custom styling on it once the basic functionality is done.




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

Interesting the button is a challenge. Did you put that bug icon in there? XD




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

Haha, actually the bug came with the forum software! I assume it's meant to denote threads about software bugs, but we have another purpose for it.




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

LOL, very funny. I 99% just assumed you put it in there for a gag.

Okay yeah, reviewing some of my old posts with a bunch of images, I think this is looking a lot more ideal! Didn't really need that thumbnails attachment thing either.




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

Yeah, I think it's a big improvement. The thumbnail thing was a default setting, if I recall, but since the images seem to resize decently, there's nothing wrong with just full size images I think.




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

I'm guessing they end up conforming to the display port the user is on too? Hmm maybe not making my window smaller testing with the cute Mikoto pic. But yeah I think it's good as is now.




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

I notice the image resizes down to a certain lower limit. Might play with it later to see if I can improve it.




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

Okay, so now there's a "Submit Query" button in the attachment table lmao... I think I must have set it up wrong. But I'll see if it works...

Please confirm 18+ to view this image.

Edit: It actually DOES work... sort of. But it also force submits the post. So we're not quite at the right functionality yet but at least we're making some progress.