- Code: Select all
FIND:
// register the user (and his metadata) in the channel
BEFORE, ADD:
//
// show a welcome message
// yokhannan <yokhannan@gmail.com>
//
unset($cmdp);
$cmdp["param"] = _pfc("%s, welcome to our chatroom!",$u->nick, $channame);
$cmdp["recipient"] = $chanrecip;
$cmdp["recipientid"] = $chanid;
$cmdp["flag"] = 2;
$cmd =& pfcCommand::Factory("notice");
$cmd->run($xml_reponse, $cmdp);
This works great, but, I would like to post an audio sound to a joining chatter. To be more specific, I would like to post a .wav or .mp3 to a joining chatter. As a temporary audio join message, I will sent to the joining chatter the URL http://www.omniglot.com/soundfiles/dani ... me1_dk.mp3 and this should play the mp3 sound which will say in sound "Welcome."
When I use the yokhannan code, it will post the welcome message as " <embed height='1' width='1' style='margin:5px;' src='http://www.omniglot.com/soundfiles/danish/yourewelcome1_dk.mp3'>" but it will not play the URL mp3 to the joining chatter. I believe this is not posting the <embed> code because it is a "notice" to the joining chatter, and not a "privmsg." I would like to post the full tag <embed height='1' width='1' style='margin:5px;' src='http://www.omniglot.com/soundfiles/danish/yourewelcome1_dk.mp3'> to the joining chatter so that it actually plays the sound file to them. Someone has an idea of how to do this?