• 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 2 of 2 • 1, 2

Postby alexj » Thu Feb 16, 2012 3:12 pm

Hi, I'm having similar issues in customising the channel name. When I change the parameter I get an error on the page, and the chat panel fails to load. Here is my script:

<?php
require_once dirname(__FILE__)."/phpchat/src/phpfreechat.class.php";
$params = array();
$params["nick"] = "guest".rand(1,1000); // setup the intitial nickname
$params['firstisadmin'] = true;
//$params["isadmin"] = true; // makes everybody admin: do not use it on production servers ;)
$params["serverid"] = md5(__FILE__); // calculate a unique id for this chat
$params["debug"] = false;
$params["focus_on_connect"] = false;
$params["title"] = "Chat about the show";
$params["startwithsound"] = false;
$params["display_ping"] = false;
$params["showsmileys"] = false;
$params["displaytabimage"] = false;
$params["channels"] = array("AnyChannelName");
$chat = new phpFreeChat( $params );
?>

This is the error I get:

Error: 'chat.js.tpl.php' could not be found, please check your themepath '' and your theme 'default' are correct

I havent changed the theme from the default, or modified any other files. Removing the params[channels] line enables the chat panel to work correctly. It has been rehashed ok, but still fails. Any help appreciated!
alexj
New member
 
Posts: 2
Joined: Thu Feb 16, 2012 3:06 pm
Top

Postby re*s.t.a.r.s.*2 » Thu Feb 16, 2012 8:34 pm

Hi,
All seems fine to me, but with the only difference of the require originally is: require_once dirname(__FILE__)."/src/phpfreechat.class.php";

Why did you change it?
as suggestion after putting the param channels again , dont reload the chat just jet go ahead delete de cache folder located at "/data/private" see if that helps.

if it doesnt tell us your server version, and PHP please..

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 alexj » Thu Feb 23, 2012 5:38 pm

Hi, I changed that line as I wanted the phpchat files in a subfolder to be kept separate from the other files on the site. After leaving the page for a few days to work on some other stuff I tried the chat panel again and the name had channel successfully changed, so I guess it was a caching issue.

Thanks for your help!
alexj
New member
 
Posts: 2
Joined: Thu Feb 16, 2012 3:06 pm
Top

Postby Myth024 » Sun Jun 03, 2012 3:47 am

I have the same basic issue. I have set the room name, but no matter what I try, the name My Room stays there. I know that this is the default name, but I'm trying to change that. If I use the code below, I get an error after I reload the page. If I change the
Code: Select all
$params["channels"] = array("LiveChat");  to $params["channels"] = array("LiveChat","LiveChat");

then I don't get an error, but the default chat tab name still says My Room. I have my code listed below. What am I missing here? Do I need to change another file beside my default index.php file?
Code: Select all
<?php

require_once dirname(__FILE__)."/src/phpfreechat.class.php";
$params = array();
$params["channels"] = array("LiveChat");
$params["theme"] = "blune";
$params["title"] = "Global Radio Alliance";
$params["nick"];
$params['firstisadmin'] = true;
//$params["isadmin"] = true; // 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 );

?>
Myth024
Member
 
Posts: 19
Joined: Sun Jun 03, 2012 3:35 am
Top

Postby re*s.t.a.r.s.*2 » Sun Jun 03, 2012 4:13 am

hi,

Just press the log out button..

then close the browser and see if that helped..

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 Myth024 » Sun Jun 03, 2012 6:06 am

Thanks for the response. I figured out the issue. A simple reload after a /rehash doesn't work in firefox and sometimes not in IE. I'm guessing it has to do something with the way the chat system stores information. I'm going to see about a way to work in some kind of clear button to wipe out all the information before reloading again.
Myth024
Member
 
Posts: 19
Joined: Sun Jun 03, 2012 3:35 am
Top

Previous

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

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 22 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