vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   jIRC Chat Integration (https://vborg.vbsupport.ru/showthread.php?t=43461)

FleaBag 10-01-2002 05:55 PM

Quite busy lately, just started University. I'll sort this out as soon as I can.

banjolawyer 10-04-2002 08:47 PM

The Instructions state

==== Step 3 [upoading the files]. ====

Upload the following files to your vBulletin folder;

jirc_mss.cab
jirc_nss.zip
jirc_pure.zip
popup.js
chat.php
_________________________

Do you have to unzip the .zip files first?

FleaBag 10-05-2002 11:39 AM

Sorry, I should have made it clearer in the Readme, none of these files require unzipping, the software utilises them in their' current form.

banjolawyer 10-18-2002 03:38 AM

Is an archive of the chats created?

I have a high school alumni site, and everyone loves to read what the others have said and talked about. So the vbulletin board is great for that because everything is preserved.

However, sometimes 5 or 6 people will start trying to chat in a thread (or trying to anyway) [for example 50 messages posted in a thread in an hour] vBulletin really doesn't work well for chatting, but at least there's a record of the discussion so people can later browse through it.

Is it possible to archive chats with what you've done here?

banjolawyer 10-28-2002 05:45 AM

Hey I installed this thing and my users love it. It is great and well worth the $50 to jpilot.

Problem: Because people are often in the Chat Room for more than 15 minutes, they drop off the "Currently Active Users" list. I would like to be able to display on the forum home the # of people currently in the Chat Room.

I found that someone has written a .php bot which is supposed to do this here:
http://www.jpilot.com/java/irc/ubb/c...ML/001422.html

I installed this and the bot does run in my chat room. However, I don't know how to get a number to display. Can anyone help me?

This is Klamm's code. Hope its ok to quote it:
Code:

<?
set_time_limit(0);

// INIT
$server = "irc.euirc.net";
$port = "6667";
$php_nick = "Kbot2";
$php_realname = "The klamm-Bot";
$php_channel = "#klamm.de";
$refresh=30; // look max. every XX Seconds for #users
$joined=0; // only 1 join
$register=0; // first ping

// CONNECT
$verbindung = fsockopen($server, $port);
fputs($verbindung, "USER $php_nick 0 0 :$php_realname\n\r");
fputs($verbindung, "NICK $php_nick\n\r");
sleep(5);
$timer=time();

// READ STREAM
for($i = 0; $i < 100; $i++)

        $i = 0; // to make it endless
          $new = fgets($verbindung, 1024);
          // ask for user-count every [refresh] seconds
          if($timer+$refresh<time()&&$joined==1){
                  fputs($verbindung,"LIST $php_channel\n\r"); 
            $timer=time();
  }
 
  // nick in use?
  if (ereg("Nickname is already in use.",$new)) {
          fputs($verbindung,"QUIT : Nick in use");
                  fclose($verbindung);
                  break;
          }
         
  // ping pong
  if(ereg("PING",$new)) {
            $ping = explode(":", $new);
      $reply = $ping[1];
      fputs($verbindung, "PONG $reply\n\r");
      $register = 1;
  }
   
  // first join
  if($joined==0&&$register==1){
                fputs($verbindung, "JOIN $php_channel\n\r");
                $joined=1;
        }
         
 
  // REACTIONS
        if($joined==1){
               
                // kicked
                if(ereg("KICK $php_channel $php_nick",$new)){
                          fputs($verbindung,"QUIT : Me got kicked\n\r");
                          fclose($verbindung);
                          break;
                  }
 
                  // number of users
                  if (ereg("322 $php_nick",$new)) {
                    $users = explode(" ",$new);
                    $userson = $users[4]-1;
                    echo"\n\n$userson\n\n";
              // here you can make your file-write or db-query
              // to update the current user-count
            }
        } // joined
} // for
?>

Am I supposed to add something to the end of the file where Klamm has written

Code:

// here you can make your file-write or db-query
// to update the current user-count
}
} // joined
} // for
?>

in order to get a display?

Also, Klamm makes an interesting comment that "If you want the Names of the Users in the Channel, just use /NAMES #channel instead of /LIST #channel. But it needs a bit of additional Code ..."

Would anyone know how to go about accomplishing this?

FleaBag 10-28-2002 10:25 PM

Working with 2.2.8. I'll work on the updates soon...

FlyBoy73 11-12-2002 03:39 AM

Looking forward to them, GF.

mark99 11-25-2002 09:41 AM

Small problem, I also want general site visitors to be able to access this chat system, however if they're not registered then they get that usual 'YOU NEED TO BE REGISTERED' vB page.

How can I turn this off?

fraqheart 11-25-2002 06:18 PM

Is it easily able to be designed like vBulletin.org's or does it have to stay in it's default form?

FleaBag 11-26-2002 04:15 PM

Quote:

Originally posted by banjolawyer
Is an archive of the chats created?

I have a high school alumni site, and everyone loves to read what the others have said and talked about. So the vbulletin board is great for that because everything is preserved.

However, sometimes 5 or 6 people will start trying to chat in a thread (or trying to anyway) [for example 50 messages posted in a thread in an hour] vBulletin really doesn't work well for chatting, but at least there's a record of the discussion so people can later browse through it.

Is it possible to archive chats with what you've done here?

Not with this hack, sorry.


All times are GMT. The time now is 03:32 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01846 seconds
  • Memory Usage 1,749KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete