cotonti.com : Custom Header Message on POST https://www.cotonti.com Last topic posts Cotonti en Fri, 13 Mar 2026 05:09:53 -0000 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.

]]>
Wed, 06 Nov 2013 16:07:11 -0000
Hodges Thanks for the reply. It works, but I was hoping for something that wouldn't require a core hack.

]]>
Wed, 06 Nov 2013 15:18:48 -0000
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';

 

]]>
Tue, 05 Nov 2013 15:59:09 -0000
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

]]>
Tue, 05 Nov 2013 15:02:27 -0000