Per chi riscontra un BUG nella segnalazione di nuovi messaggi privati deve:
file
global.php
cercare:
Codice:
if($pm['fromuid'] == 0)
{
$pm['fromusername'] = 'MyBB Engine';
}
if($mybb->user['pms_unread'] == 1)
{
$privatemessage_text = $lang->sprintf($lang->newpm_notice_one, get_profile_link($pm['fromuid']), htmlspecialchars_uni($pm['fromusername']), $pm['pmid'], htmlspecialchars_uni($pm['subject']));
}
else
{
$privatemessage_text = $lang->sprintf($lang->newpm_notice_multiple, $mybb->user['pms_unread'], get_profile_link($pm['fromuid']), htmlspecialchars_uni($pm['fromusername']), $pm['pmid'], htmlspecialchars_uni($pm['subject']));
}
e sotituire con:
Codice:
if($pm['fromuid'] == 0)
{
$pm['fromusername'] = 'MyBB Engine';
$user_text = $pm['fromusername'];
}
else
{
$user_text = "<a href=\"".get_profile_link($pm['fromuid'])."\">".htmlspecialchars_uni($pm['fromusername'])."</a>";
}
if($mybb->user['pms_unread'] == 1)
{
$privatemessage_text = $lang->sprintf($lang->newpm_notice_one, $user_text, $pm['pmid'], htmlspecialchars_uni($pm['subject']));
}
else
{
$privatemessage_text = $lang->sprintf($lang->newpm_notice_multiple, $mybb->user['pms_unread'], $user_text, $pm['pmid'], htmlspecialchars_uni($pm['subject']));
}
aprire il file inc/languages/italiano/
global.lang.php
cercare:
Codice:
$l['newpm_notice_one'] = "<strong>Hai un messaggio privato non letto</strong> scritto da <a href=\"{1}\">{2}</a> con titolo <a href=\"private.php?action=read&pmid={3}\" style=\"font-weight: bold;\">{4}</a>";
$l['newpm_notice_multiple'] = "<strong>Hai {1} messaggi privati da leggere.</strong> L'ultimo è stato scritto da <a href=\"{2}\">{3}</a> con titolo <a href=\"private.php?action=read&pmid={4}\" style=\"font-weight: bold;\">{5}</a>";
e sotituire con:
Codice:
$l['newpm_notice_one'] = "<strong>Hai un messaggio privato non letto</strong> scritto da {1} con titolo <a href=\"private.php?action=read&pmid={2}\" style=\"font-weight: bold;\">{3}</a>";
$l['newpm_notice_multiple'] = "<strong>Hai {1} messaggi privati da leggere.</strong> L'ultimo è stato scritto da {2} con titolo <a href=\"private.php?action=read&pmid={3}\" style=\"font-weight: bold;\">{4}</a>";
Guida presente nella sezione "bug risolti" del forum ufficiale