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.
Filebrowser link in Vanilla
Howdy all.
I'd love to add another box next to "Discussions", "Categories", etc with a user-definable text and link. My goal would be to call it "Family Photos" and link it to the "images/" directory.
I'm currently using phpBB for my family's website - though - it's like using a sledgehammer to kill a fly. Vanilla seems like the perfect flyswatter - adding the "Family Photos" link at the top would just be the finishing touch for me.
PS - Rock on Vanilla!
0
This discussion has been closed.
Comments
2. Open up the file and add the following lines at the top (this information will appear in the extensions management form when you are in Vanilla > Settings).
<? /* Extension Name: Filebrowser Tab Extension Url: http://yourdomain.com/ Description: Adds a filebrowser link to the tab menu Version: 1.0 Author: Your name goes here Author Url: http://www.yourdomain.com/ */
3. Now add the code that will make the tab appear on the required pages:
if (in_array($Context->SelfUrl, array("index.php", "categories.php", "comments.php", "search.php", "post.php", "account.php", "settings.php"))) { $Menu->AddTab("Family Photos", "family_photos", "./images/", "PhotosTab"); } ?>
4. Save the file.
5. Sign into vanilla with an administrative account. Go to settings > Manage Extensions.
6. Find your extension and enable it.
That should get you what you want.
i noticed with this mark is there a way to specify the order?
also i don't htink there is a way to open the link in a new window... though i didn't actually look in the Menu class
anyway to make it add a tab to a different area instead of right at the beginning of the navigation?