• 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

keep all people from joining a common room at login

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

Post a reply
5 posts • Page 1 of 1

Postby todhend » Sat Jun 12, 2010 6:23 pm

here's something you can do to keep all people from joining a common room at login,
this will depend on your user set up, but in the index add $params["channels"] = array($_SESSION['user']);

meaning whatever this is $params["nick"] = $_SESSION['user'];

put the same thing in the channels array, then when a user logs in for the first time they land in their user name room
this works great if you have rooms already defined from the template, after landing in there room people cannot see that they have logged in and they can use the /invite command or /join command

here's an example http://spfldmo.com/sites/chat/
log in as demo demo or sign up for a new user
http://nflpick.net free football picks
http://tdah.us free webmail script
todhend
Member
 
Posts: 83
Joined: Tue Jan 19, 2010 9:03 pm
Location: Missouri
  • Website
Top

Postby h4ever » Sat Jun 12, 2010 11:03 pm

And does it have some sense? May some other user see his room? I am not sure... I want to try to help some things to get better I just need some time to learn JS classes.
h4ever
Member
 
Posts: 43
Joined: Fri Jun 04, 2010 11:10 am
Top

Postby todhend » Sun Jun 13, 2010 4:05 am

no other user can see you unless your in the same room
http://nflpick.net free football picks
http://tdah.us free webmail script
todhend
Member
 
Posts: 83
Joined: Tue Jan 19, 2010 9:03 pm
Location: Missouri
  • Website
Top

Postby dvdljns » Sun Aug 08, 2010 8:09 am

todhend wrote:here's something you can do to keep all people from joining a common room at login,
this will depend on your user set up, but in the index add $params["channels"] = array($_SESSION['user']);

meaning whatever this is $params["nick"] = $_SESSION['user'];

put the same thing in the channels array, then when a user logs in for the first time they land in their user name room
this works great if you have rooms already defined from the template, after landing in there room people cannot see that they have logged in and they can use the /invite command or /join command

here's an example http://spfldmo.com/sites/chat/
log in as demo demo or sign up for a new user

todhend: you really dressed the the chat program up a lot. I do not know how to program so am having problems with even small changes. Is there anyway I can get that setup from you.
dvdljns
New member
 
Posts: 2
Joined: Wed May 26, 2010 11:23 am
Top

Postby todhend » Wed Aug 11, 2010 8:48 pm

its not really done yet but Ill put whats there for download soon here http://tdah.us/forum thanks
http://nflpick.net free football picks
http://tdah.us free webmail script
todhend
Member
 
Posts: 83
Joined: Tue Jan 19, 2010 9:03 pm
Location: Missouri
  • Website
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 3 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