The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Mods & Their Order
Hello,
I was curious, which part of code is responsible for determining in which order will the installed addons appear in the options tab. Firstly, I thought, if I install mods (1, 2 and 3) in the same order, they will appear so, I did that, but then they appeared as 3, 1 and 2. My point is to be able to control the order, so I can install them and have the appear in the desired order. Any ideas? Best Regards, ~tEh'P?r4d0x |
#2
|
||||
|
||||
I believe it's in the cpnav xml file that you upload for the modification.
|
#3
|
|||
|
|||
When programming the product options display number specifies Forum
|
#4
|
|||
|
|||
Quote:
Thanks, ~tEh'P?r4d0x --------------- Added [DATE]1335612644[/DATE] at [TIME]1335612644[/TIME] --------------- To be honest, I didn't even get, what Lynne suggested, e.g. what's "CPNAV XML FILE"? Regards, ~tEh'P?r4d0x |
#5
|
|||
|
|||
The menus on the left side in the admincp are defined in "cpnav_" xml files (stored in the includes/xml folder). The choices in the Options menu are stored in the settinggroup table in the database, and that includes a displayorder value. As someone pointed out above, for imported products this is set in the product xml file. So I think there are 3 ways you could change it: 1) edit the product xml files and reimport the products, 2) put your site in debug mode and edit the setting group in the admincp ("[Edit]" link appears next to setting group name when in debug mode), or 3) you could go in to the database and change the display order directly.
|
#6
|
|||
|
|||
Hello,
I'm aiming towards editing the XML file, but I can't seem to be able to locate it in there, going line by line, I don't see it anywhere. In what tags is the display order placed? Thanks in advance, ~tEh'Pâr4d0x |
#7
|
|||
|
|||
There should be an options tag with a settinggroup tag under it with a displayorder attribute, like:
Code:
<options> <settinggroup name="test" displayorder="5555"> |
#8
|
|||
|
|||
Quote:
Anyhow, higher number means closer to the bottom? Thanks, ~tEh'P?r4d0x |
#9
|
||||
|
||||
But, if mods get updated you would be needing to do that each time.
|
#10
|
|||
|
|||
PS. Is there a maximum allowed number? It looks like it's not accepting anything above: "65535".
Regards, ~tEh'Pâr4d0x |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|