heres everything this module uses...just in case im missing something important elsewhere...but I don't think I am..
module code:
PHP Code:
<?php
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'sitenav'); // change this depending on your filename
// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array(
);
// get special data templates from the datastore
$specialtemplates = array(
);
// pre-cache templates used by all actions
$globaltemplates = array(
'sitenav','sitenavdetail',
);
// pre-cache templates used by specific actions
$actiontemplates = array(
);
// ######################### REQUIRE BACK-END ############################
require_once('./global.php');
// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################
$getlinks = $DB_site->query("SELECT * FROM site_nav_main");
while($link = $DB_site->fetch_array($getlinks))
{
eval('$links .= "' . fetch_template('sitenavdetail') . '";');
}
eval('$home[$mods[\'modid\']][\'content\'] = "' . fetch_template('sitenav') . '";');
unset($getlinks, $links, $link);
?>
template sitenav
HTML Code:
<!-- Left Nav Block -->
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
$links
</table>
<!-- End Left Nav Block -->
template sitenavdetail
HTML Code:
<tr>
<td class="$link[itembgcode]" background="$stylevar[imgdir_misc]/header/content_bg_$link[itembgcode].gif">
<img src="$stylevar[imgdir_misc]/clear.gif" width="11" alt=" " border="0" /><span class="smallfont"><strong><if condition="$link['uselink']"><a href="$link[itemurl]"></if>$vba_options[portal_blockbullet] $link[itemtext]</strong><if condition="$link['uselink']"></a></if></span>
</td>
</tr>
maybe that will help a bit. Its not much of a module..but I think its better than static HTML consitering the capabilities of vbadvanced.