Results 1 to 3 of 3

Thread: View how many people are on Rizon Forums and Who

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Member Locotes's Avatar
    Join Date
    Aug 2008
    Location
    Somewhere I belong
    Posts
    69

    Default View how many people are on Rizon Forums and Who

    Another script:
    Code:
    on *:text:.rizon:#:{ sockclose rizon. $+ $chan | sockopen rizon. $+ $chan rizon.net 80 }
    on *:sockopen:rizon.*:{ 
      sockwrite -n $sockname GET /vbulletin/index.php HTTP/1.1 
      sockwrite -n $sockname Host: rizon.net $+ $crlf $+ $crlf
    }
    on *:sockread:rizon.*:{
      if ($sockerr) {
        echo -a Error.
        halt
      }
      else {
        var %temptext
        sockread %temptext
        if (%temptext == $null) %temptext = -
        if (*<a href="online.php*">Currently Active Users</a>: * $chr(40) $+ * members and * guests $+ $chr(41) $+ * iswm %temptext) {
          msg $gettok($sockname,2,46) $remove($htmlfree(%temptext),$chr(9))
        }
        if (*member.php?*u=* iswm %temptext) {
          if (*newest* !iswm %temptext) {
            msg $gettok($sockname,2,46) Online: $remove($htmlfree(%temptext),$chr(9))
          }
        }
      }
    }
    alias -l htmlfree {
      var %x, %i = $regsub($1-,/(^[^<]*>|<[^>]*>|<[^>]*$)/g,$null,%x), %x = $remove(%x,&nbsp;)
      return %x
    }
    When someone types .rizon in a channel, it will tell you how many users there are online at the forums, and who those users are

    Again, thanks wild, for helping me fixing some stuff ><
    Last edited by Jason; 05-01-2009 at 08:42 AM. Reason: moved to clean things up

Similar Threads

  1. People need to get jobs.
    By Jason in forum Random Useless Facts
    Replies: 0
    Last Post: 03-08-2010, 09:16 PM
  2. hey people
    By FLYER in forum Introductions
    Replies: 0
    Last Post: 08-19-2009, 06:27 PM
  3. Hello People :)
    By sysErroR in forum Introductions
    Replies: 0
    Last Post: 08-10-2009, 08:26 PM
  4. Welcome to Rizon's forums.
    By Annie in forum Introductions
    Replies: 0
    Last Post: 04-16-2009, 10:07 AM
  5. New Forums & Slim Design
    By mink in forum Rizon News
    Replies: 15
    Last Post: 02-26-2009, 12:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •