Fork me on GitHub
Current releases are 2.1.3 (9 Sept 2014) and 2.0.18.13 (5 Aug 2014)

Ready for 2.1? Find out if your plugins are compatible. 2.0 will no longer be updated after Dec 2014.

Hide "All Discussions" button

edited June 2012 in Vanilla 2.0 Help

Hi- I am wondering if there is a way to hide the "All Discussions" button as I am trying to use a custom page as the entry point for each discussion. Specifically, I am wondering how to hide/disable the class tablink only disabling Discussions and not Add Comment. Anyone have any ideas? Thank you!

Best Answer

  • peregrineperegrine ☯ hasta luego :) In-Flight MVP
    Answer ✓

    Perhaps you could try one of these -

    option 1 - comment it in

    vanilla/applications/vanilla/views/discussion/index.php - line 36 // echo Anchor(T('All Discussions'), 'discussions', 'TabLink');

    option 2 - create a file called locale.php in conf directory

    or add it to your defintions.php in locale directory - see the locales documentation on this site or wiki.

    locale.php

    <?php if (!defined('APPLICATION')) exit();
    $Definition['All Discussions'] = "";
    

    option 2 might leave a bit of a tab

    Monetary Donations will be appreciated if you use my plugins. Thanks in Advance.
    As a waiter gets a tip for a good meal, tips for successful solutions appreciated as well. Peregrine

    Sonatagal

Answers

  • Thanks, this is really helpful. Trying Option 1 right now. From reading through some of these posts, you seem to really be knowledgeable about this stuff. Any idea how to change the banner url and add navigation links?

  • peregrineperegrine ☯ hasta luego :) In-Flight MVP
    edited June 2012

    Sonatagal said: Thanks, this is really helpful. Trying Option 1 right now. From reading through some of these posts, you seem to really be knowledgeable about this stuff. Any idea how to change the banner url and add navigation links?

    1) Can't you change the banner url in the dashboard - I'm not sure. 2) add navigation links to the menu with add in a) default.master.tpl in your theme if there is one or b) in the default.master.php or c) the plugin addmenuitem

    add tablinks in the same place where you are or write a plugin.

    I learned what i know from the wiki - if more people added to it - I would learn more.

    Monetary Donations will be appreciated if you use my plugins. Thanks in Advance.
    As a waiter gets a tip for a good meal, tips for successful solutions appreciated as well. Peregrine

Sign In or Register to comment.