![]() |
Jpilot / Vbulletin Integration for Vbulletin 3
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: Code:
<a href="#IRC" onClick="window.open('chat.php?session[sessionurl]','key','WIDTH=600,HEIGHT=450,scrollbars=no,left=50,top=50,screenX=50,screenY=50');return false">IRC Chat</a> 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 |
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? |
Why is this in major additions rather than intigrations? There is nothing major about it.
|
Quote:
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. |
Quote:
|
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: |
I would want that unregistered could chat too, is this possible as an option?
|
Quote:
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. |
I guess you could also redirect them to a slightly different jpilot page - one that would allow them to select their own nick :)
|
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. |
I get an error, archive damaged?
|
|
Ah, thx!
|
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/showthrea...ghlight=jpilot to VB3? Would be very kind! |
Quote:
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. |
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...
|
Quote:
|
|
thanx ;)
|
>popup would be helpful
Hm, noone who could rewrite the script to VB3? :( |
Quote:
just this type of link : Code:
<a href="#IRC" onClick="window.open('chat.php?session[sessionurl]','key','WIDTH=600,HEIGHT=450,scrollbars=no,left=50,top=50,screenX=50,screenY=50 ');return false">IRC Chat</a> |
Quote:
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? |
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? |
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 |
Quote:
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) |
Quote:
are u trying to display users using the chat on the online.php page? |
Quote:
where did u see this? |
I keep geiint loading java applet failed.
|
Quote:
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[username]</b>!<br/><br/><b><a href="chatmain.php?$session[sessionurl]">ENTER CHAT</a></b></smallfont> </td> </tr> </table> </td></tr></table> </body> </html> 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?? |
I placed mine in vb root to stop that problem, didnt care enough to really look into it beyond that. See if it helps
|
there is two solutions.
either u place those files that resides in forums/classes to forums instead. or change this in your codes. Code:
<applet archive="classes/jirc_nss.zip" code="Chat.class" MAYSCRIPT width=575 height=400> |
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? |
Quote:
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....4&postcount=10 |
will it work on 3.07 ? anyone who has it workin on 3.07 with a URL that i can see.
|
Quote:
no issue. try www.keeptouch.net |
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?
|
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] |
All times are GMT. The time now is 04:49 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|