316
Mods & Plugins (Releases & Support) / Re: [MOD] ACP Notice Field in Users Profile
« on: January 21, 2006, 07:00:56 PM »@Loda:yes!
Would it also be possible to see a screenshot of this MOD ?
4images code on GitHub Click here to visit GitHub.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
@Loda:yes!
Would it also be possible to see a screenshot of this MOD ?
// User's notice
$additional_user_fields['user_notice'] = array($lang['user_notice'], "textarea", 0);
$lang['field_user_notice'] = "Notiz";
$lang['user_notice'] = "Notiz:";
"charset" => $lang['charset'],
and add after it this: "lang_user_notice" => $lang['user_notice'],
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
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";
{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. if ($comment_headline == "") {
$msg .= (($msg != "") ? "<br />" : "").$lang['headline_required'];
$error = 1;
}
then you don't get an error message.