PDA

View Full Version : Guides


TheSupportForum
01-06-2012, 03:48 PM
i'd like to see a sample guide available on how to create cpnav_productname
within the helpguide

for custom MODs

i've been trying for ages and there isnt a guide available with step by step
with example

Lynne
01-06-2012, 05:43 PM
This is very, very basic - cpnav_productname.xml:
<?xml version="1.0" encoding="ISO-8859-1"?>

<navgroups product="product_id" master="true">
<navgroup phrase="default" permissions="canadminstyles" displayorder="15">

<navoption displayorder="10">
<phrase>added_phase1</phrase>
<link>link.php?do=something</link>
</navoption>

<navoption displayorder="20">
<phrase>added_phase2</phrase>
<link>link.php?do=something2</link>
</navoption>

</navgroup>
</navgroups>

Things to note:
product_id - is the product id from your product
default - these are phrases. I think they need to be global phrases
canadminstyles - your permissions for who can see this
15 - the display order - you can see what the default ones for vbulletin are in the cpnav_vbulletin.xml file