xDazedx
02-11-2010, 05:27 PM
Hey All I need some help.
On my main site I have a menu that I want to add into my forum. I tried adding it to the navbar and it shows up but the formatting is wrong. I created a file called menu.html which looks fine on a direct url call. I then created the pluggin below in the root forum directory.
$includedhtml = implode('', file('./menu.html'));
I then added $includedhtml to the navbar which shows me a nice "$includedhtml" on the forum but not the menu I am hoping to see lol.
What do I need to do to correct this?
Thanks for your help!
--------------- Added 1265923310 at 1265923310 ---------------
ok after finding another post for including a php file, it looks like the docs need to be changed for 4.0. Does anyone know the new code format for an html file?
--------------- Added 1265985444 at 1265985444 ---------------
Here is what I am using so far if this helps.
I have a file named menu.html with dhtml menu in it.
In the plugin I have the below and I am using global_start. I have also tried using 'navbar' instead of header.
$templater = vB_Template::create('menu');
$templatevalues['menu'] = $templater->render();
vB_Template::preRegister('header', $templatevalues);
Then in the navbar I have added the below and still I can't get this menu to appear.
{vb:raw menu}
On my main site I have a menu that I want to add into my forum. I tried adding it to the navbar and it shows up but the formatting is wrong. I created a file called menu.html which looks fine on a direct url call. I then created the pluggin below in the root forum directory.
$includedhtml = implode('', file('./menu.html'));
I then added $includedhtml to the navbar which shows me a nice "$includedhtml" on the forum but not the menu I am hoping to see lol.
What do I need to do to correct this?
Thanks for your help!
--------------- Added 1265923310 at 1265923310 ---------------
ok after finding another post for including a php file, it looks like the docs need to be changed for 4.0. Does anyone know the new code format for an html file?
--------------- Added 1265985444 at 1265985444 ---------------
Here is what I am using so far if this helps.
I have a file named menu.html with dhtml menu in it.
In the plugin I have the below and I am using global_start. I have also tried using 'navbar' instead of header.
$templater = vB_Template::create('menu');
$templatevalues['menu'] = $templater->render();
vB_Template::preRegister('header', $templatevalues);
Then in the navbar I have added the below and still I can't get this menu to appear.
{vb:raw menu}