Probably one of the shortest snippets I've done so far, but something I wanted to have on this site. Basically, it 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:
Code: Select all
<div id="page-body">
AFTER ADD:
Code: Select all
<!-- 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:
Code: Select all
'NEW_MESSAGES' => 'New messages',
AFTER ADD:
Code: Select all
'NEW_PM_NOTICE' => 'You have new messages waiting to be read',
I know this goes against what I've said before, but as it's such a small and easy snippet, here is some code for subSilver2. This is a one-off and probably won't be provided again
OPEN: styles/subSilver2/template/overall_header.html
FIND:
Code: Select all
<div id="menubar">
AFTER ADD:
Code: Select all
<!-- 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 <a 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