Danbooru

[Feature Request] Setting Number of Thumbnails on Profile Page

Posted under Bugs & Features

Currently, uploads, favs and tag subscriptions are hard-coded at 6 thumbnails each, while the new saved searches are hard-coded at 10 thumbnails each -thanks to BrokenEagle98 for the info: forum #122374

We already have the option to set the number of thumbnails on the post page to anything from 1 to 100, but since a lot of users start browsing Danbooru from their profile page in order to check the latest on their subscriptions or saved searches, I believe having a similar functionality in user settings for profile page categories would be even more useful.

Alternatively, uploads, favs and tag subscriptions could also be hard-coded at 10 thumbnails each, which I believe is the best option for most 1920x1080 displays. If most people here use smaller 1366x768 displays though, then saved searches could be hard-coded at 6 thumbnails instead. Or just hard-code everything to whatever as long as its uniform, just for tidiness.

What do you guys think? Would this be useful for you? Any thoughts and ideas are welcome.

I don't use the profile page much myself, but if this were to become a thing, I would want the number of thumbnails to be a settable option. This is because some users may have larger monitors, whereas other users (such as myself) have very tiny monitors (1024x600).

Regardless, they should be uniform like you said.

issue #1060:

RaisingK said:

Similar to #959, add setting to vary the number of thumbnails displayed for each category on user profiles (Uploads, etc...). It wouldn't go nearly as high as the one for tag searches, of course.

albert said:

Seems pretty esoteric. Don't want to clutter up the user edit screen.

Easily configurable with CSS, using nth-child n+expression notation.

#c-users .user-saved-search article:nth-child(n+7) {display:none}

^ To hide preview thumbnails for saved searches starting from 7th and on (leaving 6 visible). The rest can be done in similar manner. Works only for cutting off visible thumbnails, not adding more, of course.

RaisingK said:
issue #1060:

I didn't know it had been requested before. It doesn't have to be a different setting for each category though. A single option to set the number displayed for all categories would be fine, so clutter isn't really an issue IMHO.

I agree with albert, if you start adding options for every last thing then things get complicated fast. There are too many settings now that either aren't necessary, aren't documented, or that don't work as advertised.

That said: RaisingK's Miscellaneous Tweaks userscript has a feature where you can click a link to toggle showing more/fewer thumbnails on saved searches. So I stole this idea and incorporated something similar in my own script. This is how it looks: https://gfycat.com/ImpartialEverlastingIceblueredtopzebra.

I think this approach is better, since it lets you load as many thumbnails as you need on the spot, no need to configure options. It pretty much lets you check all your saved searches straight from your profile without having to leave the page.

That's pretty cool. I'm guessing it won't work with the post score and favcount display tweak from RaisingK's script though, right?

Anyway, if an option to manually set the number of thumbnails is too bothersome, then I guess it's better to just pick a number and hard-code everything to that. I'd suggest a relatively large number -say, 12 thumbnails per profile category- since that would be the most useful to users with large displays, while users with smaller displays could use simple CSS like the one Type-Kun posted to bring it down to whatever suits them.

It appears it does work with RaisingK's score/favcounts tweak. Kind of. It starts getting glitchy after you add thumbnails two or three times.

Will submit a patch to use the same number of thumbnails in each section, that's easy enough. Actually, come to think of it, it should be possible load say 15 thumbnails but then use TypeKun's CSS combined with media queries to make the site automatically hide thumbnails based on your screen resolution. That way you could always get one full row of thumbnails no matter your screen size.

1