• 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

How to make all rooms viewable

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

Post a reply
13 posts • Page 1 of 1

Postby MiltonBC » Thu Aug 09, 2012 5:42 pm

Hi, I've searched everywhere but cannot solve this simple problem. Right now, new chatters only see the default room. I want them to see all available rooms.
MiltonBC
New member
 
Posts: 8
Joined: Thu Aug 09, 2012 5:37 pm
Top

Postby OldWolf » Fri Aug 10, 2012 12:30 am

Well, available rooms are basically infinite... but if you want them to see a predetermined set of rooms, this is your option:
http://www.phpfreechat.net/parameters#channels
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 MiltonBC » Fri Aug 10, 2012 1:38 am

Thanks OldWolf, but I don't know much php....I'm using this to cover a baseball tournament, I'll have a scorekeeper for each of 21 games input play by play and viewers can keep updated. So, when a new viewer enters, I want them to be able to choose which channel/game they like.....rather than me having to /invite each one.

Can you by chance give me the code to insert into index.php???

The games will be numbered....game1, game2, etc.

Thanks a bunch!
Last edited by MiltonBC on Fri Aug 10, 2012 1:39 am, edited 1 time in total.
MiltonBC
New member
 
Posts: 8
Joined: Thu Aug 09, 2012 5:37 pm
Top

Postby OldWolf » Sun Aug 12, 2012 8:48 am

$params['parameter_name'] = array('game1', 'game2', 'game999');
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 MiltonBC » Sun Aug 12, 2012 6:47 pm

I pasted that command into index.php immediately below "params["debug"] = false;"

It didn't seem to change anything, new viewers see only "My Room"

Do I have to change something?? or did I put it in the wrong place??

Thanks again for your help, I need to get this working by Wednesday...
MiltonBC
New member
 
Posts: 8
Joined: Thu Aug 09, 2012 5:37 pm
Top

Postby OldWolf » Sun Aug 12, 2012 7:17 pm

Always rehash after a change: http://www.phpfreechat.net/rehash
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 MiltonBC » Sun Aug 12, 2012 7:54 pm

OK, I did that...now when a new user enters, they see:
phpFreeChat cannot be initialized, please correct these errors:
-Error: undefined or obsolete parameter 'parameter 'parameter_name', please correct or remove this parameter
MiltonBC
New member
 
Posts: 8
Joined: Thu Aug 09, 2012 5:37 pm
Top

Postby MiltonBC » Sun Aug 12, 2012 8:08 pm

I changed 'parameter_name' to 'TIC Talk'....not sure if thats the right thing to do but now when I rehash I get "a problem occurs during rehash"
MiltonBC
New member
 
Posts: 8
Joined: Thu Aug 09, 2012 5:37 pm
Top

Postby MiltonBC » Mon Aug 13, 2012 8:45 pm

OldWolf, should it work as is or do I need to substitute part of the parameter with something different?
MiltonBC
New member
 
Posts: 8
Joined: Thu Aug 09, 2012 5:37 pm
Top

Postby MiltonBC » Mon Aug 13, 2012 9:16 pm

Now I get this message:

Warning: require_once(/home/miltonbc/public_html/2012westerns/chat/src/phpfreechat.clahp) [function.require-once]: failed to open stream: No such file or directory in /home/miltonbc/public_html/2012westerns/chat/index.php on line 3

Fatal error: require_once() [function.require]: Failed opening required '/home/miltonbc/public_html/2012westerns/chat/src/phpfreechat.clahp' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/miltonbc/public_html/2012westerns/chat/index.php on line 3

(I have not changed anything on line 3)

Please help!
MiltonBC
New member
 
Posts: 8
Joined: Thu Aug 09, 2012 5:37 pm
Top

Postby OldWolf » Wed Aug 15, 2012 6:32 am

Whoops, I'm sorry, I went to fast copying from the params page (less typos that way) and inadvertently forgot to change the parameter name...

Replace "prameter_name" with "channels":
$params['channels'] = array('game1', 'game2', 'game999');
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 MiltonBC » Wed Aug 15, 2012 3:01 pm

Thanks OldWolf, we're getting close I hope! Now I get this message:


Warning: require_once(/home/miltonbc/public_html/2012westerns/chat/src/phpfreechat.clahp) [function.require-once]: failed to open stream: No such file or directory in /home/miltonbc/public_html/2012westerns/chat/index.php on line 3

Fatal error: require_once() [function.require]: Failed opening required '/home/miltonbc/public_html/2012westerns/chat/src/phpfreechat.clahp' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/miltonbc/public_html/2012westerns/chat/index.php on line 3

On line 3, I have:

require_once dirname(__FILE__)."/src/phpfreechat.clahp";

Please tell me which part of the first message I paste where....thanks a bunch!
MiltonBC
New member
 
Posts: 8
Joined: Thu Aug 09, 2012 5:37 pm
Top

Postby OldWolf » Tue Aug 21, 2012 12:24 am

It looks like you might have typed over some of the extension... as far as I'm aware, .clahp is not an extension. ;)
Change it to .php
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


Post a reply
13 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 23 guests

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