The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Jpilot / Vbulletin Integration for Vbulletin 3 Details »» | |||||||||||||||||||||||||||
Jpilot / Vbulletin Integration for Vbulletin 3
Developer Last Online: Apr 2010
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 Show Your Support
|
Comments |
#2
|
|||
|
|||
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? |
#3
|
||||
|
||||
Why is this in major additions rather than intigrations? There is nothing major about it.
|
#4
|
|||
|
|||
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. |
#5
|
|||
|
|||
Quote:
|
#6
|
||||
|
||||
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: |
#7
|
||||
|
||||
I would want that unregistered could chat too, is this possible as an option?
|
#8
|
|||
|
|||
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. |
#9
|
|||
|
|||
I guess you could also redirect them to a slightly different jpilot page - one that would allow them to select their own nick
|
#10
|
|||
|
|||
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. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|