Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-27-2012, 05:27 PM
ssdevious ssdevious is offline
 
Join Date: Apr 2011
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Attached Images
File Type: jpg Addons Order.jpg (120.5 KB, 0 views)
Reply With Quote
  #2  
Old 04-27-2012, 05:46 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I believe it's in the cpnav xml file that you upload for the modification.
Reply With Quote
  #3  
Old 04-27-2012, 07:12 PM
ahmed-samara ahmed-samara is offline
 
Join Date: Dec 2004
Location: egypt
Posts: 178
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When programming the product options display number specifies Forum
Reply With Quote
  #4  
Old 04-27-2012, 07:59 PM
ssdevious ssdevious is offline
 
Join Date: Apr 2011
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ahmed-samara View Post
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
Reply With Quote
  #5  
Old 04-28-2012, 11:27 AM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 04-28-2012, 12:31 PM
ssdevious ssdevious is offline
 
Join Date: Apr 2011
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #7  
Old 04-28-2012, 12:38 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Code:
<options>
   <settinggroup name="test" displayorder="5555">
Reply With Quote
  #8  
Old 04-29-2012, 08:34 AM
ssdevious ssdevious is offline
 
Join Date: Apr 2011
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
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
Reply With Quote
  #9  
Old 04-29-2012, 09:55 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ssdevious View Post
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.
Reply With Quote
  #10  
Old 04-29-2012, 10:42 AM
ssdevious ssdevious is offline
 
Join Date: Apr 2011
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Regards,
~tEh'Pâr4d0x
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:56 PM.


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.06411 seconds
  • Memory Usage 2,270KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete