User Controls

A Working "Who is Online" would be sweet

  1. #1
    Pretty please with some sugar on top.
  2. #2
    There should be the lights on next to our usernames when someone is online. Or perhaps a giant neon penis.
  3. #3
    A working "who's a faggot" would also be nice.
    The following users say it would be alright if the author of this post didn't die in a fire!
  4. #4
    Lanny Bird of Courage
    I never understood how that feature worked. What does it mean for someone to be "online"? HTTP entails communication on page load but there's no way good way to divine when someone leaves a page or the site (WS heartbeat is not an acceptable solution, FUCK sites that pull that shit). Is it just like "you're online for N-minutes after your last page load"? That's kind of a pain to manage in the db plus is that really data you want to be publically available? I wrote a script on zoklet to poll for users' "current activity" so I could see who was looking at what it was kind fucked up that that was possible.
  5. #5
    Sophie Pedophile Tech Support
    Originally posted by Lanny I never understood how that feature worked. What does it mean for someone to be "online"? HTTP entails communication on page load but there's no way good way to divine when someone leaves a page or the site (WS heartbeat is not an acceptable solution, FUCK sites that pull that shit). Is it just like "you're online for N-minutes after your last page load"? That's kind of a pain to manage in the db plus is that really data you want to be publically available? I wrote a script on zoklet to poll for users' "current activity" so I could see who was looking at what it was kind fucked up that that was possible.

    Something something cookies. Tell me if i am wrong but each time you load a page a cookie authenticates against the DB right? This is why you don't have to log in each new page. Well, what if you make it so that if a cookie hasn't authenticated against the DB in the last 15 minutes a user is considered offline.
  6. #6
    Lanny Bird of Courage
    You can keep sessions (the chunk of data the session cookie is an index into, including your user credentials) in the database if you want but in practice, since you need to fetch sessions on every page load, you keep them in memory or some kind of cache with mostly memory-like performance. I could start burning timestamps into sessions on access and build up the "online users" section by iterating the sessions and picking the ones that had been used in the last 15 minutes but it means people will appear online for 15 minutes after closing their last tab and if they stare at a page for 15 minutes without navigating they'll be registered as offline. I mean that's probably a pretty good approximation of "being online" but I just never knew what the logic for those things was
  7. #7
    Sophie Pedophile Tech Support
    Originally posted by Lanny You can keep sessions (the chunk of data the session cookie is an index into, including your user credentials) in the database if you want but in practice, since you need to fetch sessions on every page load, you keep them in memory or some kind of cache with mostly memory-like performance. I could start burning timestamps into sessions on access and build up the "online users" section by iterating the sessions and picking the ones that had been used in the last 15 minutes but it means people will appear online for 15 minutes after closing their last tab and if they stare at a page for 15 minutes without navigating they'll be registered as offline. I mean that's probably a pretty good approximation of "being online" but I just never knew what the logic for those things was

    I get the general idea but you're the computer scientist, do some computer science :P
  8. #8
    Originally posted by Lanny I never understood how that feature worked. What does it mean for someone to be "online"?

    Are you fucking stupid? take the last page a user opened and add like 30 minuets from the time it was opened. No forum actually knows how many users are currently connected, but assumptions can be made based off average browsing time and shit. Its pretty fair to say a "whose online" is more of a "who might be online".
  9. #9
    Dude every website has one.
  10. #10
    antinatalism Tuskegee Airman
    Originally posted by SCronaldo_J_Trump Dude every website has one.
    innovation, man, not imitation. don't be a cuck
  11. #11
    mmQ Lisa Turtle
    ^That's why I type with my cock. A lone wolf in a sea of finger typing sheep.
  12. #12
    antinatalism Tuskegee Airman
    Originally posted by mmQ ^That's why I type with my cock. A lone wolf in a sea of finger typing sheep.
    see? cocks can be useful. vaginas? not so much.
  13. #13
    mmQ Lisa Turtle
    Damn it I should have said cock wolf.
  14. #14
    mmQ Lisa Turtle
    Originally posted by antinatalism see? cocks can be useful. vaginas? not so much.

    Vaginas guarantee you always have a pocket, and that's pretty cool to me.
  15. #15
    Lanny Bird of Courage
    Originally posted by thelittlestnigger Are you fucking stupid? take the last page a user opened and add like 30 minuets from the time it was opened. No forum actually knows how many users are currently connected, but assumptions can be made based off average browsing time and shit. Its pretty fair to say a "whose online" is more of a "who might be online".

    Originally posted by SCronaldo_J_Trump Dude every website has one.

    If you want to write it the link to the repo is right there in the footer, you are 100% free to add the feature yourself.
  16. #16
    mmQ Lisa Turtle
    Originally posted by Lanny If you want to write it the link to the repo is right there in the footer, you are 100% free to add the feature yourself.

    I'll do it. Just give me the code and I'll do the rest.
  17. #17
    Originally posted by mmQ Vaginas guarantee you always have a pocket, and that's pretty cool to me.

    We've got asses, son, the true nature's pocket. At lot of stuff can be stored in your ass
  18. #18
    Lanny Bird of Courage
    Originally posted by mmQ I'll do it. Just give me the code and I'll do the rest.

    ...like I said, right there in the footer.

    In fact if you've found a bug or have a feature request and you don't want me to forget about it because it's buried in some thread I won't remember reading when I sober up, you can open a ticket here.
  19. #19
    mmQ Lisa Turtle
    Originally posted by Lanny …like I said, right there in the footer.

    In fact if you've found a bug or have a feature request and you don't want me to forget about it because it's buried in some thread I won't remember reading when I sober up, you can open a ticket here.

    I was trying to make a joke. I suck.
  20. #20
    Originally posted by mmQ ^That's why I type with my cock. A lone wolf in a sea of finger typing sheep.

    Nnjoott shloo fass5*t tgchere budfghy.

    I'm working on it.

Jump to Top