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

Default room by GET request variable?

This forum is now locked as we will no longer be developing the v1.x branch

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

Topic locked
3 posts • Page 1 of 1

Postby liri » Sun Mar 29, 2009 11:06 pm

Hey guys,

I know that it's possible to define default rooms for users to join but I was wondering if it's possible
to enforce the join to a new room with a GET request variable to the chat script.

Example, if a user opens up: http://www.example.com/chat?room=testing123
then the chat would open and open/join room 'testing123' automatically.

Has anyone done this before?
I'd be happy to get some comments and practical example.


Thanks.
liri
New member
 
Posts: 3
Joined: Thu Mar 26, 2009 11:36 pm
Top

Postby OldWolf » Tue Mar 31, 2009 1:47 am

Yes it is possible. What you need to do is have a 'routing' page that sets the get variable into something that wont be lost (sessions is by far the easiest). Then on the chat page check for that session variable.
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 resolveit » Thu May 28, 2009 2:19 pm

I have a similar problem...

I have 4 rooms but the user is taken to the last room that was created by default. I want to specify which room the user should start in.

Regards,
Onno Vrijburg
resolveit
New member
 
Posts: 1
Joined: Mon May 25, 2009 9:58 am
Top


Topic locked
3 posts • Page 1 of 1

Return to Feature Requests (v1.x)

Who is online

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