booru / philomena

Next-generation imageboard software. This software development project is independent from any image hosting project.
GNU Affero General Public License v3.0
9 stars 10 forks source link

Random pages of images #80

Closed Meganought closed 4 years ago

Meganought commented 4 years ago

Is your feature request related to a problem? Please describe. There is already a lot of initial images uploaded to the site, and finding gems in a 10k image upload is hard. Making a page of random images would allow folks to find great images faster.

Describe the solution you'd like Simple really, a "random page" button that gives you a page of random images. Possibly also an "im feeeling lucky" button when searching for a specific tag that does the same thingm, but within that tag's restrictions, I.E. a page of random pinkie pie images

Describe alternatives you've considered I guess you could just... not add this. Thats an alternative.

Pathos14489 commented 4 years ago

When searching, you can select Random as a search type. It will show you a random page that's based on your search results. Which, you can use the * wildcard to randomly search everything on the booru.

-

If you wanted to add this, you could go to your lib\philomena_web\templates\layout\_header_navigation.html.slime, and add something like:

a.header__link href="/search?q=*&sf=random" | Random Results

...to the bottom, that should give you exactly what you're asking for.

basisbit commented 4 years ago

this was actually already implemented by d71a7ff9d57a0f6f40bbc40731f2c6f2f3cc4660 two days ago. Result looks like this: image