# To upgrade from 0.1b
# first delete every 0.1b file:

smileys (dir)
expand.php
expand-send.php
expand-view.php
viewshoutbox.php

# and all the files startting with shoutbox:

shoutbox*.php
shoutbox2.css

# now copy all the files from archive to mods/chat
# except shoutbox_pre.php WHICH HAVE TO BE IN PHPBB2 ROOT DIR

# replace templates/subSilver/index_body.tpl with the one included in archive
# this is the easy way; if you like you can create your own (refer to install.txt)

# create the chatsession table:

CREATE TABLE chatsession (
   username varchar(30) NOT NULL,
   lastactive int(11) DEFAULT '0' NOT NULL,
   laststatus varchar(8) NOT NULL,
   UNIQUE username (username)
);

# open language/lang_english/lang_main.php
# --- [ ADD ] --- TO THE LAST OF DOCUMENT BEFORE ?>

$lang['Who_Is_Chatting_Heading'] = "Who is Chatting";
$lang['How_Many_Chatters'] = "There are <B>%d</B> people on chat now";
$lang['Who_Are_Chatting' ] = "These people are on chat: <B>%s</B>";
$lang['Misc_Info'] = "Misc. Info";
$lang['Chat_Title'] = "Chat";
$lang['Stats'] = "Stats";


# open index.php

# --- [ BEFORE ] --- around line 26x -27x

$template->assign_vars(array(
		"TOTAL_POSTS" => sprintf($l_total_post_s, $total_posts),
		"TOTAL_USERS" => sprintf($l_total_user_s, $total_users),

# --- [ ADD ] ---


	require_once("shoutbox_pre.php");
	$howmanychat = howmanyChat();
	$chatters = chattersMain();


# --- [ AFTER ] --- around line 27x - 28x

"USERNAME-CHAT" => $userdata['username'],


# --- [ ADD ] ---

"WHO_ARE_CHATTING_HEAD" => $lang['Who_Is_Chatting_Heading'],
"TOTAL_CHATTERS_ONLINE" => sprintf($lang['How_Many_Chatters'], $howmanychat),
"CHATTERS_LIST" => sprintf($lang['Who_Are_Chatting' ],$chatters),
"MISC_INFO" => $lang['Misc_Info'],
"CHAT" => $lang['Chat_Title'],
"STATS" => $lang['Stats'],

# --- [ CLOSE index.php ] ---