Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
How to move the menu into the panel
Hi there,
how can I move the Top menu (e.g. Discussions Categories Search Account Troubleshooting FAQs) into the panel?
I've found the menu in the menu.php but when I copy the code into the panel.php I get the error
"Warning: Variable passed to each() is not an array or object in /*********/themes/panel.php on line 46"
What can I do to get it working?
Please Help and Thank You
0
This discussion has been closed.
Comments
basically all you do is move the panel div tag from the bottom of the page to the top in panel.php and then change the tags for the tabs
echo '<ul>'; while (list($Key, $Tab) = each($this->Tabs)) { echo '<li'.$this->TabClass($this->CurrentTab, $Tab['Value']).'><a href="'.$Tab['Url'].'" '.$Tab['Attributes'].'>'.$Tab['Text'].'</a></li>'; } echo '</ul>';
from menu.php over to the relevant spot in panel.php, but when i refresh the page i get this error:
Warning: Variable passed to each() is not an array or object in /home/thescot2/public_html/apathy/themes/state/panel.php on line 29
not entirely sure if this is what Vincent was suggesting, but this made sense to me. Apparently it doesn't quite make sense to vanilla. Any tips?
thanks! that worked a treat. the menu now shows up in the left. unfortunately, it seems that the #content div isn't going where it should be. cssedit's preview shows it as sticking itself directly under the last item in the panel, and not where it should be. not sure why, as none of the basic HTML structure has changed, right? i feel like maybe i missed a closing tag somewhere, but i don't think so - it does pass validation with only one non-related error. if anybody has any suggestions in the meantime, fire away:
EDIT: got it! forgot to amke sure that the body div was called before the panel div. all is well now.
Posted: Saturday, 27 October 2007 at 8:46AM