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.

Add tab to menu

Hi Everyone, I'm new to forum so apologies if I'm making some kind of n00b error.

I need to add a tab to the forum menu, I found this code in an earlier discussion and added to a folder called 'HomeTab' containing a php file called hometab.php in the 'extensions' folder. Unfortunately it doesn't show up in the extensions menu. Perhaps it's for the vanilla 1.0 architecture?

Any help would be appreciated.

<?php /* Extension Name: Home Tab Extension Url: Description: Adds home tab Version: 1 Author: Nathan Wheatley Author Url: */ if (in_array($Context->SelfUrl, array("index.php", "categories.php", "comments.php", "search.php", "post.php", "account.php", "settings.php"))) { $Menu->AddTab("Back To Legend", "Back To Legend", "", "Home Tab", $Attributes = "accesskey=\"h\" target=\"_parent\"", $Position = "1", $ForcePosition = "1"); } ?>


Sign In or Register to comment.