Kunena 6.1.3.2 Released

The Kunena team has announce the arrival of Kunena 6.1.3.2 [K 6.1.3] which is now available for download as a native Joomla extension for J! 4.2.x/4.3.x. This version addresses most of the issues that were discovered in K 6.1.0 and issues discovered during the last development stages of K 6.1

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

More
2 weeks 3 days ago - 2 weeks 3 days ago #1 by c_schmitz
Hello,

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

Code:
    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
Carsten
Last edit: 2 weeks 3 days ago by c_schmitz.

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

Time to create page: 0.351 seconds