Status: offline

Ruatha

Forum User
Junior
Registered: 01/31/03
Posts: 26
Is there a way to use the COM_Showmessage($msg) function with third-party plugins? It looks like it\'s designed to only work with the core Geeklog modules. Besides duplicating this function in my own plugins, is there another way to accomplish the same thing or another similar function already in Geeklog?

Status: offline

rawdata

Forum User
Full Member
Registered: 02/17/03
Posts: 236
It can work in plugins too. Just include lib-common.php and then call the function. It pulls the message out of the array $MESSAGE located in the language files.

Status: offline

Ruatha

Forum User
Junior
Registered: 01/31/03
Posts: 26
Thanks. I didn\'t want to have users have to edit their main Geeklog language files at all, but then I realized that my plugin only calls the showMessage routine when I need it to. This means that I should be able to redefine the $MESSAGE array in the plugin language file without worrying about a conflict with the core Geeklog language file. If this isn\'t a valid solution for some reason, let me know.