Welcome to Geeklog, Anonymous Friday, November 22 2024 @ 12:17 pm EST

Geeklog Forums

Showmessage function for plugins?


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?
 Quote

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.
 Quote

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.
 Quote

All times are EST. The time is now 12:17 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content