a little hack to have the chance to edit the count of user_posts.
....................................................................
lang_XXX/lang_admin.php
~~~~~~~~~~~~~~~~~~~~~~~
>>>FIND:
$lang['User_special_explain'] = "...
>>>AFTER THAT ADD:
$lang['post'] = "Posts by the User";
-------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------
admin/admin_users.php
~~~~~~~~~~~~~~~~~~~~~
>>>FIND:
$user_allowavatar = (!empty($HTTP_POST_VARS['user_allowavatar'])) ? intval($HTTP_POST_VARS['user_allowavatar']) : 0;
>>>AFTER THAT ADD:
$user = (!empty($HTTP_POST_VARS['user_posts'])) ? intval($HTTP_POST_VARS['user_posts']) : 0;
>>>FIND:
$user_allowavatar = $this_userdata['user_allowavatar'];
>>>AFTER THAT ADD:
$user_posts = $this_userdata['user_posts'];
>>>FIND:
"L_ALLOW_AVATAR" => $lang['User_allowavatar'],
>>>AFTER THAT ADD:
"U_POST" => $user_posts,
"L_POST" => $lang['post'],
>>>FIND:
$sql = "UPDATE " . USERS_TABLE . "
SET " . $username_sql . $passwd_sql . "user_email = '" . str_replace("\'", "''", $email) . "', user_icq = '" . str_replace("\'", "''", $icq) . "', user_website = '" . str_replace("\'", "''", $website) . "', user_occ = '" . str_replace("\'", "''", $occupation) . "', user_from = '" . str_replace("\'", "''", $location) . "', user_interests = '" . str_replace("\'", "''", $interests) . "', user_sig = '" . str_replace("\'", "''", $signature) . "', user_viewemail = $viewemail, user_aim = '" . str_replace("\'", "''", $aim) . "', user_yim = '" . str_replace("\'", "''", $yim) . "', user_msnm = '" . str_replace("\'", "''", $msn) . "', user_attachsig = $attachsig, user_sig_bbcode_uid = '$signature_bbcode_uid', user_allowsmile = $allowsmilies, user_allowhtml = $allowhtml, user_allowavatar = $user_allowavatar, user_allowbbcode = $allowbbcode, user_allow_viewonline = $allowviewonline, user_notify = $notifyreply, user_allow_pm = $user_allowpm, user_notify_pm = $notifypm, user_popup_pm = $popuppm, user_lang = '" . str_replace("\'", "''", $user_lang) . "', user_style = $user_style, user_timezone = $user_timezone, user_dateformat = '" . str_replace("\'", "''", $user_dateformat) . "', user_active = $user_status, user_rank = $user_rank" . $avatar_sql . "
WHERE user_id = $user_id";
>>>REPLACE WITH:
$sql = "UPDATE " . USERS_TABLE . "
SET " . $username_sql . $passwd_sql . "user_email = '" . str_replace("\'", "''", $email) . "', user_icq = '" . str_replace("\'", "''", $icq) . "', user_website = '" . str_replace("\'", "''", $website) . "', user_occ = '" . str_replace("\'", "''", $occupation) . "', user_from = '" . str_replace("\'", "''", $location) . "', user_interests = '" . str_replace("\'", "''", $interests) . "', user_sig = '" . str_replace("\'", "''", $signature) . "', user_viewemail = $viewemail, user_aim = '" . str_replace("\'", "''", $aim) . "', user_yim = '" . str_replace("\'", "''", $yim) . "', user_msnm = '" . str_replace("\'", "''", $msn) . "', user_attachsig = $attachsig, user_sig_bbcode_uid = '$signature_bbcode_uid', user_allowsmile = $allowsmilies, user_allowhtml = $allowhtml, user_allowavatar = $user_allowavatar, user_allowbbcode = $allowbbcode, user_allow_viewonline = $allowviewonline, user_notify = $notifyreply, user_allow_pm = $user_allowpm, user_notify_pm = $notifypm, user_popup_pm = $popuppm, user_lang = '" . str_replace("\'", "''", $user_lang) . "', user_style = $user_style, user_timezone = $user_timezone, user_dateformat = '" . str_replace("\'", "''", $user_dateformat) . "', user_active = $user_status, user_posts = $user_posts, user_rank = $user_rank" . $avatar_sql . "
WHERE user_id = $user_id";
-------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------
templates/XXX/admin/user_edit_body.tpl
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>FIND:
<tr>
<td class="row1" colspan="2"><span class="gensmall">{L_SPECIAL_EXPLAIN}</span></td>
</tr>
>>>AFTER THAT ADD:
<tr>
<td class="row1"><span class="gen">{L_POST}</span></td>
<td class="row2">
<input type="text" name="user_posts" value="{U_POST}" size="10" maxlength="10" /></td>
</tr>