Descrizione: Con questa modifica andremo a mettere sull'indice il conteggio dei nostri messaggi, visualizzando il numero effettivo.
Apri:includes/functions.php
Trova:
Codice: Seleziona tutto
// The following assigns all _common_ variables that may be used at any point in a template.
Codice: Seleziona tutto
// NEW SELF POST COUNT
$sql = "SELECT user_posts
FROM " . USERS_TABLE . "
WHERE user_id = " . $user->data['user_id'];
$result = $db->sql_query($sql);
$post_self = (int) $db->sql_fetchfield('user_posts');
$db->sql_freeresult($result);
Codice: Seleziona tutto
'U_FAQ' => append_sid("{$phpbb_root_path}faq.$phpEx"),
Codice: Seleziona tutto
'SELF_POST_COUNT' => $post_self,
Trova:
Codice: Seleziona tutto
{L_SEARCH_SELF}
Codice: Seleziona tutto
{L_SEARCH_SELF} ({SELF_POST_COUNT})