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 edit menu links

edited June 2007 in Vanilla 1.0 Help
Simple: How to edit the menu links???

I know to add a tab but i need make a new menu and custom links, where is the class and file, please?

Thanks a lot ;)

Comments

  • If you simply want to rename the the discussion/categories/search/account menu links, you can simply edit the language files for your installation. There's no need to explicitly modify the source to achieve this, unless you want to add more. Then I suggest browsing the add-ons list to find the right one.
  • edited June 2007
    Ummm... srry lang but i don't need change the names, discussion... I need change the links of menu: URL, this is:
    I have integrated Vanilla with Wordpress and I want to manage profiles from Wordpress profiles, exp:

    <a href="../wordpress/wp-admin/profile.php">Account</a> not <a href="forum/account.php">Account</a>

    Only need the file with class "Tabs" to edit the links.

    A posible solution is:
    In the /themes/menu.php
    Replace this
    <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>
    by
    <ul>'; <li>Link1</li> <li>Link2</li> echo '</ul> but it's not professional... ^^

    Thx in advance
  • You could use PageManager to remove the existing tabs and just add new ones with the correct links on?
  • edited June 2007
    I have tried but have a error on this extension, emmm... It's not a big problem, only i wanted to work on native function :(

    Thx anyway.

    Edit 1:
    Ok, very thx, think have used another extension, this works fine :D
    Nice work! ^^

    Working over $Menu and $this->Tabs ;) ...
This discussion has been closed.