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)
-   -   jPilot (IRC chat) Integration (https://vborg.vbsupport.ru/showthread.php?t=33093)

Jakeman 12-09-2001 10:00 PM

JPILOT / vBULLETIN INTEGRATION by jake (first hack! wOOtie! http://130.94.172.202/images/smilies/dance.gif)
-for jpilot 2.5.1 and vbulletin 2.2.6

to see this in action visit my site at www.macsubculture.com (there is a link in the nav column called IRC Chat)

please see http://www.jpilot.com/ for info on the jpilot chat applet.

instructions:
-upload all the jpilot files to your vb root. see jpilot site for download and instructions.
-upload both scripts in the scripts folder to your vb root.
-create the new templates in your vb admin cp. see templates folder... templates to be named the same as each file, etc.
-configure the jpilot params in the chatmain template. see the jpilot site for a list of all params and their functions.
-put this link in your header template or where ever you want the IRC chat link to be: <a href="chat.php?s=$session[sessionhash]" onClick="window.open('chat.php?s=$session[sessionhash]','key','WIDTH=600,HEIGHT=450,scrollbars=no,left=5 0,top=50,screenX=50,screenY=50');return false">IRC Chat</a>
-that's it!

how it works:
-link to the chat.php file first... this pulls the "chat" template which is an intro type of thing with info about the chat. put whatever "intro" type stuff you want in the "chat" template. the chat.php script does not check for registration.
-in the "chat" template that the chat.php pulls there is a link to the chatmain.php file which checks for registration. if the user isn't registered or not logged in they are directed to the "chatnoreg" template which gives them a note saying they aren't logged in, etc. you can customize the chatnoreg template to say whatever you want. if they *are* logged in then they are directed to the chatmain template which has the applet and the params which loads the chat.
-my jpilot params are set up so the user isn't even given a chat config screen. their name is auto filled in and they are auto logged into chat. i also have a param that disables the /nick command. only registered members can chat and they can't change their name in chat to impersonate people. if you want this set up differently it's all in the params (see the jpilot site for info).


--jake
*cream pie*

Justice 12-10-2001 03:08 AM

this looks good... do you have a rough idea of how much server strain or memory this would use, though? I've heard nothing but bad things about java applets and chats

Jakeman 12-10-2001 03:13 AM

[QUOTE]Originally posted by Justice
this looks good... do you have a rough idea of how much server strain or memory this would use, though? I've heard nothing but bad things about java applets and chats

derfelix 12-10-2001 03:15 AM

only if the chat server is on your server..
the chat applet is executed client-side
and the server is somewhere else!

Jakeman 12-10-2001 03:23 AM

[QUOTE]Originally posted by derfelix
only if the chat server is on your server..
the chat applet is executed client-side
and the server is somewhere else!

derfelix 12-10-2001 03:51 AM

in that case.. java or not.. vbulletin integration or not...
your serverload will be the same as before..
or am i wrong?

JJR512 12-10-2001 06:06 AM

How is this different from the original jPilot integration hack, posted here, coupled with my modification to it, posted here? Aside from the fact that yours goes in a popup window.

Jakeman 12-10-2001 04:08 PM

[QUOTE]Originally posted by JJR512
How is this different from the original jPilot integration hack, posted here, coupled with my modification to it, posted here? Aside from the fact that yours goes in a popup window.

Grover 12-10-2001 04:29 PM

[QUOTE]Originally posted by JJR512
How is this different from the original jPilot integration hack, posted here, coupled with my modification to it, posted here? Aside from the fact that yours goes in a popup window.

JJR512 12-10-2001 08:40 PM

It's true that anyone can come into the channel through a different client, like mIRC. There are probably ways to prevent that with invite-only modes or passwords, but I haven't really looked into that.

If you would like to see a demo on my board, you can login using username="Test User", password="testuser".

Grover 12-10-2001 09:08 PM

Thanks JJR512,

Is it possible for you to figure out how I can prevent other visitors to come to the channel trough MIRC or some other IRC client?

I ONLY want registered users to have access to the chat. ONLY them.

This is VITAL for me and our visitors, 'cause we run a website for people who suffer from a hair disease and privacy is a VERY important thing to us.

I'll hope someone can help, because we need an integrated chat very badly.

Thank U,
Grover.

Ohh....and thanks very much for your test-user! I just saw your chat...great! There's another one at: http://www.chins-n-quills.com/forums/

Jakeman 12-10-2001 09:50 PM

i'm not sure how you could limit IRC chat to the jpilot applet only. :confused: if anyone else can tell me how then i'll add it to my zip file.

JJR512 12-10-2001 10:15 PM

You should probably set the channel to be secret, meaing it will not show up in a channel listing:

/mode #YourChannelName +s

Now for the real trick: You can password-protect your channel, so that a user must use that password when joining the channel.

/mode #YourChannelName +k YourChannelPassword

(Note: You can reverse any of these settings later by changing the + to -.)

This sets a password for your channel. Now, to make the hack work with a password-protected channel, you need to add a parameter to the template. Somewhere in the "param" list, add this:

<param name="DisplayConfigChannelPass" value="true">

Also, make sure that you have this line in there, too:

<param name="DirectStart" value="false">
This will make sure the config screen, which asks for the password, is shown. Note that you have not seen this screen on my site, because I have it bypassed.

Look here for a complete list of the various parameters you can set through the template: http://www.jpilot.com/java/irc/manual.html By setting various parameters, you can show the config screen, but block it from showing the channel or server info, which will help keep that info secret, making it harder for people to break in.

You just need to tell the people who need to know it what the password is. Note that they can still join through mIRC or other separate programs, by using this command:

/join #YourChannelName YourChannelPass

Note: I have not tried all of this stuff myself. It's all from what I've read here: http://www.jpilot.com/java/irc/manual.html and here: http://www.newircusers.com/ircmds.html I think this is about as secure as you can make IRC, from what I can tell.

Jakeman 12-11-2001 12:13 AM

wow... seems like too much trouble ;p. plus it isn't full proof. plus you would have to disable directconnect which is a really cool feature; i think it's better to have as few steps as is possible for the end user to start chating.

i wonder if ircd can be setup to check for the client software and disallow all but jpilot? that would be ideal. i wouldn't mind implementing something like that! :)

dirgotronix 12-15-2001 01:24 AM

If you're running the IRCD you could possibly password protect the server, or kline everything except the relative hostmask of the jirc applet.

just a few ideas.

Grover 12-16-2001 09:44 AM

[QuOTE]Originally posted by JJR512
Note that they can still join through mIRC or other separate programs, by using this command:

/join #YourChannelName YourChannelPass

Jakeman 12-16-2001 11:42 PM

i'm gonna update my chat scripts soon to exclude the "awaiting e-mail confirmation" group and the "awaiting moderation" group as well as my own personal "Bad Peeps" group that i put bad people into :D . it's a simple condition. i'm gonna add a couple more templates for those conditions too. for example, if you are in the "awaiting e-mail confirmation" group and try to log into chat it will say, "Sorry, you have not completed the registration process. You need to verify your e-mail address by clicking the link in the e-mail you were sent." little stuff like that.

the current scripts only check if you have a username. well, the above two mentioned groups are going to have user names so they are allowed to chat when they probably shouldn't be allowed to. i'm gonna patch up those holes.. complete with error pages for each condition.

Prince 12-17-2001 05:39 PM

Does this hack have a "who's in the chat now" feature?

thanks! :)

JJR512 12-17-2001 06:50 PM

If you install a hack from FireFly located here, you can quickly and easily add new Who's Online locations to your board. Basically, after installing the hack, you use it to tell the board about a new non-vBulletin page that you've added into the vBulletin system, and you tell it what to show as a description for that page in the Who's Online. With either this hack by Jakeman or the similar one by myself that I linked to in an earlier post above, the chat room is on a separate page, to FireFly's hack is perfect.

The only limitation is this doesn't actually check to see if a member really is in the chat room; it only knows that the member tried to visit that page. If the member was unsuccessful (due to permissions or whatever), he/she will still look to Who's Online as if he did get into the chat room...just as if a member tries to edit another member's post, Who's Online would show that the member is editing that post, even though the member is really seeing the no permission page. Also, if the member is browsing the board in multiple browser windows, then as soon as he goes to another location in another window, he/she will be shown as being in that location, even if he/she is still in the chat room in the first browser.

There has been mention in the past about setting up bots to stay in the chat room that would somehow be able to keep vBulletin actively and accurately notified about who is in the chat room, but all that is beyond me at this time. But if you really want to read up on that, follow the link to my hack in my first post above, and in that thread, look here, or search this board or the one at vbulletin.com for "chat" or "chat AND integration".

Jakeman 12-17-2001 07:20 PM

i've found that the default online.php has a condition for the file "chat.php". it parses this to say "Entered Chat" in the whois online. with my setup the chat.php is only an intro page though. so it will only say "Entered Chat" when on the chat intro page. the actual chat page shows as an unknown location.

cool hack by firefly! i didnt' know about that one.

Sadie Frost 12-23-2001 05:30 AM

I did a combo of this hack and JJR512's - works great! I like having the ability to change rooms if I want to :)

hypedave 12-24-2001 10:34 PM

okay I got the IRC Chat installed on my forum, now im having problems linking it to a particular forum, hmmm lets say I want in the graphics section of my site, can anyone help me out with this
thanks

these are the errors I get when I click on the link

Warning: Undefined variable: REQUEST_URI in c:\inetpub\wwwroot\hybridforums\forums\global.php on line 60

Warning: Undefined index: HTTP_POST_VARS in c:\inetpub\wwwroot\hybridforums\forums\global.php on line 85

Warning: Undefined index: action in c:\inetpub\wwwroot\hybridforums\forums\global.php on line 85

Warning: Undefined index: action in c:\inetpub\wwwroot\hybridforums\forums\global.php on line 88

JJR512 12-25-2001 12:07 AM

[QUOTE]Originally posted by Jakeman
i've found that the default online.php has a condition for the file "chat.php". it parses this to say "Entered Chat" in the whois online. with my setup the chat.php is only an intro page though. so it will only say "Entered Chat" when on the chat intro page. the actual chat page shows as an unknown location.

cool hack by firefly! i didnt' know about that one.

hypedave 12-25-2001 12:11 AM

hey what about my problem :(

Jakeman 12-25-2001 12:23 AM

i have no idea what is causing your problem. i'm not that cool. :p :(

hypedave 12-25-2001 12:26 AM

well okay when I do this step right here

-put this link in your header template or where ever you want the IRC chat link to be: <a href="chat.php?s=$session[sessionhash]" onClick="window.open('chat.php?s=$session[sessionhash]','key','WIDTH=600,HEIGHT=450,scrollbars=no,left=5 0,top=50,screenX=50,screenY=50');return false">IRC Chat</a>


where exactly do I put this, im like vb newbies, so when it comes to these type of hack, I still have a bottle in my hand :D

Jakeman 12-25-2001 01:18 AM

that's just html. all that code will translate into the text, "Chat" where ever you put it and it will be linked to the chat window. look at the other code in your header and you will get the idea. you can just put it up with the other vbulletin buttons on the top.

hypedave 12-25-2001 01:21 AM

okay this is the error im getting now

Warning: Undefined variable: REQUEST_URI in c:\inetpub\wwwroot\hybridforums\forums\global.php on line 60

Warning: Undefined index: HTTP_POST_VARS in c:\inetpub\wwwroot\hybridforums\forums\global.php on line 85

Warning: Undefined index: action in c:\inetpub\wwwroot\hybridforums\forums\global.php on line 85

Warning: Undefined index: action in c:\inetpub\wwwroot\hybridforums\forums\global.php on line 88

Warning: Cannot add header information - headers already sent by (output started at c:\inetpub\wwwroot\hybridforums\forums\global.php: 60) in c:\inetpub\wwwroot\hybridforums\forums\admin\funct ions.php on line 1490

Martz 12-25-2001 12:33 PM

[QUOTE]Originally posted by dirgotronix
If you're running the IRCD you could possibly password protect the server, or kline everything except the relative hostmask of the jirc applet.

just a few ideas.

Grover 12-27-2001 09:52 AM

Hi Martz,

Thank you for your suggestions. I'm very interested in the MySQl IRC services that you mention. I've started a poll on vbulletin.org: https://vborg.vbsupport.ru/showthrea...threadid=33312

and on vbulletin.com: http://www.vbulletin.com/forum/showt...threadid=35631

because I'm just dying for a chat add-on. It just would be the MAIN KEY-feature of our website, next to -ofcourse- our VBulletin board.

So far, the votes are: (27 dec. 2001 11:30 AM)


VBULLETIN.COM

10 Yes, an integrated CHAT function!
03 Yes, an integrated INSTANT MESSASING function!
07 Yes, both please!
14 No

Total: 34 votes ; 20 positive, 14 negative.


VBULLETIN.ORG

03 Yes, an integrated CHAT function!
00 Yes, an integrated INSTANT MESSASING function!
10 Yes, both please!
03 No

Total: 16 votes ; 13 positive, 03 negative.

(Endtotal: 50 votes: 33 positive and 17 negative.)

I'll keep hoping Jelsoft will take notice of the benefits of a chat-add-on and I'll hope they will take it into consideration for a future release.

Grover.

hypedave 12-27-2001 12:21 PM

okay this is the error im getting now

Warning: Undefined variable: REQUEST_URI in c:\inetpub\wwwroot\hybridforums\forums\global.php on line 60

Warning: Undefined index: HTTP_POST_VARS in c:\inetpub\wwwroot\hybridforums\forums\global.php on line 85

Warning: Undefined index: action in c:\inetpub\wwwroot\hybridforums\forums\global.php on line 85

Warning: Undefined index: action in c:\inetpub\wwwroot\hybridforums\forums\global.php on line 88

Warning: Cannot add header information - headers already sent by (output started at c:\inetpub\wwwroot\hybridforums\forums\global.php: 60) in c:\inetpub\wwwroot\hybridforums\forums\admin\funct ions.php on line 1490

does anyone no what causing my errors ??

Jakeman 12-27-2001 05:24 PM

are you putting the chat.php and chatmain.php in the forum root? i just don't see how you could be getting these errors... the hack is pretty much straight forward and nonintrusive.

hypedave 12-27-2001 05:57 PM

yes im putting them in the forum root

http://host/
http://host/forum < ---- thats the root of the vb forum this other is vbportals

Jakeman 12-27-2001 10:52 PM

ah. vbportal is probably the problem... not necessarily the problem, but i didn't write this jpilot hack to work with vbportal. i would think it would still work under vbportal but i guess not. that would have to be the problem i would think. you might try posting on the phpportals.com forums asking how to make this hack work under vbportal. you can link back to this thread or you can go ahead and attach this hack to your post over there... i give you permission. :p

hypedave 12-27-2001 11:00 PM

thankyou man, I hope that works , yeah since I put vbportals on, I have had to rewrite some of my ownhacks,

christec 01-05-2002 05:50 PM

Hey, my smilies are not showing up. Anyone got suggestions.

compgeek83 01-06-2002 07:51 PM

im having a slight problem with this hack, everything works fine for me, however several of my members report that they are unable to access the chat, it gives them the error that they arent logged in and when they go back to the main page they are logged out of vbulletin.

the chat is here
http://www.speedforums.com/chat/chat.php

and a thread about the error is here
http://www.speedforums.com/forums/sh...=1710#post1710

the main site is here
http://www.speedforums.com

hypedave 01-06-2002 08:10 PM

does anyone know how to make it to where only forum members can join the room, i noticed that if I use the mirc program, then I can get access into my chat room, with our using the forum,

anybody got any tips on this one

Jakeman 01-07-2002 06:34 AM

[QUOTE]Originally posted by compgeek83
im having a slight problem with this hack, everything works fine for me, however several of my members report that they are unable to access the chat, it gives them the error that they arent logged in and when they go back to the main page they are logged out of vbulletin.

the chat is here
http://www.speedforums.com/chat/chat.php

and a thread about the error is here
http://www.speedforums.com/forums/sh...=1710#post1710

the main site is here
http://www.speedforums.com

Jakeman 01-07-2002 06:37 AM

[QUOTE]Originally posted by hypedave
does anyone know how to make it to where only forum members can join the room, i noticed that if I use the mirc program, then I can get access into my chat room, with our using the forum,

anybody got any tips on this one


All times are GMT. The time now is 01:02 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.01325 seconds
  • Memory Usage 1,843KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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