Home/Forums/Embedding Chat on your website (Member sites)
Thanks for supporting this station!
Register now with StreamCode Studio!
Access your StreamCode Studio account
Enter your email to reset your password
We've sent a download link to your email {}
Please check your inbox (and spam folder just in case).
The link will be valid for 24 hours.
BellOnline offers fast, reliable UK hosting with strong security and excellent uptime - perfect for modern radio and web projects.
MixStream provides broadcast-grade streaming with crystal-clear audio and rock-solid stability, ideal for both hobby and professional stations.
EmmaS
yesterday
All you need to do is copy the embed code from your dashboard and place it where you want the chat to appear.
What each option does:
key
Your unique chat key (shown in the SCS dashboard). This authorises your website.
room
The room name users will join (for example: lobby, support, dj-chat).
username
The display name shown in chat.
title
An optional title shown at the top of the chatroom.
Using your website’s member system
If your website already has user accounts, you can dynamically pass the logged-in username to SCS Chat.
For example, instead of a fixed username:
username: "Username",
You can use your site’s login variable:
username: "<?php echo $logged_in_username; ?>",
This ensures users appear in chat using the same name they use on your website.
Using multiple chat rooms (recommended)
If you want more than one chatroom (for example: Lobby, Support, DJ Chat, General Chat, etc), the easiest way is to store rooms in your database and load them dynamically.
Example chat_rooms table:
Using database values in the embed code
If you load a room from the database, you can pass its values directly into the chat configuration:
room: "<?php echo $slug; ?>",
title: "<?php echo $name; ?>",
This allows you to:
generate chatrooms dynamically
link rooms to categories or pages
control visibility (public / private rooms)
reuse the same embed code across your site
If you don’t need multiple rooms, you can:
use one embed
keep the room name fixed (for example lobby) and just echo the logged in user.
SCS Chat will handle everything else automatically.
Leave a Comment
You must be logged in to post a reply.