
 Lianne Carper - 2007-01-08 22:38:34
 
I want to use this menu system with vbulletin forum and vbadvanced cms.  I'm not sure if you're familiar with that particular forum or not, but inside the forum, I have a headinclude template for my entire community and I'm thinking I need to put the following code in there:
<?
require (“xpMenu.class.php”);
$xpmenu = new xpMenu ();
?>
Is this right?  And if so, do I need to include the <? and ?> seeing as how the entire forum is written in php?  I'm thinking that I should strip the tags off and just add:
require (“xpMenu.class.php”);
$xpmenu = new xpMenu ();
Furthermore, is this where I would add the following code as well?
<?
echo $xpmenu->javaScript ();
echo $xpmenu->style ();
?>
I'm then thinking that in order to create my menu, I would make a blank cms block and just use
$xpmenu->addMenu (“menu1”); 
and then continue on - do I need to include the <? ?> on this too?
Thanks,
Lianne