IntegraMOD / IntegraMOD151

The most complete premodded forum software
http://integramod.com
4 stars 4 forks source link

Rework PAFileDB categories #70

Closed vendethiel closed 5 years ago

vendethiel commented 5 years ago

I have to start this off with a mea culpa. I, myself, broke the navigation for both album and pafiledb when I wrote 879f1597ca2899ce4b1bc6eab832f4462f64de82. I was going too fast, trying to fix everything at once, and I didn't check properly.

I have fixed the breadcrumbs for the album, but I'm still toying with the pafiledb one. I think it does some things in a very unintuitive manner.

For example, let's take this tree:

First, it's really hard to realize what's going on here, because of the class="cat" that's on "higher categories" (where you can't publish files). That shifts them a tiny bit to the right...

That was my first fix. Here's the result:

vendethiel commented 5 years ago

The second part that really bugged me was how "sub categories" were displayed.

By default, if you have

Then, while viewing Cat 1, you'd see this: There are absolutely no mentions of Cat 1.1, nowhere. Anytime you had set-up a mid-level "category" (with file upload disabled), it just wouldn't be displayed.

Now, what I've changed the system to do is: Show all categories that allow files. Show categories that don't allow files only if they have sub-categories themselves that allow files.

That way, if we have a stray category (no child, no files allowed), it won't be displayed. In the other case, we show this:

Here, every higher-order category has its children between parentheses () so you know where to click.