Jaxel
02-24-2006, 12:55 PM
I never liked the default nav menu that came with CMPS, however, I managed to edit it enough so now it looks pretty good... This mod only supports 2 levels of links.
For an example of it: http://www.crookedjester.com/
In /modules/navigation.php REPLACE:
if ($npage['level'] <= 1)
{
$navmark = $mod_options['portal_navigation_mark1'];
}
else
{
$navmark = str_repeat(' ', (intval($npage['level'] - 1))) . $mod_options['portal_navigation_mark2'];
}and if ($navlinks['level'] <= 1)
{
$navmark = $mod_options['portal_navigation_mark1'];
}
else
{
$navmark = str_repeat(' ', intval($navlinks['level'] - 1)) . $mod_options['portal_navigation_mark2'];
}WITH$navmark1 = $mod_options['portal_navigation_mark1'];
$navmark2 = $mod_options['portal_navigation_mark2'];In Template > vbAdvanced CMPS > adv_portal_navigation REPLACE EVERYTHING with:$customnavigationbits
$navigationbitsIn Template > vbAdvanced CMPS > adv_portal_navigationbits REPLACE EVERYTHING with:<if condition="$npage['level'] <= 1 AND $navlinks['level'] <= 1">
<tr><td class="thead" align="center">$navmark1<if condition="$link"><a href="$link" style="text-decoration: none">$title</a><else />$title</if>$navmark2</td></tr>
<else />
<tr><td class="$bgclass" align="center"><span class="smallfont"><if condition="$link"><a href="$link" style="text-decoration: none">$title</a><else />$title</if></span></td></tr>
</if>With this simple mod, navigation will look nicer. This mod uses the two navmarks for the left and right side of the first level. If you check my site: http://www.crookedjester.com/, I have the 2 navmarks as » and «
For an example of it: http://www.crookedjester.com/
In /modules/navigation.php REPLACE:
if ($npage['level'] <= 1)
{
$navmark = $mod_options['portal_navigation_mark1'];
}
else
{
$navmark = str_repeat(' ', (intval($npage['level'] - 1))) . $mod_options['portal_navigation_mark2'];
}and if ($navlinks['level'] <= 1)
{
$navmark = $mod_options['portal_navigation_mark1'];
}
else
{
$navmark = str_repeat(' ', intval($navlinks['level'] - 1)) . $mod_options['portal_navigation_mark2'];
}WITH$navmark1 = $mod_options['portal_navigation_mark1'];
$navmark2 = $mod_options['portal_navigation_mark2'];In Template > vbAdvanced CMPS > adv_portal_navigation REPLACE EVERYTHING with:$customnavigationbits
$navigationbitsIn Template > vbAdvanced CMPS > adv_portal_navigationbits REPLACE EVERYTHING with:<if condition="$npage['level'] <= 1 AND $navlinks['level'] <= 1">
<tr><td class="thead" align="center">$navmark1<if condition="$link"><a href="$link" style="text-decoration: none">$title</a><else />$title</if>$navmark2</td></tr>
<else />
<tr><td class="$bgclass" align="center"><span class="smallfont"><if condition="$link"><a href="$link" style="text-decoration: none">$title</a><else />$title</if></span></td></tr>
</if>With this simple mod, navigation will look nicer. This mod uses the two navmarks for the left and right side of the first level. If you check my site: http://www.crookedjester.com/, I have the 2 navmarks as » and «