Fork me on GitHub
Please upgrade to 2.1.x here. The 2.0 branch is no longer being updated.
Important security fix: 2.1.10, released 4 May.

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 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

    Sonatagal

Answers

  • peregrineperegrine 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

    Sonatagal
  • 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 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.

Sign In or Register to comment.