View Single Post
  #1  
Old 09-08-2005, 10:35 AM
klisis klisis is offline
 
Join Date: Jun 2002
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Realchat Integration

I've managed to find an hack integration with Realchat and Vb.

Note that I did not write the source code. But I had to update it a little bit in order to make it work with Vb3 though.
I originally found this at http://forum.net-build.net/showthrea...light=realchat
It was in german. It wouldn't work as is. So, I modified a little bit.

This worked in Vb 3.0x, not certain about 3.5.x though.
Here it goes.

Add following to middle of misc.php

Code:
// ############################### start chat ###############################
if ($_REQUEST['do'] == 'chat') {
$$page = intval($HTTP_GET_VARS['page ' ]);
if (!$page)
$$page = ' ';
$$templatesused = "chat$page";
include("./global.php");
eval('print_output("' . fetch_template('chat') . '");');
}
You can add it pretty much anywhere in misc.php. For me, I add it at line 174 of misc.php

And then add a new template called "chat" in your active template set.

Code:
<html>
<head>
<title>Your title</title>
</head>
<body>
$header
$navbar

<p>
<!-- Begin: RealChat Client code -->
<applet
  archive =" RealChat.jar"
  codebase =" /chat/"
  code     =" rcs.client.RealChatClient.class"
  name     =" ChatClient"
  width    =" 300"
  height   =" 100"
  align    =" top"
  alt      =" RealChat Client applet"
  MAYSCRIPT>

<param name="nick" value="$bbuserinfo[username]">
<param name="canChangeProfile" value="no">

<param name="pLabel1" value="Username:">
<param name="pValue1" value="$bbuserinfo[username]">
<param name="pLabel2" value="Birthday:">
<param name="pValue2" value="$bbuserinfo[birthday]">
<param name="pLabel3" value="Hobbys:">
<param name="pValue3" value="$bbuserinfo[field3]">
<param name="pLabel4" value="Location:">
<param name="pValue4" value="$bbuserinfo[field2]">
<param name="pLabel5" value="Homepage:">
<param name="pValue5" value="$bbuserinfo[homepage]">
<param name="pLabel6" value="email:">
<param name="pValue6" value="$bbuserinfo[email]">
<param name="pLabel7" value="ICQ:">
<param name="pValue7" value="$bbuserinfo[icq]">

<!-- no java or java disabled -->
RealChat client requires Java compatible web browser.
</applet>
<!-- End: RealChat Client code -->

</applet>
</p>

$footer

</body>
</html>
And use this link within vb forum
<a href="misc.php?s=$session[sessionhash]&do=chat">Chat now</a>

I do not know if this really works. I tried it on my forum and , as far as I can tell, it worked.

If anyone is using realchat, mind testing it ?
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01251 seconds
  • Memory Usage 1,771KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete