IPS - ip.board
This method is compatible with any version of IP.board
If you use ip.board, I'll teach you how to add a page for your chat application
- First create a block
- Choose these settings
- Inside enter all this code you see below
$_id_account = \IPS\Member::loggedIn()->member_id; $name = \IPS\Member::loggedIn()->name; $member_id = \IPS\Member::loggedIn()->member_id; $gender = \IPS\Member::loggedIn()->profileFields()["core_pfieldgroups_3"]["core_pfield_2"]; // POST VARIABILI $id_code_pass = ''; // insert id token $id_room = '3'; // insert id room $sesso = $gender; // insert gender - 1 man or 2 female, the INTEGRATION of this variable needs support, contact us $role = 'user'; // insert role - create group roole - admin - moderator - deejay ecc $anni_ = '23'; // insert age - create field group $get_profile = '/index.php?/profile/'.$member_id.'-'.$name.'/'; // insert link profile // user guest - use group ospite if(empty($member_id)){ $role = 'ospite'; } $json = json_encode(array( 'password'=>$id_code_pass, 'id_account'=> $_id_account, 'username'=> $name, 'gender'=> $sesso, 'role'=> $role, 'birthyear'=> $anni_, 'profile_link'=> "$get_profile", 'immage_user'=> 'https://www.html5-videochat.com/homepage/img/logo_a.png', 'room_id'=> $id_room )); $encoded = file_get_contents("https://html5-videochat.com/applications/chat_webcam_personale/crypt.php/?code_crypt=".base64_encode($json)); echo <<<HTML <iframe id="iframeChat" width="100%" height="100%" src="https://www.html5-videochat.com/index.php?/chat/$encoded" allowfullscreen="" allow="geolocation; microphone; camera; allowfullscreen; autoplay;" ></iframe> HTML;
- get the block id
- Create a page, to insert your chat;
- Use these settings
- Enter block id, created earlier
Quote{block="blocco-index-chat"}
Create gender user
Go to profile fields
Click on create new, I name the field gender
click the + button
Use these example parameter
At this point go to the created page and you will see your active chat, contact us to find any difficulties, we will give you support
0 Comments
Recommended Comments
There are no comments to display.