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 09-11-2002 10:00 PM

jIRC Chat Integration
 
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! :)

FleaBag 09-12-2002 02:17 PM

Here is the zip file with the required files for jIRC version 2.6.0 and the installation instructions. The files included are as follows.

jirc_mss.cab > jIRC.
jirc_nss.zip > jIRC.
jirc_pure.zip > jIRC.
popup.js > jIRC.
chat.php > The vBulletin Chat file.
Readme > The original jIRC readme file.

FleaBag 09-12-2002 02:31 PM

Screenshot of the applet loading, asking for permission to run.

FleaBag 09-12-2002 02:35 PM

Screenshot of the applet once it has loaded.

FleaBag 09-12-2002 02:39 PM

Screenshot of Who's On-line, showing that a user is using the chat feature.

NoAhBoDy 09-12-2002 03:09 PM

I did something similar with my forum, however, one of the problems that I noticed is, by having the user show up in who's online as doing chat, they are also considered to be on the forum and if they don't check new posts while they're chatting, they'll lose them as new posts and likely miss them.

FleaBag 09-12-2002 03:11 PM

Hmmm that's a good point. Not sure how to get around that one. What about FireFly's Who's On-line locations hack, does that deal with sessions differently?

NoAhBoDy 09-12-2002 03:31 PM

what I did was remove the $session[sessionhash] in the link to main_chat.php but I guess this is what also removes you from the who's online list...(I could be wrong but I'm pretty sure that worked and got around this problem for me)

ZiRu$ 09-12-2002 10:43 PM

sounds good :) Will install next year sometiem if i remember

Vile 09-12-2002 11:02 PM

Cool, works good:)

Anyone know where i would download the Java applet required for this?
Netscape automatically told me I needed the plugin, but IE did not.

Thanks:)

FleaBag 09-13-2002 08:39 AM

The applet you need is in the zip file. If you mean you want to java enable your browser, I'm not sure how with Netscape. I also forgot to mention that there's a demo at www.dragonninja.co.uk/chat.php!

NoAhBoDy 09-13-2002 01:12 PM

jirc is available from www.jpilot.com if you want more info on it.

FleaBag 09-13-2002 01:13 PM

Just like it says in my first post... ;)

Mystic Gohan 09-13-2002 06:57 PM

looks nice might use later

Link14716 09-14-2002 12:55 AM

I would use it, but I have a very stripped down, easy to install chat that is basicall just running an applet from the IRC server ;)

Larry@IOG 09-15-2002 12:19 AM

Ok 2 questions I already have a registered copy of IRC how to i get it on my boards now. Another question How do I get it to show who is in chat on the forums home page?

Thanks

Larry

Larry@IOG 09-16-2002 11:03 PM

Up please someone help me

Larry

FleaBag 09-26-2002 10:33 AM

When you say a registered copy of IRC, which software do you mean? I'm thinking of making a Who's In Chat hack at the moment, that'll check the IRC server rather than the vBulletin sessions [thus also including anyone who is chatting using an IRC client].

SiXXGuNNZ 09-26-2002 08:08 PM

Quote:

Originally posted by GamerForums
http://home.attbi.com/~sixxy04/LMFAO.jpg
lol, you warez'd the chat applet :bunny: :ninja:

trilOByte 09-26-2002 11:18 PM

^^^^LMAO^^^^^

JC 09-28-2002 09:58 PM

Big problem,

I did the board all right, but then someone enters before me, he becomes admin and now when we register name, identify nick, and go to register channel it says you have to be the ops, well he is the only ops and it still dont work!? Help anyone please?

JC

JC 09-28-2002 10:26 PM

ok i fixed that,

now i get this stupid message that says

###UNREGISTERED VERSION ASK WEBMASTER TO REGISTER

what is that all about

the channel is already registerd...so??

LangTuDaTinh 09-29-2002 01:58 AM

hi jc707imports, i got the same problem can u tell me how to fix that?

it keep saying...:

-ChanServ- You must be a channel operator to register the channel.

even i'm the first one on that channel. what did i do wrong?

thanks

FleaBag 09-29-2002 08:38 AM

If you go to www.hashnet.org, you can view the FAQ database. It'll tell you how to register your admin nick name on IRC, and then register your channel and place a bot inside to maintain your adminship over the channel. If you need anymore help post your questions here.

JC 09-29-2002 09:31 AM

No No,

I registered it all with their help even, it's the program it keeps giving me this message

####unregistered version, trial version only

whenever anyone types in the chat room ! :(

Help, thanks.

LangTuDaTinh 09-29-2002 03:56 PM

Quote:

Originally posted by GamerForums
If you go to www.hashnet.org, you can view the FAQ database. It'll tell you how to register your admin nick name on IRC, and then register your channel and place a bot inside to maintain your adminship over the channel. If you need anymore help post your questions here.

here what i did,

i registered my user name
i identify my username
there is an @ before my username and i'm the only one in my chatroom.
i try to register my channel but i keep getting that message.
then i try another channel....same thing...

please help
thanks

foo fighter 09-29-2002 06:32 PM

This means you didn't register the applet...it's 50$ with Jpilot



Quote:

Originally posted by jc707imports
No No,

I registered it all with their help even, it's the program it keeps giving me this message

####unregistered version, trial version only

whenever anyone types in the chat room ! :(

Help, thanks.


JC 09-29-2002 09:07 PM

OH - wtf? You have to pay? NO WHERE in his hack did it mention this...

:( Any way to go around this, maybe a hack on a free applet and i'll use an irc channel instead?

foo fighter 09-29-2002 10:00 PM

you can use eirc and use the world irc servers although that hack for some reason only works with those servers whereas I have gotten the jirc to work with any of them

JC 09-29-2002 11:05 PM

I have an irc chat room setup , 707imports, it still says the same thing :( Now what is the explanation???

What is eirc? I need help guys, im new to this :( hehe.

I just want to have this setup, free and all integrated into the vb, haha...is this possible and how - with the eirc, if so, what is needed to make it work? :)

Thanks,

JC

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 06:14 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.01444 seconds
  • Memory Usage 1,829KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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