• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.3 Display Order - Plus and Minus Signs

Amaury

Well-known member
#1
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.
 

Brogan

XenForo moderator
Staff member
#2
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.
 

Amaury

Well-known member
#5
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?
 

Brogan

XenForo moderator
Staff member
#6
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.