FreiChat related discussions
Chat rooms

Is there a way to take away the option of user created chat rooms? I'm wanting this to be an admin only option.

Is there a way to take away the option of user created chat rooms? I'm wanting this to be an admin only option.

Yes, you can deny users from creating chatrooms.

Open freichat backend->ACL and uncheck the option for 'Create temporary chatrooms'.

Yes, you can deny users from creating chatrooms. Open freichat backend->ACL and uncheck the option for 'Create temporary chatrooms'.

I am facing error when creating chatroom by user , if i didn't giving any name to chat room its creating chatroom with blank name .

and the same problem with password field.

so could you tell me how can i make them required to fill.

Thanks

I am facing error when creating chatroom by user , if i didn't giving any name to chat room its creating chatroom with blank name . and the same problem with password field. so could you tell me how can i make them required to fill. Thanks

Hi,

You can just add a condition in the function FreiChat.create_chatroom() in the file freichat/client/freichat.js

with the condition like:


if(name == "") return false;
Hi, You can just add a condition in the function FreiChat.create_chatroom() in the file freichat/client/freichat.js with the condition like: ``` if(name == "") return false; ```

Hello adesh,

Thank you very much for your quick reply.

Thats really help me to solve my problem,

But after doing this i need some more help on this.

Plz also tell me how i throw a error or alert when the name field remains blank .

Thank you

Hello adesh, Thank you very much for your quick reply. Thats really help me to solve my problem, ```` But after doing this i need some more help on this. Plz also tell me how i throw a error or alert when the name field remains blank . ```` Thank you

Hello

For display error i found this , and its working.

if(name == ""smile{ alert("Name field is rquired!"smile;return false ;}

Thank you

Hello For display error i found this , and its working. if(name == ""){ alert("Name field is rquired!");return false ;} Thank you
183
5
3
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