Hide "All Discussions" button
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!
0
Best Answer
-
peregrine MVP
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
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
1
Answers
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
option 2 might leave a bit of a tab
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
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.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.