Goto Room With HTML Link

Twister

New Member
May 24, 2015
29
1
Hi DevBest,

I have a question, I want can move between room with button who is on the CMS.
For example on my CMS there are two buttons. The first go on room with id 10 et the second
move on rooom with id 11 and when I click my avatar change room without reload. Like
command goto for example.

Thks you for your help.
Have a good day.
 

JayC

Always Learning
Aug 8, 2013
5,493
1,398
You can achieve this using MUS Commands...
When you click the button, you check if they are online... If they are offline: You can create a variable in the database called 'goto_room' and have it default to 0 . When they click the button it opens the client, and checks to see if goto_room is not equal to 0. If it is not 0, then it overrides the users home room and takes them to the goto_room and then sets that room to 0.

If they are online, you just send a MUS that updates their room.
 

Twister

New Member
May 24, 2015
29
1
You can achieve this using MUS Commands...
When you click the button, you check if they are online... If they are offline: You can create a variable in the database called 'goto_room' and have it default to 0 . When they click the button it opens the client, and checks to see if goto_room is not equal to 0. If it is not 0, then it overrides the users home room and takes them to the goto_room and then sets that room to 0.

If they are online, you just send a MUS that updates their room.
Thnks for your reply. I have understand but just one question, how I can use the MUS ? Have you got a example of function please.
 

Twister

New Member
May 24, 2015
29
1


Make sure you enable sockets in PHP manager
I try that when I come back at home
Thanks you
PS: I can try to re take your function
<?php
function Mus()
{
$port = 30001;
$ip = "127.0.0.1";
$musData = 'goto' . chr(1) . '1:111';

$sock = @socket_create(AF_INET, SOCK_STREAM, getprotobyname('tcp'));
@socket_connect($sock, $ip, intval($port));
@socket_send($sock, $musData, strlen($musData), MSG_DONTROUTE);
@socket_close($sock);
}
Mus();
?>
 
Last edited:

Users who are viewing this thread

Top