FreiChat related discussions
Change 'Chat Room' Title

Hi!,
How can I change the 'Chat Room' label?
I mean the one that works as button to open the chat rooms sliding window.
I've trying to find it through all the files but I can't find it.
I would like to translate it.
Regards,
Rafael

Hi!, How can I change the 'Chat Room' label? I mean the one that works as button to open the chat rooms sliding window. I've trying to find it through all the files but I can't find it. I would like to translate it. Regards, Rafael

There is not yet any option provided for translating the text in chatroom .

However there is a easy way out .
Go to freichat/client/freichat.js

Around line 700 , you will find

if(freidefines.PLUGINS.showchatroom=='enabled'){


Add the following piece of code after that line like this :
if(freidefines.PLUGINS.showchatroom=='enabled'){
$jn(".frei_tab>span").html("Your_Text");


Replace Your_Text with the label that you want .

There is not yet any option provided for translating the text in chatroom . However there is a easy way out . Go to freichat/client/freichat.js Around line 700 , you will find <code> if(freidefines.PLUGINS.showchatroom=='enabled'){ </code> Add the following piece of code after that line like this : <code>if(freidefines.PLUGINS.showchatroom=='enabled'){ $jn(".frei_tab>span").html("Your_Text"); </code> Replace Your_Text with the label that you want .
Necessity is the mother of all inventions!

Hi!

I try to change the "Chat Room" title using your answer.

The part of code before (from line 703):

--------
FreiChat.frei_branding();
if(freidefines.PLUGINS.showchatroom=='enabled'){

if(FreiChat.first == false) {
FreiChat.init_chatrooms();
}
--------

The part of code after:

--------
FreiChat.frei_branding();
if(freidefines.PLUGINS.showchatroom=='enabled'){

if(freidefines.PLUGINS.showchatroom=='enabled'){
$jn(".frei_tab>span").html("New_Name");
}

if(FreiChat.first == false) {
FreiChat.init_chatrooms();
}
--------

But nothing changes. I see "Chat Room" title instead "New_Name". Is other solution, may be?

Hi! I try to change the "Chat Room" title using your answer. The part of code before (from line 703): -------- FreiChat.frei_branding(); if(freidefines.PLUGINS.showchatroom=='enabled'){ if(FreiChat.first == false) { FreiChat.init_chatrooms(); } -------- The part of code after: -------- FreiChat.frei_branding(); if(freidefines.PLUGINS.showchatroom=='enabled'){ if(freidefines.PLUGINS.showchatroom=='enabled'){ $jn(".frei_tab>span").html("New_Name"); } if(FreiChat.first == false) { FreiChat.init_chatrooms(); } -------- But nothing changes. I see "Chat Room" title instead "New_Name". Is other solution, may be?

It was a copy/paste mistake. The new code is:

---------
FreiChat.frei_branding();
if(freidefines.PLUGINS.showchatroom=='enabled'){
$jn(".frei_tab>span").html("New_Name");

if(FreiChat.first == false) {
FreiChat.init_chatrooms();
}
---------

It was a copy/paste mistake. The new code is: --------- FreiChat.frei_branding(); if(freidefines.PLUGINS.showchatroom=='enabled'){ $jn(".frei_tab>span").html("New_Name"); if(FreiChat.first == false) { FreiChat.init_chatrooms(); } ---------

It's fun. :)

When I have switched chat offline and then have switched online, I have found the new title on site page. :)))

It's fun. :) When I have switched chat offline and then have switched online, I have found the new title on site page. :)))

Do you mean the title changes only if you switch to online
because i had no problems in my localhost here .

Do you mean the title changes only if you switch to online because i had no problems in my localhost here .
Necessity is the mother of all inventions!
127
5
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