|---------------------------------------------|
|*** ShoutBox Central Panel for PHP-Fusion ***|
|---------------------------------------------|
| * Version 1                                 |
|---------------------------------------------|
| * Author: WeDgEMasTeR (fr)  2005-2006      |
| * Web: http://www.phpfusion-fr.com          |
| * E-mail: wedgemaster@gmail.com             |
|---------------------------------------------|
| * Release Date: 02/07/2006                  |
|---------------------------------------------|
| Released under the terms and conditions of  |
| the GNU General Public License (Version 2)  |
|---------------------------------------------|

DESCRIPTION
-----------
ShoutBox Central panel is a modification of the phpfusion shoutbox.
It use the same table.
It look like a "chat".

COMMAND
-------
members:
/me : like mIRC, members can write "/me is away", it will appear "* nick is away"

Admins:
/news : you want to announce sommething ? write "/news Welcome to the new ShoutBox",
	it will appear : 

"#Flash Info#
		Welcome to the new ShoutBox"

MODIFICATION
------------
If you want display an automatic welcome message for new members.

[OPEN : register.php]

[FIND]

$result = dbquery("DELETE FROM ".$db_prefix."new_users WHERE user_code='$activate'");

[AFTER ADD]

// begin shoutbox central mod
$name_admin = dbarray(dbquery("SELECT user_name FROM ".$db_prefix."users WHERE user_id='1'"));
$shout_message = "/news Welcome to our new member ".$user_info['user_name']." !";
$shoutbox_news = dbquery("INSERT INTO ".$db_prefix."shoutbox (shout_name, shout_message, shout_datestamp, shout_ip) VALUES ('".$name_admin['user_name']."', '$shout_message', '".time()."', 'new_member')");
// end shoutbox central mod

[FIND]

opentable($locale['400']);
			if ($settings['admin_activation'] == "1")

[BEFORE ADD]

// begin shoutbox central mod
$name_admin = dbarray(dbquery("SELECT user_name FROM ".$db_prefix."users WHERE user_id='1'"));
$shout_message = "/news Welcome to our new member ".$username." !";
$shoutbox_news = dbquery("INSERT INTO ".$db_prefix."shoutbox (shout_name, shout_message, shout_datestamp, shout_ip) VALUES ('".$name_admin['user_name']."', '$shout_message', '".time()."', 'new_member')");
// end shoutbox central mod

[SAVE & CLOSE]


INSTALLATION
------------

CREATING A PANEL

   1. Go to the Panel Management section of the admin panel
   2. Click on Add New Panel
   3. Enter the panel name.
   4. Select "shoutbox_central_panel" as the Panel File
   5. Select U-Ctr and access
   6. Save the panel
   7. Go back to Panel Management and activate the panel

