Autore: ameeck
Modifica Descrizione: Consente di visualizzare il numero dei tuoi messaggi sulla barra di intestazione in alto con la quantità dei messaggi necessari per il grado successivo.
Modifica Versione: 1.0.1
phpBB Versione: Modifiche necessarie per la 3.0.11 li trovate sotto: Autore Rey messa anche sul com
AutoMOD: si
Modifica Download: clicca qui
-->Modifica supporto<--
::::Modifiche per funzionare sulla 3.0.11::::
Apri: includes/functions.php
Trova questo:
Codice: Seleziona tutto
global $db, $config, $template, $SID, $_SID, $_EXTRA_URL, $user, $auth, $phpEx, $phpbb_root_path;
Codice: Seleziona tutto
global $db, $config, $template, $SID, $_SID, $_EXTRA_URL, $user, $auth, $phpEx, $phpbb_root_path, $cache;
Codice: Seleziona tutto
global $db, $config, $template, $SID, $_SID, $user, $auth, $phpEx, $phpbb_root_path;
Codice: Seleziona tutto
// BEGIN User posts with next rank MOD
// Initialize some variables
$ranks = array();
$next_rank_posts = 0;
// Get the ranks and split them into normal and special
$ranks = $cache->obtain_ranks();
$special_ranks = (array_key_exists('special', $ranks)) ? $ranks['special'] : array();
$normal_ranks = (array_key_exists('normal', $ranks)) ? sort_ranks($ranks['normal'], 'rank_min') : array();
// Check if the user has a special rank, in that case, display only number of posts
if (sizeof($special_ranks) && array_key_exists($user->data['user_rank'], $special_ranks))
{
$next_rank_posts = 0;
}
// User has a normal rank, let's see what the next rank is!
else
{
if (sizeof($normal_ranks))
{
// Go through the ranks from the top and see if the user has reached that level, if not, specify the rank as next
foreach ($normal_ranks as $rank)
{
if ($user->data['user_posts'] < $rank['rank_min'])
{
$next_rank_posts = (int) $rank['rank_min'];
}
}
}
}
// END User posts with next rank MOD
Apri: styles/prosilver/template/overall_header.html
Trova:
Codice: Seleziona tutto
<!-- IF S_DISPLAY_PM --> (<a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}</a>)<!-- ENDIF -->
Codice: Seleziona tutto
• {L_TOTAL_POSTS}: {USER_POSTS}<!-- IF NEXT_RANK_POSTS != 0 --> / {NEXT_RANK_POSTS}<!-- ENDIF -->