FreiChat related discussions
Create web link to open chat room

I have seen on another post how to open a chat window using:
FreiChat.create_chat_window(user,id)
FreiChat.create_chat_window_mesg(user,id)

How do you create a link (or button) to join an existing chat room?

I have seen on another post how to open a chat window using: FreiChat.create_chat_window(user,id) FreiChat.create_chat_window_mesg(user,id) How do you create a link (or button) to join an existing chat room?
-- Jim McLaughlin

You can load the available chatrooms with the method
FreiChat.loadchatroom()

It requires the following arguments
title -> chatroom title
id -> chatroom id
type -> chatroom type where 0 is normal & 1 is password protected

All the chatroom information is stored in an array FreiChat.room_array

It is an array of objects containing all information of a particular chatroom .
For eg FreiChat.room_array[0] is

{
online_count: "0"
room_author: "admin"
room_id: "3"
room_name: "Think out loud"
room_type: "0"
}


So you can load the first chatroom in the chatroom list by :
FreiChat.loadchatroom(FreiChat.room_array[0].room_name, FreiChat.room_array[0].room_id, FreiChat.room_array[0].room_type)


similarly second chatroom can be loaded by:
FreiChat.loadchatroom(FreiChat.room_array[1].room_name, FreiChat.room_array[1].room_id, FreiChat.room_array[1].room_type)

And so on...

You can load the available chatrooms with the method FreiChat.loadchatroom() It requires the following arguments title -> chatroom title id -> chatroom id type -> chatroom type where 0 is normal & 1 is password protected All the chatroom information is stored in an array FreiChat.room_array It is an array of objects containing all information of a particular chatroom . For eg FreiChat.room_array[0] is <code> { online_count: "0" room_author: "admin" room_id: "3" room_name: "Think out loud" room_type: "0" } </code> So you can load the first chatroom in the chatroom list by : <code> FreiChat.loadchatroom(FreiChat.room_array[0].room_name, FreiChat.room_array[0].room_id, FreiChat.room_array[0].room_type) </code> similarly second chatroom can be loaded by: <code> FreiChat.loadchatroom(FreiChat.room_array[1].room_name, FreiChat.room_array[1].room_id, FreiChat.room_array[1].room_type) </code> And so on...
Necessity is the mother of all inventions!
216
2
0
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft