Login 
Home arrow Documentation arrow Loading the nBill Stylesheet
Loading the nBill Stylesheet PDF Print E-mail
In some cases, you might find that the nBill main menu is not accessible, and/or the menu items and icons run down the side of the page vertically. NOTE: If this happens straight after upgrading, before you take any further action, refresh your browser by pressing Ctrl-F5, or clear your browser's cache, as sometimes your browser can cache the old stylesheet.

Also Note: If an error occurs, and a page fails to load fully, this problem can appear (because the error prevents nBill from getting as far as loading the stylesheet. In this case, the stylesheet problem can be ignored (but whatever error caused the problem in the first place would still need to be fixed).

If refreshing the browser does not help, and the menu is always displayed wrongly or inaccessible when you access any page in nBill, then the component stylesheet failed to load. This can happen if you are using a custom admin template, or an old version of Mambo or Joomla. If you have this problem, make sure you are running the latest stable version of your CMS, or if you have a custom admin template, you will need to add some code to it to allow the stylesheet to be loaded.

To modify the admin template (only do this if you are not using the default administrator template), find the file named /administrator/templates/<name of template>/index.php, and open it in a text editor such as notepad (DO NOT use a word processor!). Immediately before the bit that says </head>, add the following code:

<?php
include_once( $mosConfig_absolute_path . '/editor/editor.php' );
initEditor();

// Workaround to include custom head tags from components
if (isset( $mainframe->_head['custom'] ))
{
    $head = array();
    foreach ($mainframe->_head['custom'] as $html) {
        $head[] = $html;
    }
    echo implode( "\n", $head ) . "\n";
}
?>

Please note: the above code is part of Joomla 1.0.12 and later. It is therefore released under the GPL, and is not part of nBill.