Kunena 6.3.1 released

The Kunena team has announce the arrival of Kunena 6.3.1 [K 6.3.1] in stable which is now available for download as a native Joomla extension for J! 4.4.x/5.0.x/5.1.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 and issues discovered during the last development stages of K 6.3

Please note: The Kunena project team takes NO responsibility for maintaining nor supporting anything in this category.

Question How to add a button in the message view

8 months 2 weeks ago - 8 months 2 weeks ago #1 by c_schmitz

I figure out now that I can theortically add an  additional button using the event onKunenaGetButtons  like this:   

    public function onKunenaGetButtons($context, $messageButtons, $view)     {                  if ($context == 'message.action') {             $view->messageButtons->set(                     'Instant ban',                     $view->getButton(                         'instantban',                         'instantban',                         'message',                         'instantban',                         'edit',                         false,                         KunenaIcons::shield()                     )                 );         }     }

However the button is not showing up because in the message view there isn't according HTML to show it.
What would be the best way to insert the actual button  among the other buttons below a message using a plugin?
Thank you and best regards
Last edit: 8 months 2 weeks ago by c_schmitz.

Please Log in or Create an account to join the conversation.

Time to create page: 0.484 seconds