PDA

View Full Version : Navbites Not Working


Andy87
01-27-2010, 06:37 PM
Howdy,

I'm trying to create brand new style for my board. But navbites are not working, even when I enter the forum it still shows only forum home page.

PS I removed navbits from navbar template and moved them to header template.

Anyone got any suggestions?

Marco van Herwaarden
01-29-2010, 09:21 AM
Not sure but i don't think you can have the navbar in the header template as not all needed variables are loaded at the time the header is parsed.

Lynne
01-29-2010, 01:46 PM
Marco is correct. On most pages, there is some code that looks like this:
// draw navbar
$navbits = array();
$parentlist = xxxx ;

$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
It is assumed in all the pages that the navbits are in the navbar and thus that is where they are evaled.