![]() |
How to add plugin options in control panel?
Hi! Sorry for my bad English (I'm from Russia :)). I write plugin to my vbulletin forum, and in accordance with the statement of work I should add plugin options in control panel, like in this screenshot:
https://vborg.vbsupport.ru/external/2012/01/2.jpg Please write in detail how can I do it? :confused: |
check out the cpnav*.xml files in includes/xml dir. This should give you a better idea.
|
Ok. Thanks. I find xml file, where I can add my item in vbulletin options. Can I edit this file by the methods of vbulletin during installation my plugin? Or should I just edit this file?
|
You should create a new xml file that starts with cpnav_, like cpnav_somemod.xml. If you put it in that directory vb will find it and your option menu will show up. You can control where it shows up by setting the displayorder attribute.
|
Everything is clear now, thanks a lot!
--------------- Added [DATE]1328102730[/DATE] at [TIME]1328102730[/TIME] --------------- Hi!) I have new question on this topic. When I trying to create a new xml file in "/includes/xml" dir, I faced the problem of determining the path to this folder. I first try scan directory '/includes/xml' for the presence of file cpnav_myplugin.xml PHP Code:
--------------- Added [DATE]1328104959[/DATE] at [TIME]1328104959[/TIME] --------------- solved the problem by using $_SERVER ['DOCUMENT_ROOT'] |
All times are GMT. The time now is 01:12 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|