Please a box like the disable board message, but for new PM's (pm count included)
This snippet produces a little box exactly like the "disable board" information box. The box only shows if you have unread private messages. There is also a link to take you straight to your inbox. Sometimes I miss getting PM's - i.e. maybe don't notice them
# #-----[ OPEN ]------------------------------------------ # styles/prosilver/template/overall_header.html # #-----[ FIND ]------------------------------------------ #
<div id="page-body">
# #-----[ AFTER ADD ]------------------------------------------ #
<!-- IF S_USER_UNREAD_PRIVMSG --> <div id="message" class="rules"> <div class="inner"><span class="corners-top"><span></span></span> <strong>{L_INFORMATION}:</strong> {L_NEW_PM_NOTICE} - Click <a href="{U_PRIVATEMSGS}">here</a> to go to your Inbox. <span class="corners-bottom"><span></span></span></div> </div> <!-- ENDIF -->
# #-----[ OPEN ]------------------------------------------ # language/en/common.php # #-----[ FIND ]------------------------------------------ #
'NEW_MESSAGES' => 'New messages',
# #-----[ AFTER ADD ]------------------------------------------ #
'NEW_PM_NOTICE' => 'You have new messages waiting to be read',
If you have a subSilver2 or subSilver2 based style, you can use the code below
# #-----[ OPEN ]------------------------------------------ # styles/subSilver2/template/overall_header.html # #-----[ FIND ]------------------------------------------ #
<div id="menubar">
# #-----[ AFTER ADD ]------------------------------------------ #
<!-- IF S_USER_UNREAD_PRIVMSG --> <table class="tablebg" width="100%" cellspacing="1" cellpadding="0" style="margin-top: 5px;"> <tr> <td class="row1"> <p class="breadcrumbs"><strong>{L_INFORMATION}:</strong> {L_NEW_PM_NOTICE} - Click < href="{U_PRIVATEMSGS}">here</a> to go to your Inbox.</p> </td> </tr> </table> <br /> <!-- ENDIF -->
Remember to purge your cache after makeing template changes.
To test that this works, send a PM to yourself. As soon as you see the confirmation screen, go straight to your board index or another page e.g faq