Announcement

Collapse
No announcement yet.

[Release v2] Who's Online

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

  • #31
    glad you got it working...i had no idea what was wrong. there was nothing else i could fix!

    Comment


    • #32
      Kevin one last question:
      When i'm seeing a thread or replying to a thread, shouldnt online.php show me exactly that message instead of Browsing Board??
      You're my Prince of Peace
      And I will live my life for You

      Comment


      • #33
        If you are viewing or replying to a thread, yes it should (and did in all my testing). Maybe have someone else go around the board while you look at online.php - you may be seeing that message because you are looking at online.php (although it should be saying Viewing Who's Online then anyway...).

        Comment


        • #34
          works wonderfully

          any thoughts on how i can get it to work with non-vb pages which i have required global.php
          at the moment it just says browsing the board for people on the non vb pages.
          :):):)

          Comment


          • #35
            My system is very, very crude. It doesn't actually figure out which page the person is on, it just looks for clues in the file name (e.g. if the filename is memberlist.php, they must be looking at the memberlist, etc.). If you look through the online.php, you'll see the different places I've planned for, and you'll also see where it defaults to "Browsing Board".

            One thought that just came to me is you could make a list of all the vB files. From that list, remove any that I've accounted for already in the script. Then, do a big if(strpos()===false) statement with all of those names. If it's none of those names, then they're not browsing the board. However, this is also awkward. You might also try following the "clue-and-result" system. If they're looking at a page called "mail" with the variables "send=yes" then they're sending mail. That kind of thing.

            Someday I'll figure out a better way to do this. Just not today.

            Comment


            • #36
              oh dats cool..


              i already felt lost looking at the code, what you just said confused me more lol

              when i had this working for vB 1.1x they actually wrote the url to the location field if i remember correctly.
              :):):)

              Comment


              • #37
                Kevin did this hack in the same style that the hack for 1.1.x was done.

                Comment


                • #38
                  Tubedogg, I'm looking forward to getting this hack on my site...except I can't, I'm having a little trouble. I've modified sessions.php as prescribed, and I've uploaded that file, mysql.php and online.php, again as per the instructions. However, when I try the next step, running mysql.php, I get an error message.

                  This is the meat of the error:
                  <!-- Database error in vBulletin Control Panel: Invalid SQL: INSERT INTO session (sessionhash,userid,host,useragent,lastactivity,location) VALUES ('a70bf25218fcc096dc225ee88971d1c9','384','63.208.191.85','Mozilla/4.0 (compatible; MSIE 6.0b; Windows NT 5.0','','989269645')
                  mysql error: Unknown column 'location' in 'field list'
                  mysql error number: 1054
                  Date: Monday 07th of May 2001 05:07:25 PM
                  Script: /forums/admin/mysql.php
                  Referer:
                  -->
                  Any suggestions/ideas/etc.? You can hit me on ICQ if you want.
                  -Justin "JJR512" Rebbert
                  JJR512.com: Chat about anything!

                  Comment


                  • #39
                    hi tubedogg,

                    very very nice hack

                    thanx a lot from germany, but i have one problem:

                    some links in my online.php page look like this:

                    http://www.aktienboard.com/vb/showth...0348#post20348post20348post20348

                    i think this is a bug. this link contains the string "post20348" three times...

                    perhaps you forgot to initialize a variable?? i could not resolve the bug...perhaps you have an idea.. thanx a lot

                    greets, dioxin!!

                    the link: http://www.aktienboard.com/vb/online.php

                    Comment


                    • #40
                      Originally posted by JJR512
                      Tubedogg, I'm looking forward to getting this hack on my site...except I can't, I'm having a little trouble. I've modified sessions.php as prescribed, and I've uploaded that file, mysql.php and online.php, again as per the instructions. However, when I try the next step, running mysql.php, I get an error message.

                      This is the meat of the error:


                      Any suggestions/ideas/etc.? You can hit me on ICQ if you want.
                      I had that problem when trying to run mysql.php too. I just opened it and cut and paste the command in that file to phpmyadmin and created the location field from there.
                      :):):)

                      Comment


                      • #41
                        I should have seen this one coming. The problem is sessions.php is already modified to look for the location field, and not finding it, it errors out when running mysql.php. I have revised the directions to account for this.

                        JJR, can you run that query via Telnet or phpMyAdmin? That should solve your problem. Just continue with the instructions from there (go to your Admin CP and create the templates).

                        Everyone else, please redownload the zip file (if you have already downloaded it) and make sure your instructions say "v0.2.1" at the top. Those are the updated instructions.

                        Comment


                        • #42
                          Thank you Kevin
                          You're my Prince of Peace
                          And I will live my life for You

                          Comment


                          • #43
                            Re: hi tubedogg,

                            Originally posted by Dioxin
                            some links in my online.php page look like this:
                            http://www.aktienboard.com/vb/showth...0348#post20348post20348post20348
                            Is this happening for just logged-in members, just guests, or both? I mean, in the list, are the members with the triple repeated post number members, guests, or both?

                            Comment


                            • #44
                              Originally posted by tubedogg


                              That I can't fix. It's the same as when you first surf in, you don't always appear as being online on the list on the front page. In this case it's because your location is updated at the same time the page is prepared, or slightly after (by a few milliseconds). If that's the worst problem the script presents, I think we're doing pretty good, eh?
                              Kevin, would it be possible to fix this by doing an automatically refresh when users see online.php?
                              You're my Prince of Peace
                              And I will live my life for You

                              Comment


                              • #45
                                Re: Re: hi tubedogg,

                                Originally posted by tubedogg


                                Is this happening for just logged-in members, just guests, or both? I mean, in the list, are the members with the triple repeated post number members, guests, or both?
                                mhmm, strange. i looked at the script this morning and now it seems to generate correct links. sorry for my bug report.

                                but i have another problem:

                                the session variable in each link is different. i think it's a better way to change the variable to the viewers session-id, or??

                                another enhancement idea: include a profile link in the name and make a pm link nearby, perhaps an icon or so...

                                just ideas greets dioxin

                                Comment

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