PDA

View Full Version : Jpilot / Vbulletin Integration for Vbulletin 3


d3nnis
01-05-2004, 10:00 PM
To see this in action visit my site at forums.keeptouch.net (there is a link under quick link, only registered users)

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 navbar template or where ever you want the IRC chat link to be:

<a href="#IRC" onClick="window.open('chat.php?session[sessionurl]','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).


Credit to original Author of this mod, Jakeman of www.vbulletin.org, thread -> https://vborg.vbsupport.ru/showthread.php?t=33093

mini2
01-06-2004, 01:05 PM
Very similar to mine really (vB 3.0.0] Jpilot Jirc Chat Integration (basic, but it works)... ), without the "members chatting" on the forumhome list, but WITH proper template integration.

I don't know why you need three templates? Why not have chat and chatmain kill two birds with one stone, and a chat no_reg for those not registered?

FASherman
01-06-2004, 01:34 PM
Why is this in major additions rather than intigrations? There is nothing major about it.

d3nnis
01-06-2004, 01:38 PM
Very similar to mine really (vB 3.0.0] Jpilot Jirc Chat Integration (basic, but it works)... ), without the "members chatting" on the forumhome list, but WITH proper template integration.

I don't know why you need three templates? Why not have chat and chatmain kill two birds with one stone, and a chat no_reg for those not registered?


well, I am nto too sure about the rational of this 3 template that Jakeman originally wrote but I guess what he wants is :

chat - Welcome page
chatmain - Main irc chat page
chatnoreg - Inform any unregister or members who have not login to register or login.

In my case chatnoreg will nto be necessary unless I choose to let unregister users to click on the irc chat link as u can see i place the link under quick links.

mini2
01-06-2004, 07:47 PM
well, I am nto too sure about the rational of this 3 template that Jakeman originally wrote but I guess what he wants is :

chat - Welcome page
chatmain - Main irc chat page
chatnoreg - Inform any unregister or members who have not login to register or login.

In my case chatnoreg will nto be necessary unless I choose to let unregister users to click on the irc chat link as u can see i place the link under quick links.

The only suggestion I was making was it might be "cleaner" and quicker for users to combine chat and chatmain.

SloppyGoat
01-09-2004, 07:48 PM
I'm trying to modify the older 2.X hack, so that if a guest clicks on chat, they're just sent to the login page. Does anyone know what "nopermission();" was replaced with. It appears that this is the only thing that's no longer valid in vB3. This method only requires one chat template. The rest is done in the chat.php file. So, in short, it checks for a registered username. If it finds it, it uses that name as the chat name. If not, they get sent to the login/registration page.

[edit]Nevermind. nopermission() now = print_no_permission()

It works great! Just look for the old JIRC Integration hack for 2.X, and modify it. One template and one chat.php file. Nice and simple. :up:

gmarik
01-17-2004, 06:39 AM
I would want that unregistered could chat too, is this possible as an option?

d3nnis
01-19-2004, 03:38 AM
I would want that unregistered could chat too, is this possible as an option?


its possible. As long as the unregistered user clicks on this link

http://www.yourforum.com/chat.php


however, their nick will be defaulted to unregistered.

u might want to do a if conditional to the chatmain template to replace the registered forum username to a nicer default nick on irc.

allan grossman
01-21-2004, 10:51 AM
I guess you could also redirect them to a slightly different jpilot page - one that would allow them to select their own nick :)

allan grossman
01-21-2004, 10:30 PM
Got it under control - unregistered users can enter a nick and chat also :)

I managed to edit the 'chatnoreg' template to prompt guests for a nick - and only a nick before forwarding them on to a single channel - here's all you need ;)

When you get chatmain working to your satisfaction:

1. Copy chatmain to your clipboard.

2. Open chatnoreg and overwrite it with the stuff on your clipboard - so chatmain and chatnoreg are identical.

3. While still in chatnoreg, delete this:

<param name="NickName" value="$bbuserinfo[username]">

4. Add this parameter:

<param name="DirectStart" value="false">


plus any of these parameters you need for your config screen. I'd include them all because almost all of them default to true. Set them to 'true' or 'false' as required -

<param name="DisplayConfigNick" value="true">
<param name="DisplayConfigNickPass" value="false">
<param name="DisplayConfigChannel" value="false">
<param name="DisplayConfigChannelPass" value="false">
<param name="DisplayConfigRealName" value="false">
<param name="DisplayConfigServer" value="false">
<param name="DisplayConfigServerPass" value="false">
<param name="DisplayConfigPort" value="false">
<param name="DisplayConfigMisc" value="false">

'DisplayConfigNick' defaults to true but I included it so y'all would get the idea how the config screen works.

5. Save chatnoreg.

I have my own IRC server and only one channel for a forum chatroom so there's no reason for jpilot to configure anything but the nick.

Happy chatting :)

oh, yeah - I did this on RC3 but it should work on any version.

hubba
03-29-2004, 09:16 PM
I get an error, archive damaged?

rockergrrl
03-29-2004, 09:38 PM
Hubba: see: https://vborg.vbsupport.ru/showthread.php?t=63146

hubba
03-30-2004, 10:39 AM
Ah, thx!

hubba
03-30-2004, 10:55 AM
Got it. Now I am looking for an option to integrate a "Users in chat" on the forumhome...

Is it possible someone could modify that

https://vborg.vbsupport.ru/showthread.php?t=34065&highlight=jpilot

to VB3? Would be very kind!

allan grossman
03-30-2004, 11:30 AM
Got it. Now I am looking for an option to integrate a "Users in chat" on the forumhome...

Is it possible someone could modify that

https://vborg.vbsupport.ru/showthread.php?t=34065&highlight=jpilot

to VB3? Would be very kind!

I've got a 'users in chat' hack running. The hack that's available here requires a bot in the channel so it might be a good idea to be running your own IRC server :)

I can't remember the thread, but if you'll search the forum archives for 'eggdrop' you'll find it.

You can see how mine works by looking at http://ebassist.com - you'll see it on forumhome right under where the 'who's online' thingie is.

hubba
03-30-2004, 01:39 PM
I can't use bots... so the hack with the popup would be helpful. I used it on VB 2 and it worked very well...

M.C.
03-30-2004, 11:53 PM
I've got a 'users in chat' hack running. The hack that's available here requires a bot in the channel so it might be a good idea to be running your own IRC server :)

I can't remember the thread, but if you'll search the forum archives for 'eggdrop' you'll find it.

You can see how mine works by looking at http://ebassist.com - you'll see it on forumhome right under where the 'who's online' thingie is.
do you use that hack "Eggdrop IRC Manager"?

allan grossman
03-31-2004, 11:25 AM
Nope - I used this one:

https://vborg.vbsupport.ru/showthread.php?t=59672

M.C.
03-31-2004, 12:51 PM
thanx ;)

hubba
04-02-2004, 05:53 PM
>popup would be helpful

Hm, noone who could rewrite the script to VB3? :(

d3nnis
04-15-2004, 05:16 AM
>popup would be helpful

Hm, noone who could rewrite the script to VB3? :(


just this type of link :


<a href="#IRC" onClick="window.open('chat.php?session[sessionurl]','key','WIDTH=600,HEIGHT=450,scrollbars=no,left=5 0,top=50,screenX=50,screenY=50 ');return false">IRC Chat</a>


this will create the popup. :)

moonclamp
05-27-2004, 01:32 AM
Got it. Now I am looking for an option to integrate a "Users in chat" on the forumhome...

Is it possible someone could modify that

https://vborg.vbsupport.ru/showthread.php?t=34065&highlight=jpilot

to VB3? Would be very kind!I'm trying to as we speak, I've created the frame templates but for some reason it doesn't update the database with online/offline info.

The other thing I have noticed is that there is no WOL information available. Can anyone point me in the right direction for creating this?

kcradio
05-27-2004, 05:09 PM
Call to a member function on a non-object /includes/config.php on line 194
(edited to take out the full path)

Anyone else get this?

rinkrat
07-23-2004, 05:57 PM
I followed the directions and put the jirc files in my forums root (/forums/) the popup window comes and then the one with the chat frame but it is empty. Any ideas what is wrong?

It says to:
-upload all the jpilot files to your vb root. see jpilot site for download and instructions.

In the zip from Jpilot there is a preview.html and then a "classes" subdirectory. So I move the classes subdirectory to the root of my forums right? in my case /forums/classes

d3nnis
07-27-2004, 06:26 AM
I followed the directions and put the jirc files in my forums root (/forums/) the popup window comes and then the one with the chat frame but it is empty. Any ideas what is wrong?

It says to:
-upload all the jpilot files to your vb root. see jpilot site for download and instructions.


In the zip from Jpilot there is a preview.html and then a "classes" subdirectory. So I move the classes subdirectory to the root of my forums right? in my case /forums/classes


here's how you should place your files

/forums/chat.php
/forums/chatmain.php
/forums/jpilot-files (basically u only need 2 file, the .cab and .zip file)

d3nnis
07-27-2004, 06:29 AM
I'm trying to as we speak, I've created the frame templates but for some reason it doesn't update the database with online/offline info.

The other thing I have noticed is that there is no WOL information available. Can anyone point me in the right direction for creating this?


are u trying to display users using the chat on the online.php page?

d3nnis
07-27-2004, 06:29 AM
Call to a member function on a non-object /includes/config.php on line 194
(edited to take out the full path)

Anyone else get this?


where did u see this?

ssabmud
08-06-2004, 02:29 AM
I keep geiint loading java applet failed.

OrangeFlea
09-18-2004, 04:04 AM
I keep geiint loading java applet failed.

Same, what could I be doing wrong? This is what I've done. Tell me if I've done anything wrong.

chat.php --> home/forum
chatmain.php --> home/forum
jirc_mss.cab --> home/forum/classes
jirc_nss.zip --> home/forum/classes
jirc_pure.zip --> home/forum/classes
resources.cab --> home/forum/classes
resources.zip --> home/forum/classes

Chat.php Template

<html>

<head>
<title>IRC CHAT</title>
$headinclude
</head>

<body>

<table cellpadding="0" cellspacing="0" border="0" bgcolor="#8A949E" width="100%" align="center"><tr><td>
<table cellpadding="4" cellspacing="1" border="0" width="100%">
<tr align="center">
<td bgcolor="#BBC7CE"><smallfont>Welcome to IRC chat, <b>$bbuserinfo</b>!<br/><br/><b><a href="chatmain.php?$session[sessionurl]">ENTER CHAT</a></b></smallfont>
</td>
</tr>

</table>
</td></tr></table>

</body>

</html>


[U]Chatmain Template

<html>

<head>
<title>IRC</title>
$headinclude
</head>

<body>

<table cellpadding="0" cellspacing="0" border="0" bgcolor="#8A949E" width="100%" align="center">
<tr><td>
<table cellpadding="4" cellspacing="1" border="0" width="100%">
<tr align="center">
<td bgcolor="#BBC7CE"><smallfont><b>IRC Chat</b></smallfont></td>
</tr>
<tr>
<td bgcolor="#BBC7CE">
<applet archive="jirc_nss.zip" code="Chat.class" MAYSCRIPT width=575 height=400>

<param name="CABBASE" value="jirc_mss.cab">


<param name="ServerPort" value="6667">

<param name="ServerName1" value="irc.blackened.com">

<param name="Channel1" value="Infamy">

<param name="AllowURL" value="false">
<param name="AllowIdentd" value="true">

<param name="WelcomeMessage" value="Welcome to IRC chat!">
<param name="RealName" value="jpilot">
<param name="NickName" value="$bbuserinfo[username]">
<param name="UserName" value="jpilot">
<param name="isLimitedServers" value="true">
<param name="isLimitedChannels" value="true">

<param name="MessageCol" value="80">

<param name="BackgroundColor" value="99,132,181">

<param name="TextColor" value="black">
<param name="TextScreenColor" value="white">
<param name="ListTextColor" value="black">

<param name="TextFontName" value="Arial">
<param name="TextFontSize" value="12">

<param name="ConfigNickOnly" value="true">
<param name="NickNChannelOnly" value="true">
<param name="LogoBgColor" value="white">
<param name="BorderVsp" value="3">
<param name="DirectStart" value="true">

<param name="FGColor" value="white">

<param name="TitleBackgroundColor" value="blue">
<param name="TitleForegroundColor" value="white">


<param name="InputTextColor" value="black">
<param name="InputScreenColor" value="white">
<param name="IgnoreLevel" value="3">

<param name="DisplayConfigRealName" value="false">
<param name="DisplayConfigServer" value="false">
<param name="DisplayConfigPort" value="false">
<param name="DisplayConfigMisc" value="false">

<param name="InitCommands" value="/clear;/me enters">


<param name="UserListWidth" value="160">
<param name="RefreshColorCode" value="false">
<param name="DisplaySoundControl" value="false">
<param name="NoConfig" value="true">
<param name="DisplayAbout" value="false">
<param name="AliasList" value="/nick=/echo Nick command disabled">
<param name="IgnoreServerMsg" value="true">
<param name="IgnoreModeMsg" value="true">
<param name="IgnoreMOTD" value="true">
<param name="IgnoreChannelChangeMsg" value="true">


<param name="LicenseKey" value="Insert your jpilot license here!">

</applet>
</td>
</tr>

</table>
</td></tr></table>

</body>

</html>




Someone help? Why am I getting the applet failed prompt??

Tibs
10-26-2004, 02:36 PM
I placed mine in vb root to stop that problem, didnt care enough to really look into it beyond that. See if it helps

d3nnis
01-05-2005, 07:25 AM
there is two solutions.

either u place those files that resides in forums/classes to forums instead.

or change this in your codes.


<applet archive="classes/jirc_nss.zip" code="Chat.class" MAYSCRIPT width=575 height=400>

<param name="CABBASE" value="classes/jirc_mss.cab">


it should work :)

Flugel
01-05-2005, 02:24 PM
Sorry for dragging this old chestnut back from the past, but I'm having probs with this hack.

All is working fine with the exception of the following line in the chatmain template:

<param name="NickName" value="$bbuserinfo[username]">

As many of our members have common usernames I wanted to add a prefix to the nickname in IRC but value="xxx$bbuserinfo[username]" doesn't work.

It worked fine when I was using vb2.26, but not with vb3.

Any ideas on how to get around this without forcing 90% of my members to change their username on entry to the chat room?

d3nnis
01-07-2005, 04:52 AM
Sorry for dragging this old chestnut back from the past, but I'm having probs with this hack.

All is working fine with the exception of the following line in the chatmain template:

<param name="NickName" value="$bbuserinfo[username]">

As many of our members have common usernames I wanted to add a prefix to the nickname in IRC but value="xxx$bbuserinfo[username]" doesn't work.

It worked fine when I was using vb2.26, but not with vb3.

Any ideas on how to get around this without forcing 90% of my members to change their username on entry to the chat room?


just remove this param. ;) for my forum, i let my members use their forum username as default.

by the way check this :
https://vborg.vbsupport.ru/showpost.php?p=466424&postcount=10

Selene
04-19-2005, 10:37 AM
will it work on 3.07 ? anyone who has it workin on 3.07 with a URL that i can see.

d3nnis
04-19-2005, 02:21 PM
will it work on 3.07 ? anyone who has it workin on 3.07 with a URL that i can see.


no issue.

try www.keeptouch.net

hankster
05-09-2005, 01:57 AM
OK... there is a problem. If a username starts with numbers they can't log in. Does someone know a way to add a letter or two before the username when they log in?

Selene
12-13-2005, 10:25 PM
OK i am having problem.

I downloaded latest 2.8.4 jpilot from the site, and followed the instructions.

When i click on the chat link from forums it opens a popup which is empty and white!

title of that page is http://www.(mysiteurl).com/pmforums/chat.php?session[sessionurl]