Announcement

Collapse
No announcement yet.

[Release v2] Who's Online

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #61
    Hey Tube,

    Is this hack ready then.... Looks like the above errors were installation errors. Any reason not to install this yet?

    Thank You,
    Hooper

    Comment


    • #62
      Originally posted by tubedogg


      This is a problem with your server's PHP. It means for whatever reason it decided to take a break. But seriously, unknown at line 0 isn't anything to do with my hack, and it's nothing that can really be fixed in terms of the scripts.
      k
      nice hack, big brother is watching you

      Comment


      • #63
        Installed and working with RC3

        Tube,

        I've installed RC3 and your WOL hack. It works fantastic. I am real happy to have this one. If you would like to see it let me know. I have access blocked at this point.

        Thank You,
        Great work.
        Hooper

        Comment


        • #64
          Tube,

          OOps,

          Spoke to soon.

          I am having problems. I need help with WOL. Each time you log in with one browser session, you close without logging off, go back and you are still logged in. (disabled in cp auto log cookie). If you log in again it shows 2 of you and so on. Then you cannot log out of the session you closed out. I have had 2 of myself on at one time. and a guest that was also me.

          If you use just one browser session, login, log out, it works fine.

          I reinstalled the hack and had the same thing. I did notice that there was a new string added to the sessions in RC3, or at least the line numbering changed since RC2.

          on 111 $DB_site->query("UPDATE session SET lastactivity=".time()."$styleup WHERE sessionhash='".addslashes($session['sessionhash'])."'");

          This one was not mentioned in your instructions. I didn't know if maybe this had something to do with it or not.

          Something else is that you have to refresh to see WOL. If you don't hit refresh, everyone is viewing main page.


          Any help appreciated.
          Hooper
          Last edited by Hooper; Sat 12 May '01, 7:02pm.

          Comment


          • #65
            Hooper, you know the drill. I'm gonna need more info than "I'm having problems".

            Comment


            • #66
              I was just making sure the posting was working. It didn't work for me all day. I was having IP probs. That's fixed now so if I coould only get this working.

              Anyhow I was adding to the above when you posted response.
              Look above please.

              Thanks Tube,
              Hooper
              Last edited by Hooper; Sat 12 May '01, 6:38pm.

              Comment


              • #67
                Hooper, try this.

                In online.php, find
                Code:
                $loggedins=$DB_site->query("SELECT DISTINCT session.userid,username,invisible,location
                                            FROM session
                                            LEFT JOIN user ON (user.userid=session.userid)
                                            WHERE session.userid>0 AND session.lastactivity>$datecut
                                            ORDER BY invisible, username");
                Replace it with
                Code:
                $loggedins=$DB_site->query("SELECT DISTINCT username,session.userid,invisible,location FROM session
                							  LEFT JOIN user ON (user.userid=session.userid)
                							 WHERE session.userid>0 AND session.lastactivity>$datecut
                						  ORDER BY invisible, username");

                Comment


                • #68
                  I'm up. I'll go try this.......zoooom..

                  Comment


                  • #69
                    Notta,

                    Still the same thing... I'm not sure what to do. I go to the forums and it always shows that there is guest from the get go. Then if I log in and out I'm back to guest as should be. But if I close the browser and come back in, I am a guest, a member, etc..
                    Now If I log in and out It straightens up somewhat in the forums, but when I go to the show where online I am in there twice as the administrator.

                    I'm all for you checking this out for yourself so you can see first hand what it is doing. Everything else seems to work. If you decide you would like to see this let me know and set a time in here so I can turn off .htaccess. Or you could give me your IP and I'll add you to the user list.

                    This hack is going to work if it kills me.


                    Hooper
                    Last edited by Hooper; Sun 13 May '01, 1:06am.

                    Comment


                    • #70
                      If I'm not mistaken the session table is HEAP type, meaning that it's completely in RAM, and is lost when mySQL server is shutdown

                      Does this mean that I will have to run the mysql sctipt included in this hack every time after I restart mySQL database?
                      'beta tester'

                      Comment


                      • #71
                        My server move and restore from a CP backup is totally trashed.
                        This was my answer.
                        Thank You,

                        Comment


                        • #72
                          Do you think it had something to do with this hack?

                          I don't do cp backups, I only do it from telnet, either mysqldump or complete copy of forum database.

                          I just installed this hack and it seems to be working so far, I hope there will be a new version with more intelligent way to guess what users are doing, and to also I would like the way to split the output into several pages because my board usually has over 140 members/guests and the who's online page gets really long.

                          Just a suggestion.

                          I also using this hack together with the first who's online hack which I am using to display the number of users online on non-vb page and then have a link to this new script for more info on users online.
                          'beta tester'

                          Comment


                          • #73
                            Originally posted by Mitrofan
                            If I'm not mistaken the session table is HEAP type, meaning that it's completely in RAM, and is lost when mySQL server is shutdown

                            Does this mean that I will have to run the mysql sctipt included in this hack every time after I restart mySQL database?
                            Yes. The trick is to not shut down the MySQL server.

                            Comment


                            • #74
                              It's a good thing I asked. I shut down the server often before backing up and when running myisamchk

                              The other way around it would be to change the session table type to MYISAM, this way the changes will not be lost. This is what it used to be before they changed it to HEAP some versions back.

                              There must be a way to edit some other script to make the session table created the way it should for this hack to word.

                              Please look into that.

                              Tubedogg, will you be adding more features to this hack soon?

                              Also please respond to my question for you in the other who's online hack" thread.

                              Thanks.

                              I do have both of your hacks working now.
                              'beta tester'

                              Comment


                              • #75
                                I'm not sure exactly what changes I could make so that shutting it down wouldn't affect it. I'm currently looking into it though.

                                As for other features, I'm not sure exactly what you'd want. Some ideas would help.

                                Comment

                                widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                                Working...
                                X