vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Realchat Integration (https://vborg.vbsupport.ru/showthread.php?t=95853)

klisis 09-08-2005 10:35 AM

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 ?

Marco van Herwaarden 09-08-2005 11:20 AM

2 comments:
- Did you ask the original coder permission to use his code?
- If you did, please post it in the correct Release forum. (as a beta if you're not sure)

klisis 09-08-2005 02:21 PM

Not sure if there is an original coder. It was made from a discussion.
Besides, this was made in late 2002 and the user who contributed the most was last online back in 2002. His total post count is 3. I am not even sure if I can get a hold of him.

The code was too old to be used in Vb3. I believe it was for Vb2. But I will try to contact.


All times are GMT. The time now is 01:42 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.00893 seconds
  • Memory Usage 1,724KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete