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.

Changing CurrentTab

if (isset($Menu)) $Menu->CurrentTab = 'Blog';

I tried changing the CurrentTab at 'DiscussionForm_PreRender' and debugged it. it does change the CurrentTab to Blog, but i guess the css is already set the first time the CurrentTab is called inside post.php, and changing it after that has no affect on the css class.

Any idea


  • Options
    Any one, knows how to do this
  • Options
    I'm not quite sure I understand the problem... but you might have to set currenttab before the menu renders, if you do it pre form render, the menu would already have rendered and been done with.

    One thing I wanted to do was to remove the search tab, and make the discussions tab active when someone was on the search page. The solution was kind of hacky, but I set the name of the discussions tab to search, and when someone clicked on the search page voila--discussions tab would be highlighted.

    Its sloppy, but I should look into a better fix.
  • Options
    edited April 2007
    Bingo perfect, worked perfectly
This discussion has been closed.