Announcement

Collapse
No announcement yet.

[Release v2] Who's Online

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

  • nuno
    replied
    Thank you Kevin

    Leave a comment:


  • tubedogg
    replied
    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.

    Leave a comment:


  • fruitsalad
    replied
    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.

    Leave a comment:


  • Dioxin
    replied
    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

    Leave a comment:


  • JJR512
    replied
    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.

    Leave a comment:


  • Freddie Bingham
    replied
    Kevin did this hack in the same style that the hack for 1.1.x was done.

    Leave a comment:


  • fruitsalad
    replied
    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.

    Leave a comment:


  • tubedogg
    replied
    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.

    Leave a comment:


  • fruitsalad
    replied
    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.

    Leave a comment:


  • tubedogg
    replied
    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...).

    Leave a comment:


  • nuno
    replied
    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??

    Leave a comment:


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

    Leave a comment:


  • nuno
    replied
    its working now
    guess what
    i switched templates
    sorry Kevin
    Thanks

    Leave a comment:


  • tubedogg
    replied
    Crap...didn't work. Can you email me your online.php file to [email protected] ?

    Leave a comment:


  • nuno
    replied
    done

    Leave a comment:

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