I'm just starting out trying to modify an existing plugin in a very small way ...
What do I need to do to have show_message() display a message?
The code has
$this->rc = rcmail::get_instance();
and lots of code that is working, and I have added after the working code
$this->rc->output->show_message('Message text','confirmation');
but I am not seeing the message.
If I can ever get this working, the message will say something more useful!
I'm probably missing something really obvious ...
It would need to be done from a API call from the front end code in order for the message to be shown. Can you share more of the code so we can have a better idea how the code is running?
Quote from: SKaero on January 28, 2026, 12:11:04 AMIt would need to be done from a API call from the front end code in order for the message to be shown. Can you share more of the code so we can have a better idea how the code is running?
I don't think I can. I'm trying to make small changes to code that isn't mine, so I don't think I can share any more of it.
I'll keep digging though the code of various plugins and may be able to find some more clues as to how to do this.