• 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

Multiple rooms problem.

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

Post a reply
5 posts • Page 1 of 1

Postby Malcomn » Mon Apr 16, 2007 3:48 pm

Hi i'm new in php, and i having problems in creating dynamic rooms through $_GET.

Code: Select all
$params['channels'] = array($_GET['channel']);

Using $_GET [“channel”] only works for the first room that created.

Example:

..chat.php?channel=room1 = create room1
..chat.php?channel=room2 = goes to room1

It don’t matter what name i put in the channel, always goes to room1.

This problem appeared recently, as much in my localhost and webserver, but it don't matter if i install a new version of pfc, the problem still remains.

Sorry for my poor english, i hope you guys can understand.
Malcomn
New member
 
Posts: 3
Joined: Mon Apr 16, 2007 2:42 pm
Top

Postby Tribalx » Mon Apr 16, 2007 5:09 pm

i dont think that simple line will get you to the right room.

IF (ISSET($_GET['room_name']))
{

//check if it excists
$params['channels'] = array($_GET['channel']);
//else make it
}
i geuss you can copy the current code when joining a room with your parameters ($_GET)

edit; forgot () :)
Last edited by Tribalx on Mon Apr 16, 2007 5:09 pm, edited 1 time in total.
watsup doc? :mad:
Tribalx
Member
 
Posts: 13
Joined: Sat Apr 14, 2007 9:54 pm
Top

Postby Malcomn » Tue Apr 17, 2007 7:36 pm

Thanks tribalx, but the problem still continues.
Malcomn
New member
 
Posts: 3
Joined: Mon Apr 16, 2007 2:42 pm
Top

Postby Tribalx » Tue Apr 17, 2007 8:22 pm

show me some code, im not a clairvoyant ;)
watsup doc? :mad:
Tribalx
Member
 
Posts: 13
Joined: Sat Apr 14, 2007 9:54 pm
Top

Postby onslo » Wed Aug 29, 2007 10:41 am

This seems to have been introduced between beta9 and beta11
With beta9 I can use this to create my channels array :

Code: Select all
#get channel from chat id
$params["channels"] =  array(Room_ . $_GET['chatid']);

In beta9 mutliple rooms would work if the chat was relaoded with a different chatid.

Now, with beta11 this code no longer works for multiple channels. All you get is the first channel that was created.
I can see all of the database entries being made (I use the mysql container) but the channel tab never appears for channels created after the first channel.
Does anyone have any idea why ?

Rgs

Onslo
Last edited by onslo on Thu Aug 30, 2007 8:22 am, edited 1 time in total.
onslo
Member
 
Posts: 14
Joined: Wed May 02, 2007 1:41 pm
Top


Post a reply
5 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

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