vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Mods & Their Order (https://vborg.vbsupport.ru/showthread.php?t=282123)

ssdevious 04-27-2012 05:27 PM

Mods & Their Order
 
1 Attachment(s)
Hello,

I was curious, which part of code is responsible for determining in which order will the installed addons appear in the options tab.

https://vborg.vbsupport.ru/attachmen...1&d=1335551221

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

Lynne 04-27-2012 05:46 PM

I believe it's in the cpnav xml file that you upload for the modification.

ahmed-samara 04-27-2012 07:12 PM

When programming the product options display number specifies Forum

ssdevious 04-27-2012 07:59 PM

Quote:

Originally Posted by ahmed-samara (Post 2324117)
When programming the product options display number specifies Forum

I don't understand this. Could you please elaborate a little bit?

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

kh99 04-28-2012 11:27 AM

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.

ssdevious 04-28-2012 12:31 PM

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

kh99 04-28-2012 12:38 PM

There should be an options tag with a settinggroup tag under it with a displayorder attribute, like:

Code:

<options>
  <settinggroup name="test" displayorder="5555">


ssdevious 04-29-2012 08:34 AM

Quote:

Originally Posted by kh99 (Post 2324295)
There should be an options tag with a settinggroup tag under it with a displayorder attribute, like:

Code:

<options>
  <settinggroup name="test" displayorder="5555">


Yep, found it.

Anyhow, higher number means closer to the bottom?

Thanks,
~tEh'P?r4d0x

Boofo 04-29-2012 09:55 AM

Quote:

Originally Posted by ssdevious (Post 2324529)
Yep, found it.

Anyhow, higher number means closer to the bottom?

Thanks,
~tEh'P?r4d0x

But, if mods get updated you would be needing to do that each time. ;)

ssdevious 04-29-2012 10:42 AM

PS. Is there a maximum allowed number? It looks like it's not accepting anything above: "65535".

Regards,
~tEh'Pâr4d0x


All times are GMT. The time now is 03:14 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01190 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete