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".


All times are GMT. The time now is 12:35 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.01220 seconds
  • Memory Usage 1,739KB
  • 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)pagenav_pagelinkrel
  • (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