• 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

Admins Online

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
6 posts • Page 1 of 1

Postby llynix » Thu Jul 23, 2009 9:32 pm

The idea is to use phpfreechat as an online support chat room. If there are admins online then a link is prominently displayed saying so and clicking would add you to the chat. If no admin is online then an alternate link which leads to a generic contact page is given.

There are demos to show who's online but what I'm missing is a way to tell if the person online is an admin or not. Any clues on how I could hack this?

I've got pretty strong php/html/css/mysql/etc skills.. I'm just hoping someone can point me in the right direction.

Thank you,
Anthony
llynix
New member
 
Posts: 4
Joined: Thu Jul 23, 2009 9:28 pm
Top

Postby OldWolf » Fri Jul 24, 2009 8:41 am

I'd suggest instead that you create or find a outside registration system. When admin login, allow them to "activate" the chatroom... and give them the option to deactivate the chat. When the admin logs out it might not be a bad idea to have it auto shut off too. At any rate, this would probably be easier than the method you're going after.
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 llynix » Fri Jul 24, 2009 3:37 pm

Well after much thinking I've come up with a game plan:

-build a simple chatpage with password login that automatically sets the name and admin status
** use $_SERVER["REMOTE_USER"] to get username from .htaccess
$_SERVER['PHP_AUTH_USER'];
$_SERVER['PHP_AUTH_PW'];
-will automatically bring admin into support1 and support2 chat rooms
-meanwhile a seperate webpage checks online users if the name of an admin exists. also check how many users online other then admin. If none show link to another chat page
-this chat room link is set to randomly assign a guest name, frozen nicks, frozen_channels, max_msg 0 and automatically adds user to room support1.
-now if new user comes one user will be online other then admin, so show link to chat room support2 (you always link to support(users + 1))
-etc etc
-if no admins are present show a link to a contact page instead of inviting chat.
One problem:
admin will have to join support3+ if 2 or more users start chatting.. maybe make a custom command to automatically join the next numbered room.

Other issues.
perhaps a obtrusive javascript popup or somethign when a new user enters the room. Afraid we will miss potential chatters because no one is paying attention to the browser window.
--sound seems to work alright when the user says something.

So that's the game plan... hopefully all will go smoothly.
llynix
New member
 
Posts: 4
Joined: Thu Jul 23, 2009 9:28 pm
Top

Postby OldWolf » Fri Jul 24, 2009 8:29 pm

So, do you still need support here, or are you set? lol
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 llynix » Mon Jul 27, 2009 2:44 pm

I think I got it: http://www.phpfreechat.net/forum/viewtopic.php?pid=13625
llynix
New member
 
Posts: 4
Joined: Thu Jul 23, 2009 9:28 pm
Top

Postby OldWolf » Tue Jul 28, 2009 4:53 am

Good deal. :)
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


Topic locked
6 posts • Page 1 of 1

Return to Feature Requests (v1.x)

Who is online

Users browsing this forum: No registered users and 1 guest

  • 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