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.
Options

Adding Panel Back to People Pages

edited October 2006 in Vanilla 1.0 Help
I'm working on integrating Vanilla with an existing web site. The existing site's navbar is laid out in a left hand column; its stored in a central file and included across the site via server side includes. My custom theme contains a modification of panel.php to pull in that navbar and insert Vanilla's panel in the proper place. The problem is that the entire navbar (instead of just Vanilla's panel) disappears when I hit any of the people pages (e.g. signing in, signing up, signing out, etc.). Is there any way to override this behavior?

Comments

  • Options
    MarkMark Vanilla Staff
    Take a look at the appg/init_vanilla.php and appg/init_people.php pages. You'll see that the vanilla one instantiates the panel and adds it to the page, while the people one doesn't.

    You can alter the init_vanilla to do it as well, or you can write an extension to add the panel and make sure that the extension is included *first* in the conf/extensions.php file.

    Note that you will likely need to also alter the people templates so that the xhtml works with the placement of the panel.
  • Options
    Thanks Mark. Hacking init_vanilla did the trick, so I'm now working on turning it into an extension.
  • Options
    isn't this what the sidepanel extension does? That's what I used to make links and a navbar on the sidepanel for vanilla.
  • Options
    Yeah but the sidepanel doesnt make the sidebar appear on the login pages does it crazyotaku?
  • Options
    oh nope, why would you need it on the login pages though?
  • Options
    Because this guys integrating vanilla with the rest of his site and presumably he still needs his own side panel on those pages.
  • Options
    That's correct Minisweeper.
This discussion has been closed.