Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #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
  #2  
Old 09-08-2005, 11:20 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)
Reply With Quote
  #3  
Old 09-08-2005, 02:21 PM
klisis klisis is offline
 
Join Date: Jun 2002
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
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:20 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03670 seconds
  • Memory Usage 2,182KB
  • Queries Executed 11 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete