hi,
here is a little addon for the acp.
1.
add a new field in your database in the table 4images_users called
user_notice, VARCHAR 255, notnull
2.
insert in the db_field_definitions.php:
// User's notice
$additional_user_fields['user_notice'] = array($lang['user_notice'], "textarea", 0);
3.
insert in your lang/admin.php:
$lang['field_user_notice'] = "Notiz";
4. insert in your lang/main.php:
$lang['user_notice'] = "Notiz:";
5.
in your page_header.php find this:
"charset" => $lang['charset'],
and add after it this:
"lang_user_notice" => $lang['user_notice'],
6.1
in the admin/user.php find this:
show_form_header("users.php", "removeuser", "form");
echo "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\" align=\"center\"><tr><td class=\"tableborder\">\n<table cellpadding=\"3\" cellspacing=\"1\" border=\"0\" width=\"100%\">\n";
if ($countusers['users'] > 0) {
$sql = "SELECT ".get_user_table_field("", "user_id").get_user_table_field(", ", "user_name").get_user_table_field(", ", "user_email").get_user_table_field(", ", "user_joindate").get_user_table_field(", ", "user_lastaction")."
and replace it with tis:
show_form_header("users.php", "removeuser", "form");
echo "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\" align=\"center\"><tr><td class=\"tableborder\">\n<table cellpadding=\"3\" cellspacing=\"1\" border=\"0\" width=\"100%\">\n";
if ($countusers['users'] > 0) {
$sql = "SELECT ".get_user_table_field("", "user_id").get_user_table_field(", ", "user_name").get_user_table_field(", ", "user_email").get_user_table_field(", ", "user_joindate").get_user_table_field(", ", "user_lastaction").", user_notice
6.2
then in the same file find this:
echo "<td class=\"tableseparator\">".$lang['field_username']."</td>\n<td class=\"tableseparator\">".$lang['field_email']."</td>\n<td class=\"tableseparator\">".$lang['field_joindate']."</td>\n<td class=\"tableseparator\">".$lang['field_lastaction']."</td>\n<td class=\"tableseparator\">".$lang['options']."</td>\n</tr>\n";
and replace it with this:
echo "<td class=\"tableseparator\">".$lang['field_username']."</td>\n<td class=\"tableseparator\">".$lang['field_email']."</td>\n<td class=\"tableseparator\">".$lang['field_joindate']."</td>\n<td class=\"tableseparator\">".$lang['field_lastaction']."</td>\n<td class=\"tableseparator\">".$lang['field_user_notice']."</td>\n<td class=\"tableseparator\">".$lang['options']."</td>\n</tr>\n";
6.3
in the same file find this:
echo "<td>".format_date($config['date_format']." ".$config['time_format'], $user_row[$user_table_fields['user_lastaction']])."</td>\n";
and add after it this:
echo "<td>".$user_row['user_notice']."</td>\n";
ready!
then you can go to your acp and modify/edit any user. you can see a new field called "Notiz" . here you can write any thing in the field. for example: " userxy is my best friend or pay me 50dollars for my site etc."
if you search in acp users you can see the new field with your notice.
sorry about my bad english..
a little modification:
if you want to show the notice to a user in his profile anywhere you want:
7.
insert in templates/your_template/member_editprofil.html:
{if user_notice} {lang_user_notice} {user_notice} {endif user_notice}
if you want to show it in the users profil insert the same code in the templates/your_template/member_profil.html ! but remember then all users can see the notiz. thanks to Stoleti for the idea.