• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ General Support (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

Change \"My Room\"

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
21 posts • Page 1 of 2 • 1, 2

Postby Nico » Thu Jan 27, 2011 6:12 am

I have tried several methods found in the forums, and I simply cannot get this to change.
I have my chat room set up with one channel, nothing fancy. I can change the browser title, and such. But the default channel created is always My Room.
I've found the code snippet in the source where it tells me what the param should be, but when I changed it it ticked off the chatroom and I had to delete the string.
I don't want anything fancy, I just want to be able to change that tab name to something else.

HELP!
Nico
New member
 
Posts: 1
Joined: Thu Jan 27, 2011 6:08 am
Top

Postby re*s.t.a.r.s.*2 » Thu Jan 27, 2011 3:19 pm

you use :

$params['channels']='AnyChannelName';

then you rehash the chat, then disconnect from chat reenter and should be there..
Free Singles Chat Rooms No Registration Required
Text and Chat Singles no need to register or app required
Sala De Bate Papo Online Grátis E Sem Cadastro
re*s.t.a.r.s.*2
Support Team
 
Posts: 612
Joined: Wed Sep 24, 2008 4:04 pm
Location: los angeles CA
  • Website
Top

Postby OldWolf » Thu Jan 27, 2011 7:56 pm

I think re*s.t.a.r.s.*2 meant:
$params=['channels'] = array('AnyChannelName');
:)
Signature:
Read before Posting: Forum Rules
Note: I am unable to offer support through PM/e-mail at this time.
OldWolf
Site Admin
 
Posts: 1918
Joined: Sun Sep 23, 2007 5:48 am
Top

Postby re*s.t.a.r.s.*2 » Thu Jan 27, 2011 9:57 pm

OOPs yes correct sorry...

thanks Oldwolf.. :)
Free Singles Chat Rooms No Registration Required
Text and Chat Singles no need to register or app required
Sala De Bate Papo Online Grátis E Sem Cadastro
re*s.t.a.r.s.*2
Support Team
 
Posts: 612
Joined: Wed Sep 24, 2008 4:04 pm
Location: los angeles CA
  • Website
Top

Postby littleantz » Tue Apr 19, 2011 4:06 pm

When I use this...
Code: Select all
$params=['channels'] = array('AnyChannelName');

it returns error...
Code: Select all
Parse error: syntax error, unexpected '[' in /home/chatroot/index.php on line 13

When I use this...
Code: Select all
$params["channels"] = array("Lounge");

No error. Chat loads. but the name is still "My room"

Any idea why?

Thanks
Last edited by littleantz on Tue Apr 19, 2011 4:07 pm, edited 1 time in total.
littleantz
Member
 
Posts: 14
Joined: Tue Apr 19, 2011 11:36 am
Top

Postby re*s.t.a.r.s.*2 » Tue Apr 19, 2011 5:09 pm

Hi,

what you need to do is "/rehash" the chat, for the configuration to take effect..
also the error you have an extra "=" at the $params.
regards.
Free Singles Chat Rooms No Registration Required
Text and Chat Singles no need to register or app required
Sala De Bate Papo Online Grátis E Sem Cadastro
re*s.t.a.r.s.*2
Support Team
 
Posts: 612
Joined: Wed Sep 24, 2008 4:04 pm
Location: los angeles CA
  • Website
Top

Postby littleantz » Tue Apr 19, 2011 7:03 pm

re*s.t.a.r.s.*2 wrote:Hi,

what you need to do is "/rehash" the chat, for the configuration to take effect..

Thanks ;)

re*s.t.a.r.s.*2 wrote:also the error you have an extra "=" at the $params.
regards.

That means Oldwolf correction to your code is also wrong :)

Got it all sorted out.

I use this code for the benefit of others who will ask this in the future.
Code: Select all
$params["channels"] = array("AnyChannelName");

By the way, which is better, single quote or double quote?

Thanks
littleantz
Member
 
Posts: 14
Joined: Tue Apr 19, 2011 11:36 am
Top

Postby re*s.t.a.r.s.*2 » Tue Apr 19, 2011 8:57 pm

hi,
double quote its used when you want to use a $var,will be seen as a php var, single quote its sees as a string..
regards.
Free Singles Chat Rooms No Registration Required
Text and Chat Singles no need to register or app required
Sala De Bate Papo Online Grátis E Sem Cadastro
re*s.t.a.r.s.*2
Support Team
 
Posts: 612
Joined: Wed Sep 24, 2008 4:04 pm
Location: los angeles CA
  • Website
Top

Postby OldWolf » Wed Apr 20, 2011 6:32 am

Yea... I saw that... slipped in an equal sign by mistake
Signature:
Read before Posting: Forum Rules
Note: I am unable to offer support through PM/e-mail at this time.
OldWolf
Site Admin
 
Posts: 1918
Joined: Sun Sep 23, 2007 5:48 am
Top

Postby Coniglio » Wed Feb 08, 2012 10:19 pm

I want to change my room name of the change, I have tried MANY times and it didnt work. I have search everywhere and I have no clue what to do. I am not an expert, i dunno about "programming" but I have followed what you people said here and nothing happened.

I was also trying to chance the amount of old messages that chat shows when you get in and it didnt work... I did the rehash thing everytime.

$params = array();
$params["title"] = "BCS Chat";
$params['admins'] = array('ConiglioDE' => 'xxxx');
$params["nick"] = "BCS_guest".rand(1,1000); // setup the intitial nickname
$params['firstisadmin'] = false;
//$params["isadmin"] = false; // makes everybody admin: do not use it on production servers ;)
$params["serverid"] = md5(__FILE__); // calculate a unique id for this chat
$params["debug"] = false;
$chat = new phpFreeChat( $params );
$params['channels'] = array('Clubhouse');
$params["channels"] = array("Clubhouse");
$params["max_msg"] = "5";

?>
Last edited by Coniglio on Thu Feb 09, 2012 10:16 am, edited 1 time in total.
Coniglio
New member
 
Posts: 4
Joined: Wed Feb 08, 2012 10:16 pm
Top

Postby re*s.t.a.r.s.*2 » Thu Feb 09, 2012 1:02 am

Hi,

Just one parameter $params['channels'] = array('Clubhouse');

then just rehash the chat , typing as admin "/rehash" without quotes..

regards.
Free Singles Chat Rooms No Registration Required
Text and Chat Singles no need to register or app required
Sala De Bate Papo Online Grátis E Sem Cadastro
re*s.t.a.r.s.*2
Support Team
 
Posts: 612
Joined: Wed Sep 24, 2008 4:04 pm
Location: los angeles CA
  • Website
Top

Postby Coniglio » Thu Feb 09, 2012 7:14 pm

Yep, I know. It was just as an example. However this still not working!!! Did Rehash and deleted the cache folder. :/ :/ For more than one room what I am supposed to do? 'Clubhouse','Clubhouse2'
Coniglio
New member
 
Posts: 4
Joined: Wed Feb 08, 2012 10:16 pm
Top

Postby Coniglio » Sun Feb 12, 2012 11:44 pm

someone? :(
Coniglio
New member
 
Posts: 4
Joined: Wed Feb 08, 2012 10:16 pm
Top

Postby Coniglio » Tue Feb 14, 2012 8:57 pm

:(!!
Coniglio
New member
 
Posts: 4
Joined: Wed Feb 08, 2012 10:16 pm
Top

Postby re*s.t.a.r.s.*2 » Tue Feb 14, 2012 9:11 pm

Hi,

Put your current index code, between "code" bbcode tags so we can see the code and understand why that parameter is not being taken in account..

regards.
Free Singles Chat Rooms No Registration Required
Text and Chat Singles no need to register or app required
Sala De Bate Papo Online Grátis E Sem Cadastro
re*s.t.a.r.s.*2
Support Team
 
Posts: 612
Joined: Wed Sep 24, 2008 4:04 pm
Location: los angeles CA
  • Website
Top

Next

Post a reply
21 posts • Page 1 of 2 • 1, 2

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 6 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
cron
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub