Menu

List how many users are online...

Help
2003-10-29
2003-12-19
  • Nobody/Anonymous

    Hi...

    I know, it is an example that comes with the package, but I tried at least 50 different networks and about 50 different channels and I never get the amount of users on the channels at all. Any ideas what's wrong with that example or with my settings?

    Thanks...

     
    • Mirco Bauer

      Mirco Bauer - 2003-10-30

      the problem is the examples are kinda outdated, SmartIRC has alot of changes/improvements and the examples wasn't corrected yet.. I will try to check that out and update them with a new release...

       
    • Mirco Bauer

      Mirco Bauer - 2003-10-30

      found the problem, in fact because of a bug fix in 0.5.5 the returned array doesn't contain the full message (which is required for getting the number), I suggest that you update SmartIRC to the CVS version...
      There you get the whole $data object from listenFor() which contains all data...

       
    • Nobody/Anonymous

      great that you found the problem so fast! But now you gotta tell me what the CVS version is and where I can find it!? I use smartIRC 0.5.5 by the way. Do you mean an older version of it?

      Thanks for your help...

       
    • Nobody/Anonymous

      Ok, I tried an older version and it works great on my local system but not on another server. Any ideas why? I have to use this setting:
      $irc->setUseSockets(FALSE);

      Maybe it has something to do with that? Hope you can help me again.

       
    • Nobody/Anonymous

      Thanks for the CVS version link, I will try that one too.

       
    • Nobody/Anonymous

      Ok... I tried the CVS version too and that doesn't give me any counts either. :(  Tried it locally and on the external server. So I think the 0.5.1 version was so far for me the best solution, but why is it not working on the server? Could it be some kind of socket problem?

       
      • Mirco Bauer

        Mirco Bauer - 2003-10-31

        did you var_dump() the return value of listenFor() ?
        the structure is different in the CVS version, it has much  more info than the old versions..

         
    • Nobody/Anonymous

      No I didn't try that but if this one is not working on my local server so far and not on my external server, I don't know if I should work with it. At least the 0.5.1 was working for me locally. ;) I just need to know what I have to change on the external server to make it run there too!? Thanks for all your help...

       
    • Nobody/Anonymous

      Nobody an idea why it's working local but not on another server?

       
    • Nobody/Anonymous

      Which versions of PHP do you have on your servers? I'm not shure, but I guess, it makes a difference. I've had this problem too and the only difference I have seen was the version number of PHP. It doesn't work on 4.1.?, but on 4.2.3.

       
      • Mirco Bauer

        Mirco Bauer - 2003-11-07

        yes this can be, PHP 4.1.x seems to be very borked, with PHP 4.2.x it should work for sure...

         
    • Nobody/Anonymous

      I am using 4.3.3 locally and my provider has 4.3.2. :/
      Could it be any misconfiguration of PHP!? If so, what would it be? Any idea?

       
    • Nobody/Anonymous

      Hello!
      I was searching for such an online user script all the inet. and finally i've got here.

      But it's hard to follow your discussion on how to build such an online counter.

      Are there any uptodate examples for sth like this?

      Any advice would be great!

      Greets to you,
      Eugen

      eugenandreas@yahoo.de

       

Log in to post a comment.