Download free working chat in javascript Gazebo
A new CHAT made for an economic game with money withdrawal.
The module includes many interesting functions. Such as the user’s avatar, charging 1 kopeck for a message to the user, private chat, sounds, emoticons, admin panel and many other interesting settings.
Installation:
1) we make an overgrowth in the database
ALTER TABLE `db_users_a` ADD `ava` VARCHAR( 255 ) NOT NULL
ALTER TABLE `db_users_a` ADD `chat_moder` INT( 1 ) NOT NULL DEFAULT ‘0’
ALTER TABLE `db_users_b` ADD `chat` INT NOT NULL DEFAULT ‘0’
ALTER TABLE `db_users_b` ADD `chat_money` DOUBLE( 10, 2 ) NOT NULL DEFAULT ‘0’
ALTER TABLE `db_users_a` ADD `ban_chat` INT( 1 ) NOT NULL DEFAULT ‘0’
CREATE TABLE IF NOT EXISTS `db_chat_message` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL DEFAULT ‘0’,
`user_name` varchar(255) NOT NULL,
`user_to_id` int(11) NOT NULL DEFAULT ‘0’,
`user_to_name` varchar(255) CHARACTER SET cp1250 NOT NULL,
`time_add` int(11) NOT NULL DEFAULT ‘0’,
`private` tinyint(1) NOT NULL DEFAULT ‘0’,
`message` text(255) NOT NULL,
`ava` varchar(255) NOT NULL,
`user_status` int(11) NOT NULL DEFAULT ‘0’,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `db_chat_online` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`user_name` varchar(255) CHARACTER SET utf8 NOT NULL,
`status` tinyint(1) NOT NULL DEFAULT ‘0’,
`color` varchar(10) CHARACTER SET utf8 NOT NULL,
`time_add` int(11) NOT NULL,
`ava` varchar(255) NOT NULL,
`banan` int(10) NOT NULL DEFAULT ‘0’,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;
2) open the file.htaccess and add
RewriteRule ^account/chat(/?)+$ index.php?menu=account&sel=chat [L] RewriteRule ^account/chat/noban/([a-zA-Z0-9]+)(/?)+$ index.php?menu=account&sel=chat&noban=$1 [L] 3) open the file /pages/account.php and add
case “chat”: include(“pages/account/_chat.php”); break;
4) open the file /inc/_user_menu.php and add
<div class=”field-gr”><a href=”/account/chat”>Chat</a></div>
5) open the file /classes/_class.db.php and add
function FetchAssoc(){
//if($this->LastQuery)
return mysqli_fetch_assoc($this->LastQuery);
}
6) Everything!