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

edited June 2016 in Vanilla 2.0 - 2.8

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

Tagged:

Comments

  • R_JR_J Admin

    Try adding this line to your /conf/config.php

    $Configuration['Plugins']['QnA']['UseBigButtons'] = TRUE;
    
  • @R_J said:
    Try adding this line to your /conf/config.php

    $Configuration['Plugins']['QnA']['UseBigButtons'] = TRUE;
    

    Its not working..
    No changes appear..

  • R_JR_J Admin

    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

    .BoxNewDiscussion > .ButtonGroup > .Handle {
        display: none;
    }
    
  • 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.

  • R_JR_J Admin

    You've "solved" your problem by changing core files. That is always a bad idea.

Sign In or Register to comment.