vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   How do I create a new options group in ACP? (https://vborg.vbsupport.ru/showthread.php?t=328546)

cbiweb 01-27-2021 12:04 AM

How do I create a new options group in ACP?
 
I want to add a custom group of options in the navigation frame of the ACP. Debug mode doesn't provide a way to do it. After a few hours of looking through the files, I'm not seeing how that part of the ACP is assembled.

Any help would be much appreciated! :)

cbiweb 01-28-2021 11:08 AM

Please, I know someone out there has done what I'm asking about. I haven't worked with vB or any kind of code for ten years, and have forgotten a lot. So I would really like to know how to create a new options group.

Thanks!

shka 01-29-2021 04:26 AM

Two ways possible - creating inside admincp or writing directly in product-yourproductname.xml

It is the same way in vb4 and in vb5 so you should read https://forum.vbulletin.com/blogs/joe-d/3932614- (not all parts the same but for options it is) and for debug modus https://forum.vbulletin.com/forum/vb...=1#post3605592 (in vb4 only one config.php exists)

My advice:
Create new product as described above, add options /optiongroups and export after every step the product-...xml. So you can see the relevant xml-syntax at the end of this file
<options><settinggroup name=""..><settings varname="">
and
<phrases><phrasetype><prase name="">
with naming conventions for optiongroup and option
Examples <phrase name="setting_SETTINGSVARNAME_desc/_title" and <phrase name="settinggroup_SETTINGGROUPNAME"
And at this point check also help text for your options and so on


With this you can write it later directly to xml. And as an example I used often as reference download the product YaAS 4.0.9 (Yet another award system) and read the xml with implementations of different option types.

cbiweb 01-29-2021 03:43 PM

Thanks so much, shka! This should get me back on track. Much appreciated!


All times are GMT. The time now is 02:01 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.01015 seconds
  • Memory Usage 1,713KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete