Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
How to add Big Discussion btn and Ask a Question button
I need to add Big Discussion btn with Ask a Question button(Example
in the image) instead of drop down button.
Vanilla Version 2.2.1
0
Comments
Try adding this line to your
/conf/config.php
Its not working..
No changes appear..
You are halfways correct. It is not working as it should do.
The dropdown does not disappear but there is an additional button if you use this config setting. You would have to change the modules order. See here on how to do it: https://vanillaforums.org/discussion/24995/tutorial-how-to-change-the-order-of-modules-and-menu-items. You would have to add "QuestionModule" after "NewDiscussionModule".
After that you would have to style away the visual difference. Start with
he hey I did it.
I did The Big Button option part A & Big Button option part B and I commented code line 247 in class.qna.plugin.php
243| public function Base_DiscussionTypes_Handler($Sender, $Args) {
244| $Args['Types']['Question'] = array(
245| 'Singular' => 'Question',
246| 'Plural' => 'Questions',
247| //'AddUrl' => '/post/question',
248| 'AddText' => 'Ask a Question'
249| );
250| }
@R_J Thank you for your help about module orders.
You've "solved" your problem by changing core files. That is always a bad idea.