vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=328546

How do I create a new options group in ACP?
by cbiweb
27 Jan 2021 02:04

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 28 Jan 2021 13:08

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 29 Jan 2021 06:26

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 29 Jan 2021 17:43

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


All times are GMT. The time now is 03:38.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.