| Hodges |
|
|---|---|
|
Hello, In a plugin I'm modifying, after the user submits a form the following code is executed:
header("Location: message.php?msg=300");
outputting one of cotonti's built-in messages. How can I deliver a custom message using the same mechanism? Hodges |
| Gökhan YILDIZ |
|
|---|---|
|
open your plugin and add
$msg = cot_import('msg', 'G', 'INT');
if ($msg == 'customID'){ header("Location: message.php?msg=customID"); }
open your /lang/en/message.en.lang.php find: $L['msg951_body'] = 'Your session is no longer valid. Please try again.'; add after: //Custom Message $L['msgCUSTOMID_title'] = 'custom message title'; $L['msgCUSTOMID_body'] = 'custom message details';
Gökhan YILDIZ
|
| Hodges |
|
|---|---|
|
Thanks for the reply. It works, but I was hoping for something that wouldn't require a core hack. |
| Gökhan YILDIZ |
|
|---|---|
|
messages appear on the page itself a special. so you need to edit or need to run your plugin header So create your own plugin with a language file and add these codes into. Gökhan YILDIZ
|