Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by Jakeman Jakeman is offline
Developer Last Online: Jul 2013 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 12-09-2001 Last Update: Never Installs: 49
 
No support by the author.

JPILOT / vBULLETIN INTEGRATION by jake (first hack! wOOtie! )
-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*

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #72  
Old 02-05-2002, 11:59 AM
PhotoGenie PhotoGenie is offline
 
Join Date: Jan 2002
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you want to be able to see whos in chat over threads list..

Use GeorgeofCS code from his hack on digichat. Here is a paste:

in forumdisplay.php

at the very bottom the right above:

eval("dooutput(\"".gettemplate('forumdisplay')."\" );");

add:

// Get users chatting
if ($showforumusers) {
$datecut = $ourtimenow - $cookietimeout;
$chatters = '';
$comma = '';
$forumusers = $DB_site->query("SELECT username, invisible, userid
FROM user
WHERE inchat = 1 AND
lastchatactivity > $datecut");
while ($forumuser = $DB_site->fetch_array($forumusers)) {
if (!$forumuser['invisible'] or $bbuserinfo['usergroupid'] == 6) {
$userid = $forumuser['userid'];
$username = $forumuser['username'];
if ($forumuser['invisible'] == 1) { // Invisible User but show to Admin
$invisibleuser = '*';
} else {
$invisibleuser = '';
}
eval("\$chatters .= \"".$comma.gettemplate('forumdisplay_loggedinuser' )."\";");
$comma = ', ';
}
}
if ($chatters) {
if (!$moderatedby) {
$onlineusers = "<br>";
}
eval("\$onlineusers .= \"".gettemplate('forumdisplay_loggedinusers')."\"; ");
}
}

Next in forumdisplay_loggedinusers template
change:

<br>(Users Browsing this Forum: $browsers)

to:

<br>(Users Browsing this Forum: $browsers)
<br>(Users In Chat: $chatters)
Reply With Quote
  #73  
Old 02-05-2002, 12:07 PM
PhotoGenie PhotoGenie is offline
 
Join Date: Jan 2002
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The only thing I dont like about the whos online is it doesn't log you out right away when you leave. You have to wait until your cookie times out. I set my cookie time out for 3 minutes and instead of putting "Members in chat" I put "Current/Recent" Chatters. I did this because some listed may not be in the room anymore, their cookie just hasn't timed out..
Reply With Quote
  #74  
Old 02-05-2002, 02:13 PM
PhotoGenie PhotoGenie is offline
 
Join Date: Jan 2002
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I decided to change where i put the chatters online in my main page .. I wanted under the pm messages at the bottom.. So I opened forumhome_pmloggedin template and put this at the bottom..

<tr id="cat">
<td bgcolor="{categorybackcolor}" colspan="6"><smallfont color="{categoryfontcolor}"><b>Current/Recent Chatters </b></smallfont><smallfont color="{categoryfontcolor}"></smallfont></td>
<tr>
<td bgcolor="{firstaltcolor}" colspan="6"><smallfont>$chatters</smallfont></td>
</tr></tr>

Instead of in my forumhome_loggedinuser template. Now it shows at the bottom plus its hidden from guest.. Guess you could find a bunch of different places you might want to put it.. These hacks are great, I'm having a lot of fun with them..
Reply With Quote
  #75  
Old 02-06-2002, 05:51 PM
PhotoGenie PhotoGenie is offline
 
Join Date: Jan 2002
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I wasn't satisfied with it not logging you out until your cookie timed out so I made another small change and to my surprise it worked.. This is working off my install of the whos chatting hack of Dom's to work with this hack..

I went back and changed the chat_index.php and added a simple pop up java script to it:

<html>
<head>
<title>Site Title</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
function leave() {
window.open('http://www.your-site.com/chat_logout.php','','toolbar=no,menubar=no,locatio n=no,height=1,width=1');
}
// End -->
</SCRIPT>
</head>

<frameset onUnload="leave()" rows="1,*" frameborder="NO" border="0" framespacing="0">
<frame name="topFrame" scrolling="NO" noresize src="mainchat_top.php" >
<frame name="mainFrame" src="main_chat.php">
</frameset>
<noframes><body bgcolor="#FFFFFF" text="#000000">

</body></noframes>
</html>

Then I created chat_logout.php and inserted this:

<?php
require("global.php");
if( $bbuserid ) {

$DB_site->query("UPDATE user SET inchat='0' WHERE userid='$bbuserinfo[userid]'");
$DB_site->query("UPDATE user SET lastchatactivity=$ourtimenow WHERE userid='$bbuserinfo[userid]'");
} else {

} // end if
?>
echo <script>self.close();</script>
<head>

</head>

</body>
</html>

That was it.. Now it will log you out as soon as you leave the chat..
You may decide to change the time of the pop up window and incude html if you like with some text... No more waiting on the cookie to clear..
Reply With Quote
  #76  
Old 02-06-2002, 06:56 PM
Jakeman's Avatar
Jakeman Jakeman is offline
 
Join Date: Nov 2001
Posts: 273
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i don't like the way that hack gets the online chatters. i can do without it for now.
Reply With Quote
  #77  
Old 02-06-2002, 08:06 PM
PhotoGenie PhotoGenie is offline
 
Join Date: Jan 2002
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You mean with the refresh and all? I dont know much about this stuff. I just move things around until they work. I would like to see you (Jakeman) come up with a hack for this and include it in your present hack. My chatters miss each other without knowing whos in there. This integrated chat hack is still killer even without a whos in chat. I will use this until I see someone or you come up with something else. I'm willing to try anything just about.
Reply With Quote
  #78  
Old 02-07-2002, 06:00 AM
Jakeman's Avatar
Jakeman Jakeman is offline
 
Join Date: Nov 2001
Posts: 273
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[QUOTE]Originally posted by PhotoGenie
You mean with the refresh and all? I dont know much about this stuff. I just move things around until they work. I would like to see you (Jakeman) come up with a hack for this and include it in your present hack. My chatters miss each other without knowing whos in there. This integrated chat hack is still killer even without a whos in chat. I will use this until I see someone or you come up with something else. I'm willing to try anything just about.
Reply With Quote
  #79  
Old 02-09-2002, 07:50 AM
lifesourcerec's Avatar
lifesourcerec lifesourcerec is offline
 
Join Date: Jan 2002
Posts: 429
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[QUOTE]Originally posted by Jakeman
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.
Reply With Quote
  #80  
Old 02-09-2002, 08:07 AM
lifesourcerec's Avatar
lifesourcerec lifesourcerec is offline
 
Join Date: Jan 2002
Posts: 429
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Fixed the problem. Too bad it cuts off the person's name (because of IRC server). I may add ls_ before the name
Reply With Quote
  #81  
Old 02-09-2002, 08:34 PM
Jakeman's Avatar
Jakeman Jakeman is offline
 
Join Date: Nov 2001
Posts: 273
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[QUOTE]Originally posted by lifesourcerec
Fixed the problem.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:13 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.05218 seconds
  • Memory Usage 2,309KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete