XF 1.3 Display Order - Plus and Minus Signs

Amaury

Well-known member
Why do the increments work differently on different things?

For example, clicking the plus sign on a thread prefix group increases the order number by ten, whereas clicking the plus sign on a thread prefix increases the order number by one.

I'm mostly curious because I keep hearing that increments of ten are the best; however, it seems like the software already "chooses" the best way like in my example above.
 
That is defined in the code for each option.

For example:
Code:
 ...min="1" max="50" step="1"/>

The step value defines the incremental value each time the + or - is clicked.
 
It's up to the developer and what they deem to be the best setting.

In this case, XenForo. Got it. Thanks, Brogan. (I didn't see your edited post.)

Now, while we're on the subject, I remember reading somewhere why increments of ten are best, but I don't remember what it was. Wasn't it something about less room for error?
 
Increments of 10 (or more) are advised for e.g. display styling priority and node ID numbering.

Doing so allows for easy addition of more elements without renumbering everything.
 
Back
Top Bottom