Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
Hi All

Here are some instructions and the files attached in a zip file.

First of all you need to add a new field in the w3t_users table. I called it ChatIcon VARCHAR(10) NULL DEFAULT 1000. (1000 is the default icon for DigiChat)

Then I made a small change to the ubbt_registerednav.tmpl. Right below the line:
code:
($template['members_link'])


I added the following code:
code:

|
<!-- 20020826 Chat Link New Start -->
<script langauge="javascript" type="text/javascript">function OpenChat()
{window.open('$phpurl/chat.php','','left=10,right=10,width=400,height=200');}
</script><a href="javascript: OpenChat()">Chat</a>
<!-- 20020826 Chat Link Read New End -->


(NOTE: The script is in one line, I put some carriage returns for aesthetic purposes)

Third and most important I created the chat.php file. This is the file that instantiates the java class and logs in the user. The programming is very simple:
code:

<?

// Require the library
require ("main.inc.php");

// -----------------
// Get the user info
$userob = new user;
$user = $userob -> authenticate("U_Email, U_Homepage, U_ChatIcon, U_Name");

$Username = $user['U_Username'];
$RealEmail = $user['U_Email'];
$Name = $user['U_Name'];
$Homepage = $user['U_Homepage'];
$ChatIcon = $user['U_ChatIcon']; // A new field that I added for my chat application

echo <<<UBBTPRINT

<TITLE>
FFFF Chat
</TITLE>
<FONT FACE="Verdana" SIZE="1" COLOR="navy">
If you are disconnected by accident, click on the Connect button to reconnect.<BR>
You can resize the chat window. Also you can talk in private to as many people as
you wish by double clicking on their username
</FONT>
<CENTER>
<APPLET NAME="DigiChat"
CODEBASE="http://ffff.niden.net/DigiChat/DigiClasses/"
CODE="com.diginet.digichat.client.DigiChatApplet.class"
WIDTH="200"
HEIGHT="100"
ALIGN="MIDDLE"
ARCHIVE="client.jar">
<PARAM NAME="siteID" VALUE="1000">
<PARAM NAME="roomID" VALUE="1001">
<PARAM NAME="cabbase" VALUE="Client.cab">

<PARAM NAME="nickname" VALUE="$Username">
<PARAM NAME="realname" VALUE="$Name">
<PARAM NAME="email" VALUE="$Homepage">
<PARAM NAME="realemail" VALUE="$RealEmail">
<PARAM NAME="iconID" VALUE="$ChatIcon">
<PARAM NAME="autopop" VALUE="true">
<PARAM NAME="RoomsTab" VALUE="false">

<PARAM NAME="background" VALUE="FFFFFF">
<PARAM NAME="textcolor" VALUE="000000">
DigiChat requires a Java Compatible web browser to run.
</APPLET>
</CENTER>
UBBTPRINT;
?>



The first line gives access to the database. Following that I retrieve the contents of the U_Username, U_Email, U_Name, U_Homepage and U_ChatIcon from the database. These are purely for constructing the profile for the user while in the chat room.

The rest are parameters that DigiChat accepts. There is a plethora of options for the users to use such as moderated rooms, locked rooms etc. One can extend the model with the help of the user groups to allow access to specific rooms.

For those who would like to give it a try, below is a link on a test board. User: test1, Password: test1 and User: test2, Password test2
Test Forum

My next endeavour is to write a bot that will log into the chat invisible and check who is online. Following that it will update the w3t_online table on who is in the chat from the logged in users and the Who's Online screen and hack will display that so that users know if someone is all alone and crying in the chat - That however will require java knowledge which I don't have. Never mind, some experimentation wouldn't hurt

I hope this helps

Warm regards

Nikos
Attachments
56428-ChatFiles.zip (0 Bytes, 18 downloads)


Nikos
Sponsored Links
Entire Thread
Subject Posted By Posted
Integrated Chatroom JoshPet 06/15/2002 1:22 AM
Re: Integrated Chatroom JustDave 06/15/2002 1:31 AM
Re: Integrated Chatroom Gardener 06/15/2002 3:54 AM
Re: Integrated Chatroom JoshPet 06/15/2002 4:20 AM
Re: Integrated Chatroom Gardener 06/15/2002 5:44 AM
Re: Integrated Chatroom JoshPet 06/15/2002 6:05 AM
Re: Integrated Chatroom Ian_W 06/15/2002 9:45 AM
Re: Integrated Chatroom ExcelsiorDDZ 06/19/2002 7:23 PM
Re: Integrated Chatroom caymuc 06/20/2002 7:03 PM
Re: Integrated Chatroom Ian_W 06/20/2002 8:14 PM
Re: Integrated Chatroom Sat4all 06/20/2002 11:52 PM
Re: Integrated Chatroom dimopoulos 09/11/2002 11:58 AM
Re: Integrated Chatroom msula 09/11/2002 1:46 PM
Re: Integrated Chatroom JustDave 09/11/2002 2:42 PM
Re: Integrated Chatroom JoshPet 09/11/2002 4:56 PM
Re: Integrated Chatroom dimopoulos 09/11/2002 5:30 PM
Re: Integrated Chatroom dimopoulos 09/11/2002 5:31 PM
Re: Integrated Chatroom JoshPet 09/11/2002 5:38 PM
Re: Integrated Chatroom AllenAyres 09/11/2002 7:09 PM
Re: Integrated Chatroom dimopoulos 09/11/2002 8:45 PM
Re: Integrated Chatroom JoshPet 09/11/2002 9:33 PM
Re: Integrated Chatroom casper_dup1 09/11/2002 9:36 PM
Re: Integrated Chatroom JoshPet 09/11/2002 9:46 PM
Re: Integrated Chatroom dimopoulos 09/11/2002 10:08 PM
Re: Integrated Chatroom omegatron 09/11/2002 11:30 PM
Re: Integrated Chatroom msula 09/12/2002 3:23 AM
Re: Integrated Chatroom AllenAyres 09/12/2002 6:29 AM
Re: Integrated Chatroom dimopoulos 09/12/2002 10:09 AM
Re: Integrated Chatroom omegatron 09/12/2002 11:49 PM
Re: Integrated Chatroom JoshPet 09/12/2002 11:58 PM
Re: Integrated Chatroom omegatron 09/13/2002 12:41 AM
Re: Integrated Chatroom msula 09/13/2002 4:58 AM
Re: Integrated Chatroom AllenAyres 09/13/2002 6:43 AM
Re: Integrated Chatroom msula 09/13/2002 6:49 AM
Re: Integrated Chatroom AllenAyres 09/13/2002 7:51 AM
Re: Integrated Chatroom Sat4all 09/13/2002 1:50 PM
Re: Integrated Chatroom AllenAyres 09/13/2002 8:14 PM
Re: Integrated Chatroom Sat4all 09/13/2002 9:20 PM
Re: Integrated Chatroom omegatron 09/13/2002 11:26 PM
Re: Integrated Chatroom AllenAyres 09/13/2002 11:31 PM
Re: Integrated Chatroom omegatron 09/14/2002 10:54 AM
Re: Integrated Chatroom Ian_W 09/14/2002 12:08 PM
Re: Integrated Chatroom omegatron 09/14/2002 5:23 PM
Re: Integrated Chatroom Gregori 09/15/2002 3:08 PM
Re: Integrated Chatroom Gregori 09/15/2002 3:25 PM
Re: Integrated Chatroom omegatron 09/15/2002 4:27 PM
Re: Integrated Chatroom Storm_dup1 09/15/2002 7:43 PM
Re: Integrated Chatroom omegatron 09/16/2002 11:52 AM
Re: Integrated Chatroom casper_dup1 09/23/2002 11:48 PM
Re: Integrated Chatroom Storm_dup1 09/24/2002 12:20 AM
Re: Integrated Chatroom mod_perl 09/25/2002 6:14 AM
Re: Integrated Chatroom JoshPet 09/25/2002 6:25 AM
Re: Integrated Chatroom mod_perl 09/25/2002 8:41 AM
Re: Integrated Chatroom Gregori 01/04/2003 6:46 PM
Re: Integrated Chatroom Sat4all 01/04/2003 8:32 PM
Re: Integrated Chatroom Ian_W 01/04/2003 8:50 PM
Re: Integrated Chatroom omegatron 01/04/2003 9:12 PM
Re: Integrated Chatroom Dalantech 01/04/2003 9:32 PM
Re: Integrated Chatroom Goshik 01/04/2003 10:04 PM
Re: Integrated Chatroom Dalantech 01/04/2003 10:43 PM
Re: Integrated Chatroom omegatron 01/04/2003 11:18 PM
Re: Integrated Chatroom Dalantech 01/04/2003 11:41 PM
Re: Integrated Chatroom omegatron 01/05/2003 5:03 AM
Re: Integrated Chatroom JoshPet 01/05/2003 5:14 AM
Re: Integrated Chatroom omegatron 01/05/2003 5:59 AM
Re: Integrated Chatroom msula 01/05/2003 6:04 AM
Re: Integrated Chatroom JoshPet 01/05/2003 10:39 AM
Re: Integrated Chatroom shortbus 01/05/2003 10:51 AM
Re: Integrated Chatroom Ian_W 01/05/2003 12:41 PM
Re: Integrated Chatroom Dalantech 01/05/2003 5:01 PM
Re: Integrated Chatroom JoshPet 01/05/2003 6:37 PM
Re: Integrated Chatroom dimopoulos 01/05/2003 8:44 PM
Re: Integrated Chatroom JoshPet 01/06/2003 6:14 AM
Re: Integrated Chatroom Dalantech 01/06/2003 6:59 PM
Re: Integrated Chatroom Astaran 01/06/2003 7:27 PM
Re: Integrated Chatroom omegatron 01/07/2003 1:31 AM
Re: Integrated Chatroom xyzyzzyx 01/07/2003 8:36 AM
Re: Integrated Chatroom gblue 01/11/2003 7:05 AM
Re: Integrated Chatroom gblue 01/11/2003 7:08 AM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,834
Joined: January 2000
Forum Statistics
Forums63
Topics37,575
Posts293,931
Members13,824
Most Online6,139
Sep 21st, 2024
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 1
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)