vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   posible way to do java chat (https://vborg.vbsupport.ru/showthread.php?t=12411)

shaggster 03-27-2001 01:51 AM

as anybody inported the user names ect.. into jpilot java chat?
well i was looking at the coding that jpilot does and it looks like it could be posible..
here is the code for a sample html it comes with
Quote:

<HTML>

<HEAD><TITLE>JPilot Chat </TITLE></HEAD>
<BODY bgcolor=white>

<center>
<TABLE width="100%">
<tr>
<td bgcolor=gray>
<font size=-1>
Jpilot jIRC applet only support Netscape4.0, IE4.0 or above.<br>
Please grant the permission when the pop up window appears from Netscape
and IE.<br>
</font>
</td>
</tr>


<TR><TD align=left>

<nobr>
<applet archive="jirc_nss.zip" code=Chat.class
width=500 height=200 >

<param name="CABBASE" value="jirc_mss.cab">


<param name="ServerPort" value="6667">

<param name="ServerName1" value="irc.mindspring.com">
<param name="ServerName2" value="irc.blackened.com">
<param name="ServerName5" value="irc.concentric.net">
<param name="ServerName4" value="irc.prison.net">
<param name="ServerName3" value="dallas.tx.us.undernet.org">

<param name="Channel1" value="jpilot">
<param name="Channel2" value="finance">
<param name="Channel3" value="sports">
<param name="Channel4" value="science">
<param name="Channel5" value="movies">
<param name="Channel6" value="jpilot">

<param name="AllowURL" value="true">
<param name="AllowIdentd" value="true">

<param name="WelcomeMessage" value="Welcome to Java IRC chat!">
<param name="RealName" value="JPilot jIRC applet User">
<param name="NickName" value="Guest">
<param name="UserName" value="jirc">
<param name="isLimitedServers" value="true">
<param name="isLimitedChannels" value="true">

<param name="MessageCol" value="80">

<param name="BackgroundColor" value="99,132,181">

<param name="TextColor" value="pink">
<param name="TextScreenColor" value="white">
<param name="ListTextColor" value="pink">

<param name="TextFontName" value="Arial">
<param name="TextFontSize" value="12">

<param name="ConfigNickOnly" value="true">
<param name="NickNChannelOnly" value="true">
<param name="LogoBgColor" value="white">
<param name="BorderVsp" value="3">
<param name="DirectStart" value="false">

<param name="FGColor" value="black">

<param name="TitleBackgroundColor" value="black">
<param name="TitleForegroundColor" value="white">


<param name="InputTextColor" value="pink">
<param name="InputScreenColor" value="white">
<param name="IgnoreLevel" value="3">

<param name="DisplayConfigRealName" value="false">
<param name="DisplayConfigServer" value="false">
<param name="DisplayConfigPort" value="false">
<param name="DisplayConfigMisc" value="false">


</applet>
<p>

</TD></TR>
</TABLE>
</center>
now how would i be able to inport the user names of the person tring to join the chat.. i came up with part of the script
Quote:

if ($page == "client") {
if ($bbusername != "") {
$num = $bbusername ;
}
if ($bbusername == "") {
$filename = "chat_count.txt";
$contents = file($filename);
$length = strlen($contents);
$number = 0;
$count = 0;
$num = $guestnick.$length ;
$handle= fopen($filename,'a+');
$string = "+";
fputs($handle, $string);
fclose($handle);
}
but am wondering how to inport that to the script its self
and redo that whole html file to php
any ideas?
really need some help could be a posible hack

03-27-2001 10:21 AM

nobody can think of away to do this? aww man.. i think it would be pritty neat hack..
personally...

Trail 05-21-2001 01:27 AM

I wish you got a reply.. it would be a realy neat trick indeed ;)

Martz 05-21-2001 04:40 PM

Im not entirley sure what you are trying to achive? I run the jIRC applet as well and I have to get the poster, registered or not, to enter his/her nickname into the client before they conenct.

So either, your trying to get it to grab the username and make jIRC connect automatically with that as the IRC nickname

or

You want to keep track of how many people are conencting though your IRC applet and show it in a "whosonline" fashion.

shaggster 05-22-2001 07:47 PM

i have already done it and have released it..
check out other posts by me. i forget the url to the thread


All times are GMT. The time now is 11:11 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.00979 seconds
  • Memory Usage 1,728KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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