Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
jIRC Chat Integration Details »»
jIRC Chat Integration
Version: 1.00, by FleaBag FleaBag is offline
Developer Last Online: Jun 2020 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 09-11-2002 Last Update: Never Installs: 66
 
No support by the author.

This hack is very similar to other hacks already released, I know there are a few others out there - I made this for myself so thought I would release it just incase anyone else found it useful. This hack takes into consideration Who's On-line, is controlled by one template, and has less files to upload than a few other chat hacks. All the files you need to run IRC chat from your vBulletin are included in this distribution. This hack is configured to work with HashNet IRC [www.hashnet.org]. HashNet let's you register your username's as well as your channels, protecting it from any misuse. All the information you need for such processes can be found on the HashNet site. If you wish to use a different IRC server, or a channel name other than that of your vBulletin title, edit the '<para name' tags in your chat template [which you'll add in Step 2] of installation...

This distribution includes jIRC version 2.6.0. The original jIRC readme file is included in this zip file for copyright reasons. jIRC is Shareware [and as a result, you receive messages encouraging the admin to register when it is used] - if you like the product, and basically if you want it to work correctly you must register it.

Pricing can be found on the jIRC website [www.jpilot.com].

*Thanks to Jakeman, FireFly, TWT Commish and everyone else at vBulletin.org for the help they've given me with vBulletin hacking to date.*

Please click install if you use this hack!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 10-01-2002, 05:55 PM
FleaBag's Avatar
FleaBag FleaBag is offline
 
Join Date: Dec 2001
Posts: 1,674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quite busy lately, just started University. I'll sort this out as soon as I can.
Reply With Quote
  #33  
Old 10-04-2002, 08:47 PM
banjolawyer banjolawyer is offline
 
Join Date: Aug 2002
Location: Huntsville, Ala.
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #34  
Old 10-05-2002, 11:39 AM
FleaBag's Avatar
FleaBag FleaBag is offline
 
Join Date: Dec 2001
Posts: 1,674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry, I should have made it clearer in the Readme, none of these files require unzipping, the software utilises them in their' current form.
Reply With Quote
  #35  
Old 10-18-2002, 03:38 AM
banjolawyer banjolawyer is offline
 
Join Date: Aug 2002
Location: Huntsville, Ala.
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #36  
Old 10-28-2002, 05:45 AM
banjolawyer banjolawyer is offline
 
Join Date: Aug 2002
Location: Huntsville, Ala.
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #37  
Old 10-28-2002, 10:25 PM
FleaBag's Avatar
FleaBag FleaBag is offline
 
Join Date: Dec 2001
Posts: 1,674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Working with 2.2.8. I'll work on the updates soon...
Reply With Quote
  #38  
Old 11-12-2002, 03:39 AM
FlyBoy73 FlyBoy73 is offline
 
Join Date: Jan 2002
Location: Texas, USA
Posts: 297
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looking forward to them, GF.
Reply With Quote
  #39  
Old 11-25-2002, 09:41 AM
mark99 mark99 is offline
 
Join Date: Oct 2002
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #40  
Old 11-25-2002, 06:18 PM
fraqheart's Avatar
fraqheart fraqheart is offline
 
Join Date: Nov 2002
Location: America
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it easily able to be designed like vBulletin.org's or does it have to stay in it's default form?
Reply With Quote
  #41  
Old 11-26-2002, 04:15 PM
FleaBag's Avatar
FleaBag FleaBag is offline
 
Join Date: Dec 2001
Posts: 1,674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:36 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05383 seconds
  • Memory Usage 2,313KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete