iFlyChat
Home
GitHub
Dashboard
Search…
iFlyChat
Documentation
Installation
WordPress
Embed Chatroom in WordPress Post
Disable Popup Chat
Hide Popup Chat from a Page
Embed Inbox View
View Chat Logs
Guest User Access
Show/Hide Popup Chat On Specific Pages
WordPress Filters and Hooks
API Reference
Create a new chat room
Retrieve list of all chat rooms
Edit a chat room
Retrieve list of all online users
Kick a user from the chat
Retrieve list of all users online in a chat room
Delete a chat room
Retrieve Thread History
JavaScript SDK
Quickstart
Custom Label In Chat Window
User Chat Button Widget
Reference
Help
General
Embedded Chatroom
Create a New Room
Create a New Embed Room
Embed Room in PHP
Feature Description
Chat Moderation
Powered By
GitBook
Embed Room in PHP
The following code can be used to add embed chatroom into a PHP page:
<div class="iflychat-embed" data-room-id="0" data-height="600px" data-width="700px"></div>
It has three attributes:
data-room-id
- room id (always a number). New chat room can be created via our
iFlyChat Dashboard
or REST API.
data-height
- This attribute decides height of the embedded chatroom.
data-width
- This attribute decides width of the embedded chatroom
We provide one chat room (id = 0) by default with every API key. You may create more chat rooms by going to Chat Dashboard as illustrated here:
https://iflychat.com/docs/help/embedded-chatroom/create-new-chat-room
.
Previous
Create a New Embed Room
Next - Help
Feature Description
Last modified
2yr ago
Copy link