Quote:
Originally Posted by Jase2
Hi Andreas,
The following bit:
PHP Code:
$pmdm->set('message', "Hello\nI am a Bot and would like to give you a warm welcome :)");
How would I go about changing this to a phrase, so that users can have the message however they like. Is it possible?
Thanks.
-- Jason
|
Thats actually pretty easy Jason. You need to set 2 things.
First you need this BEFORE the message is called to be sent:
$message = $vbphrase[your_phrase];
Then change the line you have posted above to read:
$pmdm->set('message', $message);