Jumping in on an old thread, but wondering how to configure the side panel DiscussionFilter to show only the "My Discussions" count and no other links?
The default Panel array is (from config-default.php) $Configuration['Modules']['Vanilla']['Panel'] = array('MeModule', 'UserBoxModule', 'GuestModule', 'NewDiscussionModule', 'DiscussionFilterModule', 'SignedInModule', 'Ads');
I'm not sure how that correlates to the side panel box, which currently shows links for:
Categories
Latest Discussions
Activity
My Discussions
But no matter what changes I make to that array, the side panel box doesn't change what it's showing. I just want to show a link for "My Discussions" and not the others.
You should really begin new discussions instead of using old ones which in fact aren't really dealing with your exact problem.
What you are speaking about is the DiscussionFilter. You can move it around, but changing its contents is a complete different topic.
You could hide the other links with CSS. Look at the html source code, find out the class names of the entries you do not want to see, get the CSSEdit plugin and google what the css command display: none would do.
Another option for this question which is very versatile is to create a file custom.js under the /js folder and use the insertBefore or insertAfter jQuery.
Comments
Where can I find a full list of all modules?
For example I would like to put Whos Online box on top etc...
Here's how to get the Ask a Question to go in the right order after the Start a New Discussion button.
$Configuration['Plugins']['QnA']['UseBigButtons'] = TRUE;
$Configuration['Modules']['Vanilla']['Panel'] = array('NewDiscussionModule', 'NewQuestionModule', 'SignedInModule', 'GuestModule', 'Ads');
Put
'WhosOnlineModule',
at the start of your Modules array.Like this:
$Configuration['Modules']['Vanilla']['Panel'] = array('WhosOnlineModule', 'NewDiscussionModule', 'NewQuestionModule', 'SignedInModule', 'GuestModule', 'Ads');
Jumping in on an old thread, but wondering how to configure the side panel DiscussionFilter to show only the "My Discussions" count and no other links?
The default Panel array is (from config-default.php)
$Configuration['Modules']['Vanilla']['Panel'] = array('MeModule', 'UserBoxModule', 'GuestModule', 'NewDiscussionModule', 'DiscussionFilterModule', 'SignedInModule', 'Ads');
I'm not sure how that correlates to the side panel box, which currently shows links for:
Categories
Latest Discussions
Activity
My Discussions
But no matter what changes I make to that array, the side panel box doesn't change what it's showing. I just want to show a link for "My Discussions" and not the others.
I'm using Vanilla 2.3
You should really begin new discussions instead of using old ones which in fact aren't really dealing with your exact problem.
What you are speaking about is the DiscussionFilter. You can move it around, but changing its contents is a complete different topic.
You could hide the other links with CSS. Look at the html source code, find out the class names of the entries you do not want to see, get the CSSEdit plugin and google what the css command
display: none
would do.Ok got it. Thanks
Another option for this question which is very versatile is to create a file custom.js under the /js folder and use the insertBefore or insertAfter jQuery.
eg.
`(function($) {
jQuery(document).ready(function() {
jQuery('div.YourDiv').insertBefore('div.SomeDiv');
})
})(jQuery);
`