Announcement

Collapse
No announcement yet.

[Release v2] Who's Online

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

  • kesha1
    replied
    Hey Tubedogg

    As far as I've noticed, the visitors are not doubled in the small table version of Who's Online in a front page.
    I don't really know how it's done, but hope this observation might help.

    Leave a comment:


  • kesha1
    replied
    Hey Hooper

    Very helpful script,
    Thanks a lot

    Leave a comment:


  • Hooper
    replied
    Javascript refresh.....for Wol

    Not sure if anyone is interested, but I've installed a javascript that will allow for manual and automatic page refresh that can be set to a certain number of seconds. This pretty much solves the refresh as far as I'm concerned. Not that most people wouldn't refresh by their browser anyhow, but.....some won't.



    Javascript Code: for auto refresh..

    <head>
    <title></title>
    <script language="JavaScript">
    <!--

    var sURL = unescape(window.location.pathname);

    function doLoad()
    {

    setTimeout( "refresh()", 60*1000 );
    }

    function refresh()
    {

    window.location.href = sURL;
    }
    //-->
    </script>

    <script language="JavaScript1.1">
    <!--
    function refresh()
    {

    window.location.replace( sURL );
    }
    //-->
    </script>

    <script language="JavaScript1.2">
    <!--
    function refresh()
    {

    window.location.reload( false );
    }
    //-->
    </script>
    </head>
    <body onload="doLoad()">
    </body>
    </html>

    Javascript code for manual refresh:..

    <html>
    <head>
    <script language="JavaScript">

    var sURL = unescape(window.location.pathname);

    function refresh()
    {
    window.location.href = sURL;
    }
    //-->
    </script>

    <script language="JavaScript1.1">
    <!--
    function refresh()
    {
    window.location.replace( sURL );
    }
    //-->
    </script>

    <script language="JavaScript1.2">
    <!--
    function refresh()
    {
    window.location.reload( false );
    }
    //-->
    </script>
    </head>

    <body>

    <p><a href="javascript:refresh()"><img src="images/wolbutton.gif" border="0"
    align="middle" width="71" height="70"></a>image as a button</p>

    </body>
    </html>


    I have both manual and auto installed. Both work fine together. I would install the auto above the manual in the header. And of course be sure to put everything in its proper place.
    This is installed in the online template. Also I wouldn't advise installing a metatag refresh. These can cause problems.

    If you decide to use this for your WOL and have problems with it, PM me instead of posting in here unless Kevin states otherwise.

    SeeYa....
    Last edited by Hooper; Thu 17 May '01, 1:16am.

    Leave a comment:


  • kesha1
    replied
    Hey Kevin

    It's me again, your critic
    No, actually I'm your admierer. I just want this thing to work perfectly, therefor I think I'm helpful.
    BTW, thank you very much for your email, I think you are an exceptionally nice guy.
    Another problem: If you leave the Who's Online window open and your IP (I think this is the reason) changes, because of re-connecting a dile-up, for example,
    refreshing of the page will show that you are not there.
    It is kinda important for me, and I hope there is a solution to that.
    Thank you in advance.

    Leave a comment:


  • tubedogg
    replied
    I have released the latest version (v0.2.2) of Who's Online. You can download it from the first post in this thread. To upgrade, just reupload online.php to your server.

    Leave a comment:


  • tubedogg
    replied
    Unfortunately I'm not entirely sure how to fix this. I'm already pulling the records as distinct from the session table, so it should only pull one record per userid.

    The other thing you mentioned,
    If you are inactive for a while and then click on refresh, you might find that there's nobody on
    this can happen if you are inactive for 15 minutes (or however long the cookie timeout is set in the Admin CP) and then refresh the page. Your session has expired and when your refresh the page, it creates a new session for you, however it happens while the page is loading so it won't find that session and display it. That also applies to the other things you mentioned (being seen as other places). This does not apply to the problem of appearing multiple times.

    I'll keep looking into it.

    Leave a comment:


  • Mitrofan
    replied
    Its normal to see some people more than once in whose online and it was not intended to be a exact real-time statistics of where the users are.

    If you don't log-out, the session table has no way of updating itself.

    If you don't logout and just close the browser, you still going to be listed in users online on forum home page for the duration of the time-out set in admin CP

    The same with who's online, if user closed the browser, then comes back to forum it will list him twice for some time untill his first session times out.

    There must be the way to improve this hack to only show the latest session info for the user.

    I think this hack needs at least one or two more improvement, Kevin knows what it is.

    Leave a comment:


  • kesha1
    replied
    Hey Kevin

    I have to confess:
    I'm the one who emailed you twice list night about the IP and stuff.
    And as if it was not enough I'm writing here as well

    Firs of all - THANK YOU KEVIN, nice job!

    Second: I'm comparing how it works with the one from UBB, and couple of things look ...different.
    Whole thing is working a little slow: you can try these experiments: close all your browsers after being on WOL page, and go back to that page, - the chances are - you'll see your self printed twice there.
    Close your browser again (or just click quickly to different parts of the forum, or open cp and change smtn) and most likely you'll see your self 3 times being printed there, e.t.c.
    I've had 5 instances of my self on that WOL page , and it showed that I was at different pages at the same time.
    Third: If you are inactive for a while and then click on refresh, you might find that there's nobody on (even you are not there).
    My question is: has anyone else observe this kind of problems?
    Thank you.

    Leave a comment:


  • tubedogg
    replied
    Sorry misread your first post.

    Looking into it.

    Leave a comment:


  • Mitrofan
    replied
    I only removed the part for guests

    I still have the part that shows what members are doing.

    Right now I have 68 members and 280 guests on my board. Imagine how long the list of who's online would be if I show what guests are doing in addition to what members are doing.

    Still, how about linking the usernames to their profiles?

    Leave a comment:


  • tubedogg
    replied
    [QUOTE]Originally posted by Mitrofan
    I also removed the part that shows what guests are doing because on my board it is not uncommon to have over 150 (I have 170 guests right now) guests at a time and the list gets really long.[QUOTE]

    To me that completely defeats the point of the hack. If you just want a list of who's online then there is a list on the main page (the names are linked to their profiles). The whole point of this hack is to provide info about where they are.

    Leave a comment:


  • Mitrofan
    replied
    One nice feature I would really like to see is to link the names of users online to their profile.

    I think it a must have!

    Other than that the hack is great, and together with the first who's online it's exactly what I was looking to add to my site.

    I also removed the part that shows what guests are doing because on my board it is not uncommon to have over 150 (I have 170 guests right now) guests at a time and the list gets really long.

    Also I read in your previous post about the idea to add more intelligence to the hack as far as guessing what users are doing.

    Leave a comment:


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

    Leave a comment:


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

    Leave a comment:


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

    Leave a comment:

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