Hello SharkyKZ,....
foreach ($messages as $k => $message)
{
// Match and replace the message in question.
if ($message['message'] === $app->getLanguage()->_('COM_CONTENT_SAVE_SUCCESS'))
{
$message['message'] = $app->getLanguage()->_(sprintf('PLG_SYSTEM_EXAMPLE_SAVE_SUCCESS', $timestamp));
}
// Repopulate the message queue.
$app->enqueueMessage($message['message'], $message['type']);
}[/code]...
I want to inform you, that I now have a little Plugin running, that does the job.
I thank You for the code, because it is a central part of my plugin.
The output is now like this:
Statistics: Posted by hgh-esn — Sat Nov 09, 2024 9:03 pm