User Status Infusion 1.00
PHP-Fusion 6.00
author:   Ian Unruh (kep7)
e-mail:   ianunruh@gmail.com
website:  www.phpsaturn.com
date: 2005-07-05
------------------------------------------
Released under the terms and conditions of
the GNU General Public License (Version 2)
------------------------------------------

INSTALLATION
------------
There are two methods of installation. Manually changes the files or replacing them. To simply replace the existing files with the modified ones, follow the next two steps. If you want to do a manual installation, find MANUAL INSTALLATION in this README and follow the instructions.

1. Upload all of the files in the php-files folder to the root of
your PHP-Fusion installation.

2  Then, goto Admin Panel > System Admin > Infusions and install the "User Status" Infusion


LANGUAGE INFO
-------------
a. 'Status:' in profile.php is hard-coded to English.
b. The infusion info is hard-coded to English


NOTES
-----
There is a status text box in the User Info Panel and a 'Submit' button
that changes a person's status. There is no word filtering!


MANUAL INSTALLATION
-------------------

If you don't want to replace your files, do the following:

a. Open infusions/user_info_panel/user_info_panel.php

b. Right after Line 23, Add the following code:

--- begin code ---

  $stats = dbarray(dbquery("SELECT * FROM ".$db_prefix."user_status WHERE user_id=".$userdata['user_id'].""));
  $user_status = $stats['stats'] != "" ? $stats['stats'] : "Set your status...";
  echo "<br /><br />
  <form name='user_status' method='post' action='".INFUSIONS."user_status/proccess.php'>
  <input name='user_status' type='textbox' maxlength='200' size='18' value='".$user_status."' class='textbox'>
  <input type='submit' value='Save' name='submit' class='button'></form>";

--- end code ---

c. Save and close user_info_panel.php

d. Open profile.php

e. Right after Line 68, add the following code:

--- begin code ---

echo "<tr>\n<td class='tbl'>Status:</td>\n<td class='tbl' colspan='2'>\n";
$statdata = dbarray(dbquery("SELECT stats FROM ".$db_prefix."user_status WHERE user_id='$lookup'"));
echo ($statdata['stats'] ? $statdata['stats'] : $locale['u048'])."</td>\n</tr>\n";

--- end code ---

f. Save and close profile.php

That's it! ;)


Enjoy!!