• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 2.x Branch ‹ General Support (v2.x)
  • Change font size
  • FAQ
  • Register
  • Login

Welcome message (as a privmsg so we can plan a wav/mp3)

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
1 post • Page 1 of 1

Welcome message (as a privmsg so we can plan a wav/mp3)

Postby malatesa » Sun Mar 23, 2014 5:45 am

Hello. I have seen an awesome method to post a Welcome Message to a joining chatter. This suggestion by Yokhannan works great. He said the following:
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?
malatesa
New member
 
Posts: 1
Joined: Sun Mar 23, 2014 5:22 am
Top

Post a reply
1 post • Page 1 of 1

Return to General Support (v2.x)

Who is online

Users browsing this forum: No registered users and 3 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
cron
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub