Our server costs ~$56 per month to run. Please consider donating or becoming a Patron to help keep the site running. Help us gain new members by following us on Twitter and liking our page on Facebook!
Current time: January 3, 2025, 9:45 am

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Chat room indicator
#11
RE: Chat room indicator
Assuming the flag is set when you enter the chatroom, and then you leave it, how is it set off? What if someone enters the chatroom (flag=ON) and then opens up a new page of the site in a new tab (flag=OFF). Then you've got someone in the chatroom and nobody knows.

On the other hand, if someone goes to the chatroom (flag=ON) and then decides to go to bed and leave the site, the site is still reporting him in the chatroom even though he isn't there.
Reply
#12
RE: Chat room indicator
I have been a member at a number of forum communities (most of them for amateur writing, but that's beside the point). I am not a coder, so I don't know how it works, but most of the indicators seemed to work like this...

Someone enters: (flag=ON)

Now it monitors that flag. If the person does not take action (e.g., type something) within a predetermined amount of time, (flag=OFF). That way, it does not count the lurkers, only the actively chatting people.
Reply
#13
RE: Chat room indicator
I was thinking that the flag would be set by opening the page, and then set to 'off' when the user closed the page : that is, it had it's own flag rather than use the sitewide flag.

But then perhaps this is cosmetic now.
Reply
#14
RE: Chat room indicator
I like paul's idea, no idea how it would work though :S
Please give me a home where cloud buffalo roam
Where the dear and the strangers can play
Where sometimes is heard a discouraging word
But the skies are not stormy all day
Reply
#15
RE: Chat room indicator
It seems annoying to me that my original idea is indeed either misinterpreted or too cryptic.

The setup:

A datasource (on AF) via TinyChat API queries the chatroom in question and enumerates the current roster.
A dummy page called roster is setup to periodically poll the data source (every 5 mins) and change it's content.

The default AF header displays a number from the dummy page in the position on the mockup.
An Asynchronous HTTP and HTML (AHAH) or AJAX request just refreshes the element with a new number through querying every minute or so...

EDIT: It has been noted that a form of this suggestion has been implemented after the switch from TinyChat.
Reply



Possibly Related Threads...
Thread Author Replies Views Last Post
  Chat feature Adventurer 2 1262 February 15, 2017 at 10:17 pm
Last Post: Adventurer
  Number of people in chat bugged Tobie 3 1792 July 24, 2013 at 6:25 pm
Last Post: Jackalope
  Can't get in to chat. Jackalope 5 3036 March 23, 2012 at 11:21 pm
Last Post: Tiberius
  Chat number Darwinian 9 3493 March 2, 2012 at 9:04 pm
Last Post: Rokcet Scientist
  User is editing post indicator Autumnlicious 6 3542 February 3, 2011 at 2:39 am
Last Post: Tiberius
  chat tackattack 2 1921 November 2, 2010 at 10:33 am
Last Post: chasm
  Chat flag on the main page Rhizomorph13 7 2909 March 20, 2010 at 2:54 am
Last Post: Violet



Users browsing this thread: 2 Guest(s)