02-12-2008, 03:35 AM
|
#1 (permalink)
|
|
The Addict
Join Date: Nov 2007
Location: USA
Posts: 256
Thanks: 7
|
little help figuring out some code.
I have installed Vanilla the forum system on my site. osGuide.net and have been able to edit it pretty easily but i have run into a problem. I am trying to add a line of code only when a subnav is present(which is when a user is logged in) problem is i cant follow the php code enough to figure out where it is. Heres the code that im not able to follow. But through some trial and error i knows its this block that should show it.
PHP Code:
while (list($Key, $PanelElement) = each($this->PanelElements)) {
$Type = $PanelElement['Type'];
$Key = $PanelElement['Key'];
if ($Type == 'List') {
$sReturn = '';
$Links = $this->Lists[$Key];
if (count($Links) > 0) {
ksort($Links);
$sReturn .= '<li>';
while (list($LinkKey, $Link) = each($Links)) {
$sReturn .= '<a '.($Link['Link'] != '' ? 'href="'.$Link['Link'].'"' : '').' '.$Link['LinkAttributes'].'>'.$Link['Item'];
if ($Link['Suffix'] != '') $sReturn .= ' <span>'.$this->Context->GetDefinition($Link['Suffix']).'</span>';
$sReturn .= '</a>';
$sReturn .= '';
}
$sReturn .= '</li></ul>';
}
echo $sReturn;
} elseif ($Type == 'String') {
echo $this->Strings[$Key];
////////echo '</ul></div><div class="navBarSectionBase"> </div>';
}
}
the line with the 8 / is the one im having trouble adding thats the closing for my nav. It is currently not in the correct place. Its easy to see the problem in IE6 but harder in ff and opera. Heres 2 screens to see what i mean. Hope this makes sense. and thanks for any help.
links cause they are 1280x800
http://www.osguide.net/images/ie6Screen.gif
http://www.osguide.net/images/oprScreen.gif
|
|
|
|