DEFINITION:
| |
ZZ:FlashChat is a simple MySQL-based Chat Program with Flash-Interface.
The advantage of using flash is that no annoying page refreshes
are required for it to work.
FlashChat is a combination of Flash, PHP and MySQL.
For installation you must have webspace with PHP and a MySQL
Database.
The client needs the Flash-Plugin (almost 98% have).
ZZ:FlashChat was designed for easy installation, easy use
and especially easy customization. |
|
INSTALLATION:
| |
To install ZZ:FlashChat:
| [1] |
Unzip ZZ_FlashChat_2.2.zip.
|
| [2] |
Open the file 'inc-config.php'
in the directory 'chat / inc'
of FlashChat and define the MySQL servername, username,
password and database name (further infomation is in
the file) ! Save 'inc-config.php'
!
|
| [3] |
Copy all the files in the folder 'chat'
to a folder of your webspace where you want to install
FlashChat in.
|
| [4] |
Copy the file 'installation.php'
to the directory on your webspace chosen in [2]
!
(for orientation: Inside this directory there are:
'chat.php', 'index.php',
etc. and the folder 'chat'
)
Follow the instructions shown !
ATTENTION: Don't forget to delete
this file after installation, if it is not automatically
deleted !
|
| |
manual installation of
MySQL-tables: (if you don't want to use 'installation.php')
Start PHPMyAdmin
and select the database you want to create the FlashChat
Tables in,
go to 'Run SQL query/queries on
database', select at 'Location
of the textfile' the file 'install.sql'
and click OK to create the two tables: 'zz_user' and
'zz_messages'.
UPDATE: If you want to update ZZ:FlashChat
to version 2 you have to open the 'install.sql'
in a texteditor and uncomment two lines at the top
of the file.
Further explanation is in the file.
Change your Admin-Password immediately
after installation, so no one can abuse it !
(the default values are: AdminName:
zzname | AdminPassword: zzpas)
|
FINISHED ! |
|
CONFIGURATION:
| |
In the directory 'chat / inc'
you can find the configuration-file named 'inc.config.php'.
a) In this File you have to define the
variables of your MySQL Connection
(See above [2]. You already did
it !).
b) there is also the possibility to redefine further
variables:
| [1] |
Log-Data-Function:
With this function turned on you can log all chat
data in a file.
To enable logging the chat data, set $log_data
to 1
and define a name for your logfile with $log_filename
!
Now you have to chmod the
folder 'log' in your FlashChat
installation to 777 !!!
The 'log'-folder is protected
by password. You will be asked for the same AdminName
and AdminPassword which you use in the chat.
|
| [2] |
Autolink:
With this function every link typed into the chat will
automatically be transformed into a clickable hyperlink
that opens a new window with the linkurl.
To enable autolink set the varuable $autolink
to 1 !
|
| [3] |
IP-Check-Function:
With this function you can define wether multiple users
are allowed from with the same IP or not.
With IP-check OFF no ip will be checked. So people behind
a firewall (in a network, of big companies, etc.) don't
have problems to log in.
ATTENTION: Banning however works with IP. So if you
bann someone, you are banning his IP.
default: $ip_check is 0.
To turn it on set it to 1
!
|
| [4] |
BadWords-Filter:
This function turns on filtering chat messages.
You can define a list of bad words in the variable $badwords
!
These words will be filtered so that only the first
letter will remain, the rest will changed to * !
To turn OFF filtering just comment it out (Put a #
in front of $badwords) !
|
| [5] |
TimeVars
The timevars are 3 variables: $minremain,
$mindelete, $killmessages
! $minremain defines how
many minutes chat messages should remain visible for
chatters. $mindelete defines
how many minutes a chatter can stay in the chat without
writing a message untill he gets kicked
$killmessages defines wether
all message are deleted if no user is in the chat [1]
or the messages will be deleted by the timelimit in
$minremain [0].
|
| [6] |
Chatspeed
With this variable ($chatspeed)
you define how often a client (user of the chat) calls
the chat data on the server.
A faster chat is more convenient, but demands a lot
of performance of the server.
You can also enable the $chatspeed_percent
variable, which sets chatspeed depending on the amount
of users currently online.
|
| [7] |
Color of ChatOutput
With this variables you define the format of the chat
messages in HTML. $fdata01
defines the HTML in front of the username. $fdata02
defines the HTML between username and message.
$fdata01 defines the HTML
behind the message.
($fdata01 username $fdata02
message $fdata03)
Only the following HTML-tags will be interpreted by
Flash:
<A> <B> <FONT COLOR> <FONT FACE>
<FONT SIZE> <I> <P> <U>
|
| [8] |
Help Menu
The variable $help_msg holds the text of the HelpMenu
in FlashChat.
|
Further instructions to each of the variables are
in the configuration file !
|
|
USAGE:
| |
Information about the usage of ZZ:FlashChat::
| [1] |
Login:
Select a username and click login !
The following signs and words are not allowed in a
username:
' admnin, /help, /user, :
'
And the username will be filtered for badwords if
the filter is turned on and will reject usernames
which don't pass the filter !
|
| [2] |
normal chatting:
Type your message in the message input box and press
submit !
If autolink is on, every link will be converted to a
clickable hyperlink.
The following links will be formated: (* is a wildcard
for every sign)
E-mail-link: *@*.*
Url-link: *//:*.* and also
www.*.*
Explained in a simple way it means links with an @
sign and a . will be
converted to an email link, links with //:
and a . or links with www
and a . will be translated
to hyperlinks.
(It's not that easy in reality but as explanation it
matches) |
| [3] |
private chatting (whispering):
You got 2 possibilities to send a private message:
| a) |
out of useronline menu:
You select the user (as many as you like) from
the user online menu !
This will add their names in a formated way to
the message input field.
After the last : you
type in your message ! |
| b) |
out of message input field:
You can also directly type in the formated message:
type in / to activate
console and the the username(s) you wnat to adress
divided by : !
The n type in your message.
(Example: /userA:userB:my message
is following) |
|
| [4] |
Admin:
The Admin can call the AdminSection on 2 ways:
| a) |
out of the chat:
the Admin has to type the following line into
the message input field: /admin:AdminName:AdminPassword
(explanation: / is to
activate console functionality admin
is call admin function
To log in to the AdminSection also your AdminName
and AdminPassword is needed (as defined in the
installation) divided by :
! |
| b) |
Call admin.php:
Call 'admin.php' in your chat directory and log
in with your AdminName and AdminPassword.
|
| |
ATTENTION:
You DON'T have to login to the CHAT with
your AdminName.
You can be logged in as you like. Only to call
the AdminSection you need your AdminName and AdminPassword |
Inside the AdminSection you have got the following options:
| a) |
kick & bann user:
This menu will show a list of user currently online
(plus banned user) with their current status.
If nothing is shown in the field beside the name
the user is regularly online.
You can choose to kick him or to bann him for
5, 10, 15, 30, 60 minutes.
You can also revoke a bann if you select the X
for a banned user.
After selecting your options press submit to confirm. |
| b) |
open & close chat:
In this menu you can open and close
the chat.
If combined with OpeningTimeManagement AddOn the
function will only work if chat is currently open
by TimeManagement. |
| c) |
alter login data:
In this menu you can alter your
Admin LoginData:
Select a new AdminName and a new AdminPassword
and type in your old AdminName and your old AdminPassword
twice to change it. |
|
| |
help menu:
You can call the helpmenu by clicking on
the ? sign in the top left corner of the chat or ba
typing /help into the message
input field !
|
| |
Log out:
To log out click the logout button in the top right
corner of the chat or simply close the window and wait
for your log out confirmation !
|
FINISHED ! |
|
CUSTOMIZATION:
| |
FLA-FILES:
In the directory 'flas'
you can find the original Flash-files of ZZ:FlashChat:
'login.fla' , 'chat.fla',
'logout.fla', 'help.fla',
'admin.fla' .
The first layer of the flash-file
mostly contains the actionscript (i.e. Frames with
action). You ought not change anything if you don't
know exactly what you are doing as you will alter
the function of the chat.
Since version 2 the chat functions have been exported
to an external chatengine which is accessable by easy
functions. For that reason customizing the ZZ:FlashChat
interface is now more easy.
|
STYLE.CSS
Another possibility to change the looks of the chat
is to alter the file 'styles.css'
wich can be found in the directory 'chat
/ inc'. You can set the background color
and link colors in here.
|
INC.CONFIG.PHP
In this file you can define the format of the chat message
text.
Further information is in this file !
|
Background color has to be changed in
the fla-file and the style-sheet as the Flash-file will
be transparent online in Internet Explorer, but not in Navigator.
ChatMessage color can be changed in the
file 'inc.config.php' with defining the html tags around
the messages (see file !)
There will soon and hopefully be the possibility to download
custom '.fla'-files with different
chat layouts at download.zehnet.de.
If you have customized some of these files please send them
to me to mail@download.zehnet.de
so that i can offer them for download.
|
|
VERSION HISTORY:
| |
Version 2.2:
- added support for mac broswers
(using GET instead of POST in LoadVariables
function, etc.)
- improved functionality of admin section
Version 2.1:
- added support for 'register globals off'
in php.ini
- added installation.php for an easy install of ZZ:FlashChat
2.x
- added autolink
- added possibility to turn off IP control on login (for
firewalls)
- fixed bug in kick/bann part of admin section
- recode of the log-data function
- improved the code in some files
- improved readme file
Version 2:
- added support for private messaging (whispering)
- added admin section to kick & bann users, open &
close the chat
- added possibility to adjust chatspeed
- added HelpMenu
- added OpeningTime Management (automatic opening &
closing of the chat)
- added Bad Words Filter
- new UserManagement
- external Chatengine with Debugmode
- added CommandLine support
Version 1.3:
- new design
- added user online information
- added scrollbar
Version 1.2:
- reorganised code: only one chat file with seperated
MySQL-functions as includes
- recode of the logout system
- added user information on logout
- added start-page with room information
- new .fla-files added with different design
- fixed some minor bugs
Version 1.1:
- some bugs corrected
- added loggging of chat-data function
Version 1: [Aim of the Program]:
ZZ:FlashChat was designed to be an easy to install, easy
to handle and (very important) easy to customize Chat-Proogram,
which should give the user a well functioning chat engine
with possibility to adjust the interface to his needs. |
|
| script by |
zehnet.de | |
|