The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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:
Please write in detail how can I do it? |
#2
|
||||
|
||||
check out the cpnav*.xml files in includes/xml dir. This should give you a better idea.
|
#3
|
|||
|
|||
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?
|
#4
|
|||
|
|||
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.
|
#5
|
|||
|
|||
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'] |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|