Announcement

Collapse
No announcement yet.

[Release v2] Who's Online

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

  • #91
    I think that the users are listed twice (or multiple's) because you now also select the location...

    When you have 2 sessions from the same user now everything will be the same (session.userid,username,invisible) except for the location...

    So DISTINCT doesn't work then, because he 'sees' those 2 records as two different ones because of the locationfield...

    There could be a workaround on this...Make an array or something; New record -> userid allready in the array? skip it...otherwise -> add userid to array -> list user

    Only troubles would be with guests then...or you can check on the ipaddress if (s)he's allready listed

    Comment


    • #92
      Hi. I installed this hack today and my prob is that when someone comes on, they pop on whos online quickly. But when they leave the site it takes around 15 minutes before it knows they left.

      How can I fix this?

      Comment


      • #93
        I lowered my cookie timeout to 60 seconds to "cover up" this problem. But I would really appreciate a true fix to this problem.

        Comment


        • #94
          This is the exact same way the Who's Online on the front page of your forums works, and there's no way around it unless you leave your cookie timeout at a very low number (which I would not suggest). Hence, there's really no "fix", although I don't consider it a problem.

          Comment


          • #95
            How come normally it works though? Before I did this, it worked right a way. Is there anything I may have accidentally done, that would make it take so long?

            Thanks for advice on Cookie Timeout. I will put it back at a higher number.

            Comment


            • #96
              just installed this and found there are two instances of this found in sessions.php


              PHP Code:
              Around line 237find
                    $DB_site
              ->query("UPDATE session SET lastactivity=".time()."$styleup WHERE sessionhash='".addslashes($session['sessionhash'])."'");
              and 
              replace it with
                    $DB_site
              ->query("UPDATE session SET lastactivity=".time().",location='".addslashes($scriptpath)."'$styleup WHERE sessionhash='".addslashes($session['sessionhash'])."'"); 

              i replaced both any problems with that ?
              Last edited by George L; Thu 24 May '01, 2:57pm.
              :: Always Back Up Forum Database + Attachments BEFORE upgrading !
              :: Nginx SPDY SSL - World Flags Demo [video results]
              :: vBulletin hacked forums: Clean Up Guide for VPS/Dedicated hosting users [ vbulletin.com blog summary ]

              Comment


              • #97
                Maybe what Eva posted above is the problem.

                Comment


                • #98
                  Originally posted by Hooper
                  Maybe what Eva posted above is the problem.
                  maybe but i'm a bit confused as to what the exact problem is hehe
                  :: Always Back Up Forum Database + Attachments BEFORE upgrading !
                  :: Nginx SPDY SSL - World Flags Demo [video results]
                  :: vBulletin hacked forums: Clean Up Guide for VPS/Dedicated hosting users [ vbulletin.com blog summary ]

                  Comment


                  • #99
                    Sorry, in that other thread I meant what line number...but anyway actually you should be putting it in both places - the first one should be covered by finding line 195 and the second line 237.

                    Comment


                    • OK

                      Ok, I have this correct then.

                      Thanks Kevin.

                      Comment


                      • Originally posted by tubedogg
                        Sorry, in that other thread I meant what line number...but anyway actually you should be putting it in both places - the first one should be covered by finding line 195 and the second line 237.
                        great although it still shows username more than once
                        :: Always Back Up Forum Database + Attachments BEFORE upgrading !
                        :: Nginx SPDY SSL - World Flags Demo [video results]
                        :: vBulletin hacked forums: Clean Up Guide for VPS/Dedicated hosting users [ vbulletin.com blog summary ]

                        Comment


                        • Originally posted by eva2000
                          great although it still shows username more than once
                          Eva,

                          Not that it takes much, but you are confusing the heck out of me.

                          Comment


                          • well I think I installed everything right...
                            I'm double checking now.
                            I don't get any error messages, and the board
                            seems the same.
                            I'm doing the admin viewing only option.
                            When I click the link in cp it says loading for a minute,
                            then it's done, but there is nothing there.

                            Got any ideas???

                            oh yeah I've also got several styles.
                            do I have to put the new templates in all of them?

                            Comment


                            • Originally posted by Hooper


                              Eva,

                              Not that it takes much, but you are confusing the heck out of me.
                              don't worry get use to it

                              i did notice when i first visited my forum for today i couldn't see my own username on the forumhome current active user list could of been my eyes playing with me or an effect of this hack ?
                              :: Always Back Up Forum Database + Attachments BEFORE upgrading !
                              :: Nginx SPDY SSL - World Flags Demo [video results]
                              :: vBulletin hacked forums: Clean Up Guide for VPS/Dedicated hosting users [ vbulletin.com blog summary ]

                              Comment


                              • I haven't got it to work correctly either. Still a detail or two to work out I believe. I'm having the same situations as you.

                                Do like it though. Shouldn't be to much to fix for the Kevin the Hack Pro.

                                Comment

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